# CVE-2025-21892: RDMA/mlx5: Fix the recovery flow of the UMR QP

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-03-27T14:57:17.885Z
- **Modified:** 2026-10-30T13:17:53.843Z

## Who should check

- Anyone running Linux \>= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, \< 439cc4210978e6d03c5c374ecf967b361595a55b; \>= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, \< 6088e11c9aed12ecc8df465bdd334e60b75999a9; \>= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, \< 3e3bf255992cc02404e9d209b127c1c9944239cf; \>= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, \< 1d2b84d8d054313deed2b2fcafe1168bbcb9e99f; \>= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, \< d97505baea64d93538b16baf14ce7b8c1fbad746; d8f7bff9a42627d37f4ecffeb01e44db42167175; \>= 5.19.10, \< 5.20
- Anyone running Linux 6.0

## Description

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

RDMA/mlx5: Fix the recovery flow of the UMR QP

This patch addresses an issue in the recovery flow of the UMR QP,
ensuring tasks do not get stuck, as highlighted by the call trace \[1\].

During recovery, before transitioning the QP to the RESET state, the
software must wait for all outstanding WRs to complete.

Failing to do so can cause the firmware to skip sending some flushed
CQEs with errors and simply discard them upon the RESET, as per the IB
specification.

This race condition can result in lost CQEs and tasks becoming stuck.

To resolve this, the patch sends a final WR which serves only as a
barrier before moving the QP state to RESET.

Once a CQE is received for that final WR, it guarantees that no
outstanding WRs remain, making it safe to transition the QP to RESET and
subsequently back to RTS, restoring proper functionality.

Note:
For the barrier WR, we simply reuse the failed and ready WR.
Since the QP is in an error state, it will only receive
IB\_WC\_WR\_FLUSH\_ERR. However, as it serves only as a barrier we don't
care about its status.

\[1\]
INFO: task rdma\_resource\_l:1922 blocked for more than 120 seconds.
Tainted: G        W          6.12.0-rc7+ \#1626
"echo 0 \> /proc/sys/kernel/hung\_task\_timeout\_secs" disables this message.
task:rdma\_resource\_l state:D stack:0  pid:1922 tgid:1922  ppid:1369
     flags:0x00004004
Call Trace:
\<TASK\>
\_\_schedule+0x420/0xd30
schedule+0x47/0x130
schedule\_timeout+0x280/0x300
? mark\_held\_locks+0x48/0x80
? lockdep\_hardirqs\_on\_prepare+0xe5/0x1a0
wait\_for\_completion+0x75/0x130
mlx5r\_umr\_post\_send\_wait+0x3c2/0x5b0 \[mlx5\_ib\]
? \_\_pfx\_mlx5r\_umr\_done+0x10/0x10 \[mlx5\_ib\]
mlx5r\_umr\_revoke\_mr+0x93/0xc0 \[mlx5\_ib\]
\_\_mlx5\_ib\_dereg\_mr+0x299/0x520 \[mlx5\_ib\]
? \_raw\_spin\_unlock\_irq+0x24/0x40
? wait\_for\_completion+0xfe/0x130
? rdma\_restrack\_put+0x63/0xe0 \[ib\_core\]
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+0x64e/0x2080
? mark\_held\_locks+0x48/0x80
? find\_held\_lock+0x2d/0xa0
? lock\_acquire+0xc1/0x2f0
? ib\_uverbs\_ioctl+0xcb/0x170 \[ib\_uverbs\]
? \_\_fget\_files+0xc3/0x1b0
ib\_uverbs\_ioctl+0xe7/0x170 \[ib\_uverbs\]
? ib\_uverbs\_ioctl+0xcb/0x170 \[ib\_uverbs\]
\_\_x64\_sys\_ioctl+0x1b0/0xa70
do\_syscall\_64+0x6b/0x140
entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
RIP: 0033:0x7f99c918b17b
RSP: 002b:00007ffc766d0468 EFLAGS: 00000246 ORIG\_RAX:
     0000000000000010
RAX: ffffffffffffffda RBX: 00007ffc766d0578 RCX:
     00007f99c918b17b
RDX: 00007ffc766d0560 RSI: 00000000c0181b01 RDI:
     0000000000000003
RBP: 00007ffc766d0540 R08: 00007f99c8f99010 R09:
     000000000000bd7e
R10: 00007f99c94c1c70 R11: 0000000000000246 R12:
     00007ffc766d0530
R13: 000000000000001c R14: 0000000040246a80 R15:
     0000000000000000
\</TASK\>

## Affected and fixed versions

- Linux: \>= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, \< 439cc4210978e6d03c5c374ecf967b361595a55b; \>= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, \< 6088e11c9aed12ecc8df465bdd334e60b75999a9; \>= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, \< 3e3bf255992cc02404e9d209b127c1c9944239cf; \>= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, \< 1d2b84d8d054313deed2b2fcafe1168bbcb9e99f; \>= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, \< d97505baea64d93538b16baf14ce7b8c1fbad746; d8f7bff9a42627d37f4ecffeb01e44db42167175; \>= 5.19.10, \< 5.20 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-21892.md
Affected: Linux >= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, < 439cc4210978e6d03c5c374ecf967b361595a55b; >= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, < 6088e11c9aed12ecc8df465bdd334e60b75999a9; >= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, < 3e3bf255992cc02404e9d209b127c1c9944239cf; >= 158e71bb69e368b8b33e8b7…
Fixed in: Linux 439cc4210978e6d03c5c374ecf967b361595a55b, Linux 6088e11c9aed12ecc8df465bdd334e60b75999a9, Linux 3e3bf255992cc02404e9d209b127c1c9944239cf, Linux 1d2b84d8d054313deed2b2fcafe1168bbcb9e99f, Linux 5.20

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

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

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

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, \< 439cc4210978e6d03c5c374ecf967b361595a55b; \>= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, \< 6088e11c9aed12ecc8df465bdd334e60b75999a9; \>= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, \< 3e3bf255992cc02404e9d209b127c1c9944239cf; \>= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, \< 1d2b84d8d054313deed2b2fcafe1168bbcb9e99f; \>= 158e71bb69e368b8b33e8b7c4ac8c111da0c1ae2, \< d97505baea64d93538b16baf14ce7b8c1fbad746; d8f7bff9a42627d37f4ecffeb01e44db42167175; \>= 5.19.10, \< 5.20; Linux 6.0.

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

Yes. Fixed in Linux 439cc4210978e6d03c5c374ecf967b361595a55b, Linux 6088e11c9aed12ecc8df465bdd334e60b75999a9, Linux 3e3bf255992cc02404e9d209b127c1c9944239cf, Linux 1d2b84d8d054313deed2b2fcafe1168bbcb9e99f, Linux 5.20. Upgrade Linux to 5.20 or later.

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

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/3e3bf255992cc02404e9d209b127c1c9944239cf>
- patch: <https://git.kernel.org/stable/c/1d2b84d8d054313deed2b2fcafe1168bbcb9e99f>
- patch: <https://git.kernel.org/stable/c/d97505baea64d93538b16baf14ce7b8c1fbad746>
- other: <https://git.kernel.org/stable/c/439cc4210978e6d03c5c374ecf967b361595a55b>
- other: <https://git.kernel.org/stable/c/6088e11c9aed12ecc8df465bdd334e60b75999a9>

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

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