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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.73% (percentile 50, 2026-11-26)
- **Published:** 2025-02-27T20:00:58.290Z
- **Modified:** 2026-08-05T11:54:34.615Z

## Who should check

- Anyone running Linux \>= 667db86bcbe82e789d82c2e8c8c40756ec2e1999, \< 5a79cc9bc961fafe90787f86e8f53ba6fad8d63b; \>= 667db86bcbe82e789d82c2e8c8c40756ec2e1999, \< 1af2c769032b6b334cd2a867d7d8c7cbbc527b2d; \>= 667db86bcbe82e789d82c2e8c8c40756ec2e1999, \< 81468c4058a62e84e475433b83b3edc613294f5e
- Anyone running Linux 6.12

## 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.

## Affected and fixed versions

- Linux: \>= 667db86bcbe82e789d82c2e8c8c40756ec2e1999, \< 5a79cc9bc961fafe90787f86e8f53ba6fad8d63b; \>= 667db86bcbe82e789d82c2e8c8c40756ec2e1999, \< 1af2c769032b6b334cd2a867d7d8c7cbbc527b2d; \>= 667db86bcbe82e789d82c2e8c8c40756ec2e1999, \< 81468c4058a62e84e475433b83b3edc613294f5e (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 81468c4058a62e84e475433b83b3edc613294f5e or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21805. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21805.md
Affected: Linux >= 667db86bcbe82e789d82c2e8c8c40756ec2e1999, < 5a79cc9bc961fafe90787f86e8f53ba6fad8d63b; >= 667db86bcbe82e789d82c2e8c8c40756ec2e1999, < 1af2c769032b6b334cd2a867d7d8c7cbbc527b2d; >= 667db86bcbe82e789d82c2e8c8c40756ec2e1999, < 81468c4058a62e84e475433b83b3edc613294f5e; Linux 6.12
Fixed in: Linux 5a79cc9bc961fafe90787f86e8f53ba6fad8d63b, Linux 1af2c769032b6b334cd2a867d7d8c7cbbc527b2d, Linux 81468c4058a62e84e475433b83b3edc613294f5e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21805 being exploited?

There is no confirmed exploitation: CVE-2025-21805 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.73% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21805?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-21805?

Linux \>= 667db86bcbe82e789d82c2e8c8c40756ec2e1999, \< 5a79cc9bc961fafe90787f86e8f53ba6fad8d63b; \>= 667db86bcbe82e789d82c2e8c8c40756ec2e1999, \< 1af2c769032b6b334cd2a867d7d8c7cbbc527b2d; \>= 667db86bcbe82e789d82c2e8c8c40756ec2e1999, \< 81468c4058a62e84e475433b83b3edc613294f5e; Linux 6.12.

### Is there a fix for CVE-2025-21805?

Yes. Fixed in Linux 5a79cc9bc961fafe90787f86e8f53ba6fad8d63b, Linux 1af2c769032b6b334cd2a867d7d8c7cbbc527b2d, Linux 81468c4058a62e84e475433b83b3edc613294f5e. Upgrade Linux to 81468c4058a62e84e475433b83b3edc613294f5e or later.

### How do I check if I'm affected by CVE-2025-21805?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21805>

HTML: <https://flawdb.com/CVE-2025-21805> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21805>
