# CVE-2026-139593: RDMA/mlx5: Set QP event handler before firmware QPC insertion

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:36:11.336Z
- **Modified:** 2026-11-30T14:19:41.087Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker able to trigger firmware error events could cause a NULL pointer dereference in the Linux kernel RDMA mlx5 driver during queue pair creation, crashing the system.

## Who should check

- Anyone running Linux \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 52f40c02f9b91a14d34cdf7ebff833716aa60acf; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< b5ff026b41d2ff4c7708e8ce9750388ea09e6e96; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 2570ac441eda1a76aaf7aa4dd56bbe297e527ec8; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 05a078c97eb0bb7158526dae414b853737692485
- Anyone running Linux 3.11

## Description

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

RDMA/mlx5: Set QP event handler before firmware QPC insertion

Four QP creation paths assigned base-\>container\_mibqp and
base-\>mqp.event after the firmware create call that inserts the QP into
dev-\>qp\_table.tree. A firmware error EQE in that window reaches
qp-\>event() with a NULL pointer.

Move both assignments before the firmware call.

Also set ibqp.qp\_num inside mlx5\_qpc\_create\_qp() before
create\_resource\_common() so an EQE arriving early does not observe
qp\_num==0.

In addition, add a WARN\_ON\_ONCE(!qp-\>event) guard in
rsc\_event\_notifier() as a safeguard for future regressions.

## Affected and fixed versions

- Linux: \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 52f40c02f9b91a14d34cdf7ebff833716aa60acf; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< b5ff026b41d2ff4c7708e8ce9750388ea09e6e96; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 2570ac441eda1a76aaf7aa4dd56bbe297e527ec8; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 05a078c97eb0bb7158526dae414b853737692485 (cvelist)
- Linux: 3.11 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 05a078c97eb0bb7158526dae414b853737692485 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-139593.md
Affected: Linux >= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, < 52f40c02f9b91a14d34cdf7ebff833716aa60acf; >= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, < b5ff026b41d2ff4c7708e8ce9750388ea09e6e96; >= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, < 2570ac441eda1a76aaf7aa4dd56bbe297e527ec8; >= e126ba97dba9edeb6fafa36…
Fixed in: Linux 52f40c02f9b91a14d34cdf7ebff833716aa60acf, Linux 2570ac441eda1a76aaf7aa4dd56bbe297e527ec8, Linux 05a078c97eb0bb7158526dae414b853737692485

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-2026-139593 being exploited?

There is no confirmed exploitation: CVE-2026-139593 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139593?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139593?

Linux \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 52f40c02f9b91a14d34cdf7ebff833716aa60acf; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< b5ff026b41d2ff4c7708e8ce9750388ea09e6e96; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 2570ac441eda1a76aaf7aa4dd56bbe297e527ec8; \>= e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c, \< 05a078c97eb0bb7158526dae414b853737692485; Linux 3.11.

### Is there a fix for CVE-2026-139593?

Yes. Fixed in Linux 52f40c02f9b91a14d34cdf7ebff833716aa60acf, Linux 2570ac441eda1a76aaf7aa4dd56bbe297e527ec8, Linux 05a078c97eb0bb7158526dae414b853737692485. Upgrade Linux to 05a078c97eb0bb7158526dae414b853737692485 or later.

### How do I check if I'm affected by CVE-2026-139593?

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

- other: <https://git.kernel.org/stable/c/52f40c02f9b91a14d34cdf7ebff833716aa60acf>
- other: <https://git.kernel.org/stable/c/b5ff026b41d2ff4c7708e8ce9750388ea09e6e96>
- other: <https://git.kernel.org/stable/c/2570ac441eda1a76aaf7aa4dd56bbe297e527ec8>
- other: <https://git.kernel.org/stable/c/05a078c97eb0bb7158526dae414b853737692485>

## 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-2026-139593>

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