CVE-2026-139591

Source
https://cve.org/CVERecord?id=CVE-2026-139591
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139591.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139591
Downstream
Published
2026-11-30T13:36:10Z
Modified
2026-11-30T15:02:29Z
Summary
RDMA/mlx5: Restore mr->pi_mr after temporary stack-local assignment
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139591.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2563e2f30acb4c914fc475331e476fa920eb4245
Fixed
0fabd08ceacbc1368a1e6459a438a49884145320
Fixed
0f2dc4ec62d86316d01bf509788463c5c35f0160
Fixed
54f3563103e3bb988a6d57d655568ad0aed9576b
Fixed
5130c610180ad57c7a8ce35868b5b49f24de4a84
Fixed
76d6f0e04e567db3ebe28e695bbdb3cc4e007d82
Fixed
91264cb942b762b6b86fc2cb10c38bfdc31c36fb
Fixed
46f20f6e193f20892d2a5e2af7c4143d2a27562c
Fixed
9728effe43d8fc4d58e12b697d0d6127355abdd5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139591.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.3.0
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139591.json"