Skip to main content
VulnerabilityPublished

CVE-2026-139584: Linux kernel · IB/mad: fix UAF and double-free in RMPP receive reassembly

Source GCVE Database

0
Compare
Authoritative record:CVE-2026-139584

Not known to be exploited · fixed in e936a56c1ab8ba5d07938812b934b8b1d8b56dc7 : update Linux kernel when convenient.

Data as of 30 Nov 2026, 17:16 UTC

Severity
Unrated

Rated by Threat Radar · CVSS not yet scored by NVD

Thin evidence

One scorer or none
Patch
Available – fixed in e936a56c1ab8ba5d07938812b934b8b1d8b56dc7, d8ef8b4626d9df682bdb27be8c039f9532f07740, bebbe1555677dbfa3542d2d2caa58a9adf4ec859 +5

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
LinuxLinuxAffected
  • ≥ fa619a77046bef30478697aba0553991033afb8e, < e936a56c1ab8ba5d07938812b934b8b1d8b56dc7
Fixed in
  • e936a56c1ab8ba5d07938812b934b8b1d8b56dc7
LinuxLinuxAffected
  • ≥ fa619a77046bef30478697aba0553991033afb8e, < d8ef8b4626d9df682bdb27be8c039f9532f07740
Fixed in
  • d8ef8b4626d9df682bdb27be8c039f9532f07740
LinuxLinuxAffected
  • ≥ fa619a77046bef30478697aba0553991033afb8e, < bebbe1555677dbfa3542d2d2caa58a9adf4ec859
Fixed in
  • bebbe1555677dbfa3542d2d2caa58a9adf4ec859
LinuxLinuxAffected
  • ≥ fa619a77046bef30478697aba0553991033afb8e, < ae817ef1690cadb9bb176a814f6d1d386d0a544e
Fixed in
  • ae817ef1690cadb9bb176a814f6d1d386d0a544e
LinuxLinuxAffected
  • ≥ fa619a77046bef30478697aba0553991033afb8e, < 1391b9d5db622cc883e945cc0b66666f2995bfca
Fixed in
  • 1391b9d5db622cc883e945cc0b66666f2995bfca
LinuxLinuxAffected
  • ≥ fa619a77046bef30478697aba0553991033afb8e, < 90e9b6357bec75f627cde1a85b5887215c80aad8
Fixed in
  • 90e9b6357bec75f627cde1a85b5887215c80aad8

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.

References

Community reviews

Loading reviews…