# CVE-2022-49929: RDMA/rxe: Fix mr leak in RESPST_ERR_RNR

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-05-01T14:11:06.721Z
- Modified: 2026-11-05T20:17:18.093Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

RDMA/rxe: Fix mr leak in RESPST_ERR_RNR

rxe_recheck_mr() will increase mr's ref_cnt, so we should call rxe_put(mr)
to drop mr's ref_cnt in RESPST_ERR_RNR to avoid below warning:

  WARNING: CPU: 0 PID: 4156 at drivers/infiniband/sw/rxe/rxe_pool.c:259 __rxe_cleanup+0x1df/0x240 [rdma_rxe]
...
  Call Trace:
   rxe_dereg_mr+0x4c/0x60 [rdma_rxe]
   ib_dereg_mr_user+0xa8/0x200 [ib_core]
   ib_mr_pool_destroy+0x77/0xb0 [ib_core]
   nvme_rdma_destroy_queue_ib+0x89/0x240 [nvme_rdma]
   nvme_rdma_free_queue+0x40/0x50 [nvme_rdma]
   nvme_rdma_teardown_io_queues.part.0+0xc3/0x120 [nvme_rdma]
   nvme_rdma_error_recovery_work+0x4d/0xf0 [nvme_rdma]
   process_one_work+0x582/0xa40
   ? pwq_dec_nr_in_flight+0x100/0x100
   ? rwlock_bug.part.0+0x60/0x60
   worker_thread+0x2a9/0x700
   ? process_one_work+0xa40/0xa40
   kthread+0x168/0x1a0
   ? kthread_complete_and_exit+0x20/0x20
   ret_from_fork+0x22/0x30

(As written by CVE List.)

## Affected

- Linux Linux: from 8a1a0be894da0d06bfbb496cc2dc3057fa83e103 before 50b35ad2864a9d66f802f9ce193d99bbef64e219; from 8a1a0be894da0d06bfbb496cc2dc3057fa83e103 before b5f9a01fae42684648c2ee3cd9985f80c67ab9f7; 5.18 (not affected: before 5.18; from 6.0.8 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.18 before 6.0.8; 6.1

## References

- <https://git.kernel.org/stable/c/50b35ad2864a9d66f802f9ce193d99bbef64e219> (patch)
- <https://git.kernel.org/stable/c/b5f9a01fae42684648c2ee3cd9985f80c67ab9f7> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2022-49929 · Whole record: https://cve.day/CVE-2022-49929.json · Rebuilt by cve.day 2026-11-25T22:58:20.942Z
