# CVE-2026-80864: RDMA/rxe: Fix responder UAF on IB_QP_MAX_DEST_RD_ATOMIC modify_qp

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 7% of CVEs (2026-11-30)
- Published: 2026-09-04T15:55:18.791Z
- Modified: 2026-10-30T13:20:13.103Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

RDMA/rxe: Fix responder UAF on IB_QP_MAX_DEST_RD_ATOMIC modify_qp

rxe_qp_from_attr() handles IB_QP_MAX_DEST_RD_ATOMIC outside the
IB_QP_STATE path, so it holds no state_lock and runs while the responder
task rxe_receiver() (recv_task on rxe_wq) is live. A modify_qp() setting
only that attribute calls free_rd_atomic_resources() then
alloc_rd_atomic_resources(), swapping qp->resp.resources[] while
rxe_prepare_res()/find_resource() walk it; free_rd_atomic_resources()
also leaves the cached pointer qp->resp.res dangling. A local
unprivileged user can race the free/realloc into a use-after-free in
rxe_receiver() (local DoS).

Drain recv_task around the swap with rxe_disable_task()/rxe_enable_task(),
as rxe_qp_reset() already does when tearing this array down, re-enabling
only after alloc_rd_atomic_resources() succeeds so the responder never
resumes against a NULL qp->resp.resources on the ENOMEM path. Also clear
qp->resp.res in free_rd_atomic_resources(), like the rxe_resp.c
completion paths.

Reproduced under KASAN; the slab-use-after-free in rxe_receiver() is gone.

(As written by CVE List.)

## Affected

- Linux Linux: from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 87e40635d77aa19088550698c81eb295d5131f71; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 82257379061c0a7aba6c77081d988339982af115; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 0136b528b753c5a56e4d997ef20b86bb6750b8fb; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before ffa4f0be69656be1755090f02db38d49816585c6; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before d4cd32eb8bd2b0ffbdc7b1f3d82ce6a371f8f844; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 60dfd47929cd1e7070daa810d40ce538d888410d; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 6f7014237405e7f032b5c53a82d9eccf6161c291; 4.8 (not affected: before 4.8; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.108 up to 6.12.*; from 6.18.49 up to 6.18.*; from 7.1.13 up to 7.1.*; from 7.2.3 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/87e40635d77aa19088550698c81eb295d5131f71>
- <https://git.kernel.org/stable/c/82257379061c0a7aba6c77081d988339982af115>
- <https://git.kernel.org/stable/c/0136b528b753c5a56e4d997ef20b86bb6750b8fb>
- <https://git.kernel.org/stable/c/ffa4f0be69656be1755090f02db38d49816585c6>
- <https://git.kernel.org/stable/c/d4cd32eb8bd2b0ffbdc7b1f3d82ce6a371f8f844>
- <https://git.kernel.org/stable/c/60dfd47929cd1e7070daa810d40ce538d888410d>
- <https://git.kernel.org/stable/c/6f7014237405e7f032b5c53a82d9eccf6161c291>

## Sources

- CVE List: [CVE-2026-80864](https://www.cve.org/CVERecord?id=CVE-2026-80864), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-80864](https://nvd.nist.gov/vuln/detail/CVE-2026-80864), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-80864 · Whole record: https://cve.day/CVE-2026-80864.json · Rebuilt by cve.day 2026-11-25T22:59:36.355Z
