# CVE-2025-21805: RDMA/rtrs: Add missing deinit() call

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2025-02-27T20:00:58.290Z
- Modified: 2026-08-05T11:54:34.615Z
- Assigned by: Linux

## Description

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

RDMA/rtrs: Add missing deinit() call

A warning is triggered when repeatedly connecting and disconnecting the
rnbd:
 list_add corruption. prev->next should be next (ffff88800b13e480), but was ffff88801ecd1338. (prev=ffff88801ecd1340).
 WARNING: CPU: 1 PID: 36562 at lib/list_debug.c:32 __list_add_valid_or_report+0x7f/0xa0
 Workqueue: ib_cm cm_work_handler [ib_cm]
 RIP: 0010:__list_add_valid_or_report+0x7f/0xa0
  ? __list_add_valid_or_report+0x7f/0xa0
  ib_register_event_handler+0x65/0x93 [ib_core]
  rtrs_srv_ib_dev_init+0x29/0x30 [rtrs_server]
  rtrs_ib_dev_find_or_add+0x124/0x1d0 [rtrs_core]
  __alloc_path+0x46c/0x680 [rtrs_server]
  ? rtrs_rdma_connect+0xa6/0x2d0 [rtrs_server]
  ? rcu_is_watching+0xd/0x40
  ? __mutex_lock+0x312/0xcf0
  ? get_or_create_srv+0xad/0x310 [rtrs_server]
  ? rtrs_rdma_connect+0xa6/0x2d0 [rtrs_server]
  rtrs_rdma_connect+0x23c/0x2d0 [rtrs_server]
  ? __lock_release+0x1b1/0x2d0
  cma_cm_event_handler+0x4a/0x1a0 [rdma_cm]
  cma_ib_req_handler+0x3a0/0x7e0 [rdma_cm]
  cm_process_work+0x28/0x1a0 [ib_cm]
  ? _raw_spin_unlock_irq+0x2f/0x50
  cm_req_handler+0x618/0xa60 [ib_cm]
  cm_work_handler+0x71/0x520 [ib_cm]

Commit 667db86bcbe8 ("RDMA/rtrs: Register ib event handler") introduced a
new element .deinit but never used it at all. Fix it by invoking the
`deinit()` to appropriately unregister the IB event handler.

(As written by CVE List.)

## Affected

- Linux Linux: from 667db86bcbe82e789d82c2e8c8c40756ec2e1999 before 5a79cc9bc961fafe90787f86e8f53ba6fad8d63b; from 667db86bcbe82e789d82c2e8c8c40756ec2e1999 before 1af2c769032b6b334cd2a867d7d8c7cbbc527b2d; from 667db86bcbe82e789d82c2e8c8c40756ec2e1999 before 81468c4058a62e84e475433b83b3edc613294f5e; 6.12 (not affected: before 6.12; from 6.12.13 up to 6.12.*; from 6.13.2 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.12 before 6.12.13; from 6.13 before 6.13.2

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/5a79cc9bc961fafe90787f86e8f53ba6fad8d63b> (patch)
- <https://git.kernel.org/stable/c/1af2c769032b6b334cd2a867d7d8c7cbbc527b2d> (patch)
- <https://git.kernel.org/stable/c/81468c4058a62e84e475433b83b3edc613294f5e> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2025-21805 · Whole record: https://cve.day/CVE-2025-21805.json · Rebuilt by cve.day 2026-11-25T22:58:54.609Z
