PT-2026-163400
CVE-2026-139359
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
CVSS 3.1
7.8
HighMetricsAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
In the Linux kernel, the following vulnerability has been resolved:
RDMA/rxe: refuse to destroy a QP with type 2 MWs still bound
Binding a type 2 memory window takes a reference on the QP:
rxe do bind mw() does rxe get(qp) and stores it in mw->qp. That
reference is released only when the window is invalidated
(rxe do invalidate mw() on IB WR LOCAL INV) or the window itself is
destroyed (rxe mw cleanup()).
rxe qp chk destroy() does not account for those references -- it only
refuses when qp->mcg num is non-zero. So an unprivileged user can bind
a type 2 MW to a QP and then destroy the QP while the binding is still
live. rxe cleanup() cannot drop the QP refcount to zero (the MW still
holds a reference), hits its -ETIMEDOUT path, and frees the QP anyway;
mw->qp is left dangling. When the MW is later invalidated or
deallocated, rxe mw cleanup()/rxe do invalidate mw() do rxe put(mw->qp)
on the freed struct rxe qp -- a use-after-free write (refcount dec, and
complete()/list work if it reaches zero) reachable from userspace.
IB WR BIND MW is a local operation, so no peer is required.
Track the number of type 2 MWs bound to a QP and refuse to destroy the
QP while that count is non-zero, returning -EBUSY exactly as the
existing multicast-attachment check does. The window must be
invalidated or deallocated, which drops the reference and the count,
before the QP can be destroyed.
Found an issue in the description? Have something to add? Feel free to write us 👾