CVE-2026-139584
IB/mad: fix UAF and double-free in RMPP receive reassembly
AI summary AI generated
An attacker on the InfiniBand/RoCE fabric can trigger a race in RMPP receive reassembly to cause use-after-free and double-free in the Linux kernel IB MAD layer.
Mitigation
- Upgrade Linux to 90e9b6357bec75f627cde1a85b5887215c80aad8 or later.
Who should check
- Anyone running Linux >= fa619a77046bef30478697aba0553991033afb8e, < e936a56c1ab8ba5d07938812b934b8b1d8b56dc7; >= fa619a77046bef30478697aba0553991033afb8e, < d8ef8b4626d9df682bdb27be8c039f9532f07740; >= fa619a77046bef30478697aba0553991033afb8e, < bebbe1555677dbfa3542d2d2caa58a9adf4ec859; >= fa619a77046bef30478697aba0553991033afb8e, < ae817ef1690cadb9bb176a814f6d1d386d0a544e; >= fa619a77046bef30478697aba0553991033afb8e, < 2eab6afb62da0b29b731ee76f07658bda0b1dd19; >= fa619a77046bef30478697aba0553991033afb8e, < 1391b9d5db622cc883e945cc0b66666f2995bfca; >= fa619a77046bef30478697aba0553991033afb8e, < 9edaa226ea03da865204e67f745ee974806136e3; >= fa619a77046bef30478697aba0553991033afb8e, < 90e9b6357bec75f627cde1a85b5887215c80aad8
- Anyone running Linux 2.6.13
Vulnerability facts
- Affected
- Linux >= fa619a77046bef30478697aba0553991033afb8e, < e936a56c1ab8ba5d07938812b934b8b1d8b56dc7; >= fa619a77046bef30478697aba0553991033afb8e, < d8ef8b4626d9df682bdb27be8c039f9532f07740; >= fa619a77046bef30478697aba0553991033afb8e, < bebbe1555677dbfa3542d2d2caa58a9adf4ec859; >= fa619a77046bef30478697aba0553991033afb8e, < ae817ef1690cadb9bb176a814f6d1d386d0a544e; >= fa619a77046bef30478697aba0553991033afb8e, < 2eab6afb62da0b29b731ee76f07658bda0b1dd19; >= fa619a77046bef30478697aba0553991033afb8e, < 1391b9d5db622cc883e945cc0b66666f2995bfca; >= fa619a77046bef30478697aba0553991033afb8e, < 9edaa226ea03da865204e67f745ee974806136e3; >= fa619a77046bef30478697aba0553991033afb8e, < 90e9b6357bec75f627cde1a85b5887215c80aad8; Linux 2.6.13
- Fixed in
- Linux 2eab6afb62da0b29b731ee76f07658bda0b1dd19, Linux 1391b9d5db622cc883e945cc0b66666f2995bfca, Linux 9edaa226ea03da865204e67f745ee974806136e3, Linux 90e9b6357bec75f627cde1a85b5887215c80aad8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: IB/mad: fix UAF and double-free in RMPP receive reassembly mad_rmpp_recv.state is protected by two locks that do not exclude each other: recv_timeout_handler() (port workqueue) uses agent->lock, continue_rmpp() (CQ softirq) uses rmpp_recv->lock. Nothing serializes the check-then-set sequence on the state word: T1 (CQ softirq) T2 (port workqueue) continue_rmpp() lock(rmpp_recv->lock) state == ACTIVE [passes] recv_timeout_handler() lock(agent->lock) state = TIMEOUT list_del(&rmpp_recv->list) unlock(agent->lock) destroy_rmpp_recv() wait_for_completion() [blocks on T1's ref] state = COMPLETE unlock(rmpp_recv->lock) complete_rmpp() queue cleanup_work (+10s) deref() [unblocks] kfree(rmpp_recv) ib_free_recv_mad(done_wc) +10s: recv_cleanup_handler() runs lock/list_del/destroy on the freed rmpp_recv -> UAF write and double free; nothing can cancel that cleanup_work anymore, the entry is already off agent->rmpp_list. done_wc is also returned to ib_mad_complete_recv() and freed again -> UAF read and double free. Reaching this requires sending MADs to a kernel RMPP agent from the InfiniBand/RoCE fabric: the per-port sa_query agent accepts subnet manager responses whose SLID/GID/TID are not authenticated on the fabric, and legacy user_mad agents registered without IB_USER_MAD_USER_RMPP start reassembly on any incoming RMPP DATA MAD with an attacker-chosen TID, no in-flight send required. The attacker controls segment timing and can run many transactions in parallel (agent->rmpp_list has no cap), so landing the microseconds-wide receive critical section on the 40-second timeout boundary is a matter of patience, not luck. Unify state transitions under rmpp_recv->lock in recv_timeout_handler(), keeping list manipulation under agent->lock (which preserves the agent->lock -> rmpp_recv->lock ordering used by continue_rmpp()). State check/set in both paths is then serialized, so the loser of the race always observes the final state and bails out. recv_cleanup_handler() needs no change: with transitions serialized, a cleanup_work can only be pending after COMPLETE, in which case the timeout handler exits early. The race is as old as the RMPP implementation itself.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= fa619a77046bef30478697aba0553991033afb8e, < e936a56c1ab8ba5d07938812b934b8b1d8b56dc7; >= fa619a77046bef30478697aba0553991033afb8e, < d8ef8b4626d9df682bdb27be8c039f9532f07740; >= fa619a77046bef30478697aba0553991033afb8e, < bebbe1555677dbfa3542d2d2caa58a9adf4ec859; >= fa619a77046bef30478697aba0553991033afb8e, < ae817ef1690cadb9bb176a814f6d1d386d0a544e; >= fa619a77046bef30478697aba0553991033afb8e, < 2eab6afb62da0b29b731ee76f07658bda0b1dd19; >= fa619a77046bef30478697aba0553991033afb8e, < 1391b9d5db622cc883e945cc0b66666f2995bfca; >= fa619a77046bef30478697aba0553991033afb8e, < 9edaa226ea03da865204e67f745ee974806136e3; >= fa619a77046bef30478697aba0553991033afb8e, < 90e9b6357bec75f627cde1a85b5887215c80aad8 | — | cvelist |
| Linux | 2.6.13 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-139584. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-139584.md Affected: Linux >= fa619a77046bef30478697aba0553991033afb8e, < e936a56c1ab8ba5d07938812b934b8b1d8b56dc7; >= fa619a77046bef30478697aba0553991033afb8e, < d8ef8b4626d9df682bdb27be8c039f9532f07740; >= fa619a77046bef30478697aba0553991033afb8e, < bebbe1555677dbfa3542d2d2caa58a9adf4ec859; >= fa619a77046bef30478697a… Fixed in: Linux 2eab6afb62da0b29b731ee76f07658bda0b1dd19, Linux 1391b9d5db622cc883e945cc0b66666f2995bfca, Linux 9edaa226ea03da865204e67f745ee974806136e3, Linux 90e9b6357bec75f627cde1a85b5887215c80aad8 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.
Technologies
References
Other
- https://git.kernel.org/stable/c/e936a56c1ab8ba5d07938812b934b8b1d8b56dc7
- https://git.kernel.org/stable/c/d8ef8b4626d9df682bdb27be8c039f9532f07740
- https://git.kernel.org/stable/c/bebbe1555677dbfa3542d2d2caa58a9adf4ec859
- https://git.kernel.org/stable/c/ae817ef1690cadb9bb176a814f6d1d386d0a544e
- https://git.kernel.org/stable/c/2eab6afb62da0b29b731ee76f07658bda0b1dd19
- https://git.kernel.org/stable/c/1391b9d5db622cc883e945cc0b66666f2995bfca
- https://git.kernel.org/stable/c/9edaa226ea03da865204e67f745ee974806136e3
- https://git.kernel.org/stable/c/90e9b6357bec75f627cde1a85b5887215c80aad8
FAQ
Is CVE-2026-139584 being exploited?
There is no confirmed exploitation: CVE-2026-139584 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-139584?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-139584?
Linux >= fa619a77046bef30478697aba0553991033afb8e, < e936a56c1ab8ba5d07938812b934b8b1d8b56dc7; >= fa619a77046bef30478697aba0553991033afb8e, < d8ef8b4626d9df682bdb27be8c039f9532f07740; >= fa619a77046bef30478697aba0553991033afb8e, < bebbe1555677dbfa3542d2d2caa58a9adf4ec859; >= fa619a77046bef30478697aba0553991033afb8e, < ae817ef1690cadb9bb176a814f6d1d386d0a544e; >= fa619a77046bef30478697aba0553991033afb8e, < 2eab6afb62da0b29b731ee76f07658bda0b1dd19; >= fa619a77046bef30478697aba0553991033afb8e, < 1391b9d5db622cc883e945cc0b66666f2995bfca; >= fa619a77046bef30478697aba0553991033afb8e, < 9edaa226ea03da865204e67f745ee974806136e3; >= fa619a77046bef30478697aba0553991033afb8e, < 90e9b6357bec75f627cde1a85b5887215c80aad8; Linux 2.6.13.
Is there a fix for CVE-2026-139584?
Yes. Fixed in Linux 2eab6afb62da0b29b731ee76f07658bda0b1dd19, Linux 1391b9d5db622cc883e945cc0b66666f2995bfca, Linux 9edaa226ea03da865204e67f745ee974806136e3, Linux 90e9b6357bec75f627cde1a85b5887215c80aad8. Upgrade Linux to 90e9b6357bec75f627cde1a85b5887215c80aad8 or later.
How do I check if I'm affected by CVE-2026-139584?
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.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 6.5 | CVE-2026-140063 Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker | Linux kernel+1 | ||
| MEDIUM 5.1 | CVE-2026-140038 Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber | Linux kernel+1 | ||
| HIGH 7.3 | CVE-2026-139801 KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM | Linux kernel | ||
| UNSCORED | CVE-2026-139800 9p/xen: drain response work after unbinding IRQ | Linux kernel | ||
| HIGH 7.0 | CVE-2026-139799 mm/shmem: hold off eviction in shmem_writeout() | Linux kernel |