PT-2026-163625

CVE-2026-139584

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

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.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾