# CVE-2026-89507: RDMA/ucma: Lock the handler in ucma\_write\_cm\_event()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **Published:** 2026-09-11T19:43:54.013Z
- **Modified:** 2026-10-19T09:17:44.940Z

## Who should check

- Anyone running Linux \>= a3c9d0fcd3715541bbf97da2ddde9d032e2fe6d5, \< 4f8bb11dd2ff365e7cff1c9964ab4607292d364e; \>= a3c9d0fcd3715541bbf97da2ddde9d032e2fe6d5, \< 0be1955040a2eceed0ecfc387fdc92305411d273; \>= a3c9d0fcd3715541bbf97da2ddde9d032e2fe6d5, \< f4cc21c6a8e9d392871477f9fd98d68e5ad80272
- Anyone running Linux 6.18

## Description

In the Linux kernel, the following vulnerability has been resolved:

RDMA/ucma: Lock the handler in ucma\_write\_cm\_event()

ctx-\>file may only be changed under the handler lock and the xa\_lock, which
is what stops uevents being queued for a ctx while ucma\_migrate\_id() moves
it to another file.  The CM core takes that lock before invoking
ucma\_event\_handler(), but the write() paths that queue uevents themselves
do not.

ucma\_write\_cm\_event() re-reads ctx-\>file for each of its four dereferences,
so ucma\_migrate\_id() can swap it mid-sequence:

	mutex\_lock(&ctx-\>file-\>mut);			/\* file A \*/
	list\_add\_tail(&uevent-\>list, &ctx-\>file-\>event\_list);	/\* file B \*/
	mutex\_unlock(&ctx-\>file-\>mut);			/\* file B \*/
	wake\_up\_interruptible(&ctx-\>file-\>poll\_wait);	/\* file B \*/

The window is the mutex\_lock() itself: the writer sleeps in it while the
migration reassigns ctx-\>file.  The list\_add\_tail() then runs on file B's
event\_list holding only file A's mutex:

  list\_add corruption. prev-\>next should be next (ffff888101320f30),
    but was ffff88814a08c418. (prev=ffff88814a075c18).
  kernel BUG at lib/list\_debug.c:32!
  Call Trace:
   ucma\_write\_cm\_event+0x36e/0x5e0

and file A's mut is left held forever, wedging its next writer in D state.
The uevent is also stranded on a list ucma\_cleanup\_ctx\_events() will not
walk, so it outlives its context.  /dev/infiniband/rdma\_cm is 0666 and no
RDMA device is involved, so an unprivileged user reaches all of this.

Take the handler lock, as ucma\_cleanup\_mc\_events() does; ctx-\>cm\_id is
pinned by the ucma\_get\_ctx() reference.

## Affected and fixed versions

- Linux: \>= a3c9d0fcd3715541bbf97da2ddde9d032e2fe6d5, \< 4f8bb11dd2ff365e7cff1c9964ab4607292d364e; \>= a3c9d0fcd3715541bbf97da2ddde9d032e2fe6d5, \< 0be1955040a2eceed0ecfc387fdc92305411d273; \>= a3c9d0fcd3715541bbf97da2ddde9d032e2fe6d5, \< f4cc21c6a8e9d392871477f9fd98d68e5ad80272 (cvelist)
- Linux: 6.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-89507. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89507.md
Affected: Linux >= a3c9d0fcd3715541bbf97da2ddde9d032e2fe6d5, < 4f8bb11dd2ff365e7cff1c9964ab4607292d364e; >= a3c9d0fcd3715541bbf97da2ddde9d032e2fe6d5, < 0be1955040a2eceed0ecfc387fdc92305411d273; >= a3c9d0fcd3715541bbf97da2ddde9d032e2fe6d5, < f4cc21c6a8e9d392871477f9fd98d68e5ad80272; Linux 6.18
Fixed in: Linux 4f8bb11dd2ff365e7cff1c9964ab4607292d364e, Linux 0be1955040a2eceed0ecfc387fdc92305411d273

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-89507 being exploited?

There is no confirmed exploitation: CVE-2026-89507 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-89507?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-89507?

Linux \>= a3c9d0fcd3715541bbf97da2ddde9d032e2fe6d5, \< 4f8bb11dd2ff365e7cff1c9964ab4607292d364e; \>= a3c9d0fcd3715541bbf97da2ddde9d032e2fe6d5, \< 0be1955040a2eceed0ecfc387fdc92305411d273; \>= a3c9d0fcd3715541bbf97da2ddde9d032e2fe6d5, \< f4cc21c6a8e9d392871477f9fd98d68e5ad80272; Linux 6.18.

### Is there a fix for CVE-2026-89507?

Yes. Fixed in Linux 4f8bb11dd2ff365e7cff1c9964ab4607292d364e, Linux 0be1955040a2eceed0ecfc387fdc92305411d273. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-89507?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/4f8bb11dd2ff365e7cff1c9964ab4607292d364e>
- other: <https://git.kernel.org/stable/c/0be1955040a2eceed0ecfc387fdc92305411d273>
- other: <https://git.kernel.org/stable/c/f4cc21c6a8e9d392871477f9fd98d68e5ad80272>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-89507>

HTML: <https://flawdb.com/CVE-2026-89507> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-89507>
