CVE-2026-139584

Not scored yetLast modified Nov 30, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-1395857.8In the Linux kernel, the following vulnerability has been resolved: media: iris: reference count video instances iris_get_instance() looksCVE-2026-139586In the Linux kernel, the following vulnerability has been resolved: media: iris: take core lock when scanning the instance list iris_checkCVE-2026-139587In the Linux kernel, the following vulnerability has been resolved: media: iris: cancel sys error work on driver removal Cancel sys_error_CVE-2026-139588In the Linux kernel, the following vulnerability has been resolved: media: venus: Drop session events without an instance hfi_process_msg_CVE-2026-1395897.0In the Linux kernel, the following vulnerability has been resolved: RDMA/bnxt_re: Fix the PD and DPI table size The PD and DPI bitmaps werCVE-2026-139594.3Insufficient validation of untrusted input in Blink in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to bypass same origin CVE-2026-139590In the Linux kernel, the following vulnerability has been resolved: IB/isert: Don't share drop_cmd_list across concurrent connection teardoCVE-2026-139591In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Restore mr->pi_mr after temporary stack-local assignment InCVE-2026-139592In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it CVE-2026-139593In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Set QP event handler before firmware QPC insertion Four QP CVE-2026-139594In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Set RQ event handler for raw-packet QP create_raw_packet_qpCVE-2026-139595In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Set SRQ event handler before xarray insertion mlx5_cmd_crea
CVE-2026-139584: Unscored | Vulnix