CVE-2026-139591
RDMA/mlx5: Restore mr->pi_mr after temporary stack-local assignment
AI summary AI generated
An attacker with local access can trigger a use of a dangling pointer in the Linux kernel RDMA mlx5 driver by posting a second integrity registration on the same memory region.
Mitigation
- Upgrade Linux to 9728effe43d8fc4d58e12b697d0d6127355abdd5 or later.
Who should check
- Anyone running Linux >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 0fabd08ceacbc1368a1e6459a438a49884145320; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 0f2dc4ec62d86316d01bf509788463c5c35f0160; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 54f3563103e3bb988a6d57d655568ad0aed9576b; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 5130c610180ad57c7a8ce35868b5b49f24de4a84; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 76d6f0e04e567db3ebe28e695bbdb3cc4e007d82; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 91264cb942b762b6b86fc2cb10c38bfdc31c36fb; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 46f20f6e193f20892d2a5e2af7c4143d2a27562c; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 9728effe43d8fc4d58e12b697d0d6127355abdd5
- Anyone running Linux 5.3
Vulnerability facts
- Affected
- Linux >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 0fabd08ceacbc1368a1e6459a438a49884145320; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 0f2dc4ec62d86316d01bf509788463c5c35f0160; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 54f3563103e3bb988a6d57d655568ad0aed9576b; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 5130c610180ad57c7a8ce35868b5b49f24de4a84; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 76d6f0e04e567db3ebe28e695bbdb3cc4e007d82; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 91264cb942b762b6b86fc2cb10c38bfdc31c36fb; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 46f20f6e193f20892d2a5e2af7c4143d2a27562c; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 9728effe43d8fc4d58e12b697d0d6127355abdd5; Linux 5.3
- Fixed in
- Linux 0fabd08ceacbc1368a1e6459a438a49884145320, Linux 0f2dc4ec62d86316d01bf509788463c5c35f0160, Linux 54f3563103e3bb988a6d57d655568ad0aed9576b, Linux 5130c610180ad57c7a8ce35868b5b49f24de4a84, Linux 76d6f0e04e567db3ebe28e695bbdb3cc4e007d82, Linux 91264cb942b762b6b86fc2cb10c38bfdc31c36fb, Linux 46f20f6e193f20892d2a5e2af7c4143d2a27562c, Linux 9728effe43d8fc4d58e12b697d0d6127355abdd5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Restore mr->pi_mr after temporary stack-local assignment In handle_reg_mr_integrity, when mr->pi_mr is NULL (physical-address optimization path), the code points mr->pi_mr at a stack-local pa_pi_mr so set_pi_umr_wr can read it during this call. The pointer is never restored, so after the function returns mr->pi_mr dangles at a freed stack frame. A second IB_WR_REG_MR_INTEGRITY posted on the same MR without remapping reads the stale pointer and dereferences it. Save the original pi_mr (captured at function entry) and restore it on the out path.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 0fabd08ceacbc1368a1e6459a438a49884145320; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 0f2dc4ec62d86316d01bf509788463c5c35f0160; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 54f3563103e3bb988a6d57d655568ad0aed9576b; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 5130c610180ad57c7a8ce35868b5b49f24de4a84; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 76d6f0e04e567db3ebe28e695bbdb3cc4e007d82; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 91264cb942b762b6b86fc2cb10c38bfdc31c36fb; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 46f20f6e193f20892d2a5e2af7c4143d2a27562c; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 9728effe43d8fc4d58e12b697d0d6127355abdd5 | — | cvelist |
| Linux | 5.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-139591. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-139591.md Affected: Linux >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 0fabd08ceacbc1368a1e6459a438a49884145320; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 0f2dc4ec62d86316d01bf509788463c5c35f0160; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 54f3563103e3bb988a6d57d655568ad0aed9576b; >= 2563e2f30acb4c914fc4753… Fixed in: Linux 0fabd08ceacbc1368a1e6459a438a49884145320, Linux 0f2dc4ec62d86316d01bf509788463c5c35f0160, Linux 54f3563103e3bb988a6d57d655568ad0aed9576b, Linux 5130c610180ad57c7a8ce35868b5b49f24de4a84, Linux 76d6f0e04e567db3ebe28e695bbdb3cc4e007d82, Linux 91264cb942b762b6b86fc2cb10c38bfdc31c36fb, Linux 46f20… 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.
Technologies
References
Other
- https://git.kernel.org/stable/c/0fabd08ceacbc1368a1e6459a438a49884145320
- https://git.kernel.org/stable/c/0f2dc4ec62d86316d01bf509788463c5c35f0160
- https://git.kernel.org/stable/c/54f3563103e3bb988a6d57d655568ad0aed9576b
- https://git.kernel.org/stable/c/5130c610180ad57c7a8ce35868b5b49f24de4a84
- https://git.kernel.org/stable/c/76d6f0e04e567db3ebe28e695bbdb3cc4e007d82
- https://git.kernel.org/stable/c/91264cb942b762b6b86fc2cb10c38bfdc31c36fb
- https://git.kernel.org/stable/c/46f20f6e193f20892d2a5e2af7c4143d2a27562c
- https://git.kernel.org/stable/c/9728effe43d8fc4d58e12b697d0d6127355abdd5
FAQ
Is CVE-2026-139591 being exploited?
There is no confirmed exploitation: CVE-2026-139591 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-139591?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-139591?
Linux >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 0fabd08ceacbc1368a1e6459a438a49884145320; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 0f2dc4ec62d86316d01bf509788463c5c35f0160; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 54f3563103e3bb988a6d57d655568ad0aed9576b; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 5130c610180ad57c7a8ce35868b5b49f24de4a84; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 76d6f0e04e567db3ebe28e695bbdb3cc4e007d82; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 91264cb942b762b6b86fc2cb10c38bfdc31c36fb; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 46f20f6e193f20892d2a5e2af7c4143d2a27562c; >= 2563e2f30acb4c914fc475331e476fa920eb4245, < 9728effe43d8fc4d58e12b697d0d6127355abdd5; Linux 5.3.
Is there a fix for CVE-2026-139591?
Yes. Fixed in Linux 0fabd08ceacbc1368a1e6459a438a49884145320, Linux 0f2dc4ec62d86316d01bf509788463c5c35f0160, Linux 54f3563103e3bb988a6d57d655568ad0aed9576b, Linux 5130c610180ad57c7a8ce35868b5b49f24de4a84, Linux 76d6f0e04e567db3ebe28e695bbdb3cc4e007d82, Linux 91264cb942b762b6b86fc2cb10c38bfdc31c36fb, Linux 46f20f6e193f20892d2a5e2af7c4143d2a27562c, Linux 9728effe43d8fc4d58e12b697d0d6127355abdd5. Upgrade Linux to 9728effe43d8fc4d58e12b697d0d6127355abdd5 or later.
How do I check if I'm affected by CVE-2026-139591?
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.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 6.5 | CVE-2026-140063 Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker | Linux kernel+1 | ||
| MEDIUM 5.1 | CVE-2026-140038 Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber | Linux kernel+1 | ||
| HIGH 7.3 | CVE-2026-139801 KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM | Linux kernel | ||
| UNSCORED | CVE-2026-139800 9p/xen: drain response work after unbinding IRQ | Linux kernel | ||
| HIGH 7.0 | CVE-2026-139799 mm/shmem: hold off eviction in shmem_writeout() | Linux kernel |