CVE-2026-139591: Linux kernel · RDMA/mlx5: Restore mr->pi_mr after temporary stack-local assignment
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 5.8 High.
Data as of 2 Dec 2026, 18:37 UTC
Thin evidence
One scorer or none- EPSS
- 0.1% chance of exploitation in 30 days – higher than 7% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10linuxpkg:deb/ubuntu/linux?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-oraclepkg:deb/ubuntu/linux-oracle?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-139591 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-139591 (opens in a new tab)
- git.kernel.org/stable/c/76d6f0e04e567db3ebe28e695bbdb3cc4e007d82 (opens in a new tab)
- git.kernel.org/stable/c/5130c610180ad57c7a8ce35868b5b49f24de4a84 (opens in a new tab)
- git.kernel.org/stable/c/9728effe43d8fc4d58e12b697d0d6127355abdd5 (opens in a new tab)
- git.kernel.org/stable/c/0f2dc4ec62d86316d01bf509788463c5c35f0160 (opens in a new tab)
- git.kernel.org/stable/c/46f20f6e193f20892d2a5e2af7c4143d2a27562c (opens in a new tab)
- git.kernel.org/stable/c/54f3563103e3bb988a6d57d655568ad0aed9576b (opens in a new tab)
- git.kernel.org/stable/c/0fabd08ceacbc1368a1e6459a438a49884145320 (opens in a new tab)
- git.kernel.org/stable/c/91264cb942b762b6b86fc2cb10c38bfdc31c36fb (opens in a new tab)