# CVE-2025-21886: RDMA/mlx5: Fix implicit ODP hang on parent deregistration

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-03-27T14:57:13.923Z
- **Modified:** 2026-11-05T21:17:45.307Z

## Who should check

- Anyone running Linux \>= 032f3f799fdb807a21467b7dc7d620395a735e2b, \< 641e50b27e87d7cd0d194f7a164703de599055b1; \>= 7cc8f681f6d4ae4478ae0f60485fc768f2b450da, \< cb96ae783e7249e8e5a50c22952c0bb2983133df; \>= edfb65dbb9ffd3102f3ff4dd21316158e56f1976, \< a095ede2daca49d15e74d66d014883f2fa8bb924; \>= d3d930411ce390e532470194296658a960887773, \< 3d8c6f26893d55fab218ad086719de1fc9bb86ba; a306dfff6b76aafa264ad33874a8992a8d5858b7; \>= 6.6.160, \< 6.7
- Anyone running Linux \>= 6.12.13, \< 6.12.18; \>= 6.13.2, \< 6.13.6

## Description

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

RDMA/mlx5: Fix implicit ODP hang on parent deregistration

Fix the destroy\_unused\_implicit\_child\_mr() to prevent hanging during
parent deregistration as of below \[1\].

Upon entering destroy\_unused\_implicit\_child\_mr(), the reference count
for the implicit MR parent is incremented using:
refcount\_inc\_not\_zero().

A corresponding decrement must be performed if
free\_implicit\_child\_mr\_work() is not called.

The code has been updated to properly manage the reference count that
was incremented.

\[1\]
INFO: task python3:2157 blocked for more than 120 seconds.
Not tainted 6.12.0-rc7+ \#1633
"echo 0 \> /proc/sys/kernel/hung\_task\_timeout\_secs" disables this message.
task:python3         state:D stack:0     pid:2157 tgid:2157  ppid:1685   flags:0x00000000
Call Trace:
\<TASK\>
\_\_schedule+0x420/0xd30
schedule+0x47/0x130
\_\_mlx5\_ib\_dereg\_mr+0x379/0x5d0 \[mlx5\_ib\]
? \_\_pfx\_autoremove\_wake\_function+0x10/0x10
ib\_dereg\_mr\_user+0x5f/0x120 \[ib\_core\]
? lock\_release+0xc6/0x280
destroy\_hw\_idr\_uobject+0x1d/0x60 \[ib\_uverbs\]
uverbs\_destroy\_uobject+0x58/0x1d0 \[ib\_uverbs\]
uobj\_destroy+0x3f/0x70 \[ib\_uverbs\]
ib\_uverbs\_cmd\_verbs+0x3e4/0xbb0 \[ib\_uverbs\]
? \_\_pfx\_uverbs\_destroy\_def\_handler+0x10/0x10 \[ib\_uverbs\]
? lock\_acquire+0xc1/0x2f0
? ib\_uverbs\_ioctl+0xcb/0x170 \[ib\_uverbs\]
? ib\_uverbs\_ioctl+0x116/0x170 \[ib\_uverbs\]
? lock\_release+0xc6/0x280
ib\_uverbs\_ioctl+0xe7/0x170 \[ib\_uverbs\]
? ib\_uverbs\_ioctl+0xcb/0x170 \[ib\_uverbs\]
 \_\_x64\_sys\_ioctl+0x1b0/0xa70
? kmem\_cache\_free+0x221/0x400
do\_syscall\_64+0x6b/0x140
entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
RIP: 0033:0x7f20f21f017b
RSP: 002b:00007ffcfc4a77c8 EFLAGS: 00000246 ORIG\_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffcfc4a78d8 RCX: 00007f20f21f017b
RDX: 00007ffcfc4a78c0 RSI: 00000000c0181b01 RDI: 0000000000000003
RBP: 00007ffcfc4a78a0 R08: 000056147d125190 R09: 00007f20f1f14c60
R10: 0000000000000001 R11: 0000000000000246 R12: 00007ffcfc4a7890
R13: 000000000000001c R14: 000056147d100fc0 R15: 00007f20e365c9d0
\</TASK\>

## Affected and fixed versions

- Linux: \>= 032f3f799fdb807a21467b7dc7d620395a735e2b, \< 641e50b27e87d7cd0d194f7a164703de599055b1; \>= 7cc8f681f6d4ae4478ae0f60485fc768f2b450da, \< cb96ae783e7249e8e5a50c22952c0bb2983133df; \>= edfb65dbb9ffd3102f3ff4dd21316158e56f1976, \< a095ede2daca49d15e74d66d014883f2fa8bb924; \>= d3d930411ce390e532470194296658a960887773, \< 3d8c6f26893d55fab218ad086719de1fc9bb86ba; a306dfff6b76aafa264ad33874a8992a8d5858b7; \>= 6.6.160, \< 6.7 (cvelist)
- Linux: \>= 6.12.13, \< 6.12.18; \>= 6.13.2, \< 6.13.6 (cvelist)

## Mitigation

- Upgrade Linux to 6.7 or later.
- Upgrade Linux to 6.13.6 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-21886. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21886.md
Affected: Linux >= 032f3f799fdb807a21467b7dc7d620395a735e2b, < 641e50b27e87d7cd0d194f7a164703de599055b1; >= 7cc8f681f6d4ae4478ae0f60485fc768f2b450da, < cb96ae783e7249e8e5a50c22952c0bb2983133df; >= edfb65dbb9ffd3102f3ff4dd21316158e56f1976, < a095ede2daca49d15e74d66d014883f2fa8bb924; >= d3d930411ce390e53247019…
Fixed in: Linux 641e50b27e87d7cd0d194f7a164703de599055b1, Linux 3d8c6f26893d55fab218ad086719de1fc9bb86ba, Linux 6.7, Linux 6.12.18, Linux 6.13.6

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-21886 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 032f3f799fdb807a21467b7dc7d620395a735e2b, \< 641e50b27e87d7cd0d194f7a164703de599055b1; \>= 7cc8f681f6d4ae4478ae0f60485fc768f2b450da, \< cb96ae783e7249e8e5a50c22952c0bb2983133df; \>= edfb65dbb9ffd3102f3ff4dd21316158e56f1976, \< a095ede2daca49d15e74d66d014883f2fa8bb924; \>= d3d930411ce390e532470194296658a960887773, \< 3d8c6f26893d55fab218ad086719de1fc9bb86ba; a306dfff6b76aafa264ad33874a8992a8d5858b7; \>= 6.6.160, \< 6.7; Linux \>= 6.12.13, \< 6.12.18; \>= 6.13.2, \< 6.13.6.

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

Yes. Fixed in Linux 641e50b27e87d7cd0d194f7a164703de599055b1, Linux 3d8c6f26893d55fab218ad086719de1fc9bb86ba, Linux 6.7, Linux 6.12.18, Linux 6.13.6. Upgrade Linux to 6.7 or later. Upgrade Linux to 6.13.6 or later.

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

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/cb96ae783e7249e8e5a50c22952c0bb2983133df>
- patch: <https://git.kernel.org/stable/c/a095ede2daca49d15e74d66d014883f2fa8bb924>
- patch: <https://git.kernel.org/stable/c/3d8c6f26893d55fab218ad086719de1fc9bb86ba>
- other: <https://git.kernel.org/stable/c/641e50b27e87d7cd0d194f7a164703de599055b1>

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

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