# CVE-2025-22086: RDMA/mlx5: Fix mlx5\_poll\_one() cur\_qp update flow

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.40% (percentile 26, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-04-16T14:12:34.560Z
- **Modified:** 2026-08-05T11:56:39.977Z

## Who should check

- Anyone running Linux \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 3b97d77049856865ac5ce8ffbc6e716928310f7f; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 856d9e5d72dc44eca6d5a153581c58fbd84e92e1; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< f0447ceb8a31d79bee7144f98f9a13f765531e1a; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< dc7139b7031d877acd73d7eff55670f22f48cd5e; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 7c51a6964b45b6d40027abd77e89cef30d26dc5a; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< cad677085274ecf9c7565b5bfc5d2e49acbf174c; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 55c65a64aefa6267b964d90e9a4039cb68ec73a5; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< d52636eb13ccba448a752964cc6fc49970912874; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 5ed3b0cb3f827072e93b4c5b6e2b8106fd7cccbd
- Anyone running Linux 3.11

## Description

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

RDMA/mlx5: Fix mlx5\_poll\_one() cur\_qp update flow

When cur\_qp isn't NULL, in order to avoid fetching the QP from
the radix tree again we check if the next cqe QP is identical to
the one we already have.

The bug however is that we are checking if the QP is identical by
checking the QP number inside the CQE against the QP number inside the
mlx5\_ib\_qp, but that's wrong since the QP number from the CQE is from
FW so it should be matched against mlx5\_core\_qp which is our FW QP
number.

Otherwise we could use the wrong QP when handling a CQE which could
cause the kernel trace below.

This issue is mainly noticeable over QPs 0 & 1, since for now they are
the only QPs in our driver whereas the QP number inside mlx5\_ib\_qp
doesn't match the QP number inside mlx5\_core\_qp.

BUG: kernel NULL pointer dereference, address: 0000000000000012
 \#PF: supervisor read access in kernel mode
 \#PF: error\_code(0x0000) - not-present page
 PGD 0 P4D 0
 Oops: Oops: 0000 \[\#1\] SMP
 CPU: 0 UID: 0 PID: 7927 Comm: kworker/u62:1 Not tainted 6.14.0-rc3+ \#189
 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
 Workqueue: ib-comp-unb-wq ib\_cq\_poll\_work \[ib\_core\]
 RIP: 0010:mlx5\_ib\_poll\_cq+0x4c7/0xd90 \[mlx5\_ib\]
 Code: 03 00 00 8d 58 ff 21 cb 66 39 d3 74 39 48 c7 c7 3c 89 6e a0 0f b7 db e8 b7 d2 b3 e0 49 8b 86 60 03 00 00 48 c7 c7 4a 89 6e a0 \<0f\> b7 5c 98 02 e8 9f d2 b3 e0 41 0f b7 86 78 03 00 00 83 e8 01 21
 RSP: 0018:ffff88810511bd60 EFLAGS: 00010046
 RAX: 0000000000000010 RBX: 0000000000000000 RCX: 0000000000000000
 RDX: 0000000000000000 RSI: ffff88885fa1b3c0 RDI: ffffffffa06e894a
 RBP: 00000000000000b0 R08: 0000000000000000 R09: ffff88810511bc10
 R10: 0000000000000001 R11: 0000000000000001 R12: ffff88810d593000
 R13: ffff88810e579108 R14: ffff888105146000 R15: 00000000000000b0
 FS:  0000000000000000(0000) GS:ffff88885fa00000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 0000000000000012 CR3: 00000001077e6001 CR4: 0000000000370eb0
 Call Trace:
  \<TASK\>
  ? \_\_die+0x20/0x60
  ? page\_fault\_oops+0x150/0x3e0
  ? exc\_page\_fault+0x74/0x130
  ? asm\_exc\_page\_fault+0x22/0x30
  ? mlx5\_ib\_poll\_cq+0x4c7/0xd90 \[mlx5\_ib\]
  \_\_ib\_process\_cq+0x5a/0x150 \[ib\_core\]
  ib\_cq\_poll\_work+0x31/0x90 \[ib\_core\]
  process\_one\_work+0x169/0x320
  worker\_thread+0x288/0x3a0
  ? work\_busy+0xb0/0xb0
  kthread+0xd7/0x1f0
  ? kthreads\_online\_cpu+0x130/0x130
  ? kthreads\_online\_cpu+0x130/0x130
  ret\_from\_fork+0x2d/0x50
  ? kthreads\_online\_cpu+0x130/0x130
  ret\_from\_fork\_asm+0x11/0x20
  \</TASK\>

## Affected and fixed versions

- Linux: \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 3b97d77049856865ac5ce8ffbc6e716928310f7f; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 856d9e5d72dc44eca6d5a153581c58fbd84e92e1; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< f0447ceb8a31d79bee7144f98f9a13f765531e1a; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< dc7139b7031d877acd73d7eff55670f22f48cd5e; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 7c51a6964b45b6d40027abd77e89cef30d26dc5a; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< cad677085274ecf9c7565b5bfc5d2e49acbf174c; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 55c65a64aefa6267b964d90e9a4039cb68ec73a5; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< d52636eb13ccba448a752964cc6fc49970912874; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 5ed3b0cb3f827072e93b4c5b6e2b8106fd7cccbd (cvelist)
- Linux: 3.11 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-22086.md
Affected: Linux >= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, < 3b97d77049856865ac5ce8ffbc6e716928310f7f; >= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, < 856d9e5d72dc44eca6d5a153581c58fbd84e92e1; >= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, < f0447ceb8a31d79bee7144f98f9a13f765531e1a; >= e126ba97dba9edeb6fafa36…
Fixed in: Linux 3b97d77049856865ac5ce8ffbc6e716928310f7f, Linux 856d9e5d72dc44eca6d5a153581c58fbd84e92e1, Linux 7c51a6964b45b6d40027abd77e89cef30d26dc5a, Linux 55c65a64aefa6267b964d90e9a4039cb68ec73a5, Linux 5ed3b0cb3f827072e93b4c5b6e2b8106fd7cccbd

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

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

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

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 3b97d77049856865ac5ce8ffbc6e716928310f7f; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 856d9e5d72dc44eca6d5a153581c58fbd84e92e1; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< f0447ceb8a31d79bee7144f98f9a13f765531e1a; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< dc7139b7031d877acd73d7eff55670f22f48cd5e; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 7c51a6964b45b6d40027abd77e89cef30d26dc5a; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< cad677085274ecf9c7565b5bfc5d2e49acbf174c; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 55c65a64aefa6267b964d90e9a4039cb68ec73a5; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< d52636eb13ccba448a752964cc6fc49970912874; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 5ed3b0cb3f827072e93b4c5b6e2b8106fd7cccbd; Linux 3.11.

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

Yes. Fixed in Linux 3b97d77049856865ac5ce8ffbc6e716928310f7f, Linux 856d9e5d72dc44eca6d5a153581c58fbd84e92e1, Linux 7c51a6964b45b6d40027abd77e89cef30d26dc5a, Linux 55c65a64aefa6267b964d90e9a4039cb68ec73a5, Linux 5ed3b0cb3f827072e93b4c5b6e2b8106fd7cccbd. Upgrade Linux to 5ed3b0cb3f827072e93b4c5b6e2b8106fd7cccbd or later.

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

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/3b97d77049856865ac5ce8ffbc6e716928310f7f>
- patch: <https://git.kernel.org/stable/c/856d9e5d72dc44eca6d5a153581c58fbd84e92e1>
- patch: <https://git.kernel.org/stable/c/f0447ceb8a31d79bee7144f98f9a13f765531e1a>
- patch: <https://git.kernel.org/stable/c/dc7139b7031d877acd73d7eff55670f22f48cd5e>
- patch: <https://git.kernel.org/stable/c/7c51a6964b45b6d40027abd77e89cef30d26dc5a>
- patch: <https://git.kernel.org/stable/c/cad677085274ecf9c7565b5bfc5d2e49acbf174c>
- patch: <https://git.kernel.org/stable/c/55c65a64aefa6267b964d90e9a4039cb68ec73a5>
- patch: <https://git.kernel.org/stable/c/d52636eb13ccba448a752964cc6fc49970912874>
- patch: <https://git.kernel.org/stable/c/5ed3b0cb3f827072e93b4c5b6e2b8106fd7cccbd>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

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

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