CVE-2026-139591

RDMA/mlx5: Restore mr->pi_mr after temporary stack-local assignment

No CVSS score yet EPSS 0.18%

Published 30 Nov 2026 Updated 30 Nov 2026 CNA: Linux

Check your servers for CVE-2026-139591

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139591 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.49% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 2563e2f30acb4c914fc475331e476fa920eb4245, before 0fabd08ceacbc1368a1e6459a438a49884145320
affected from 2563e2f30acb4c914fc475331e476fa920eb4245, before 0f2dc4ec62d86316d01bf509788463c5c35f0160
affected from 2563e2f30acb4c914fc475331e476fa920eb4245, before 54f3563103e3bb988a6d57d655568ad0aed9576b
affected from 2563e2f30acb4c914fc475331e476fa920eb4245, before 5130c610180ad57c7a8ce35868b5b49f24de4a84
affected from 2563e2f30acb4c914fc475331e476fa920eb4245, before 76d6f0e04e567db3ebe28e695bbdb3cc4e007d82
affected from 2563e2f30acb4c914fc475331e476fa920eb4245, before 91264cb942b762b6b86fc2cb10c38bfdc31c36fb
affected from 2563e2f30acb4c914fc475331e476fa920eb4245, before 46f20f6e193f20892d2a5e2af7c4143d2a27562c
affected from 2563e2f30acb4c914fc475331e476fa920eb4245, before 9728effe43d8fc4d58e12b697d0d6127355abdd5
Other versions: unaffected
Linux
affected 5.3
unaffected before 5.3
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.119 up to and including 6.12.*
unaffected from 6.18.65 up to and including 6.18.*
unaffected from 7.3.6 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139591 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139591

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-139591
trivy image --scanners vuln IMAGE | grep CVE-2026-139591

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-139591 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.