{"id":"CVE-2026-139591","aliases":["CVE-2026-139591"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/mlx5: Restore mr->pi_mr after temporary stack-local assignment","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/mlx5: Restore mr->pi_mr after temporary stack-local assignment\n\nIn handle_reg_mr_integrity, when mr->pi_mr is NULL (physical-address\noptimization path), the code points mr->pi_mr at a stack-local pa_pi_mr\nso set_pi_umr_wr can read it during this call. The pointer is never\nrestored, so after the function returns mr->pi_mr dangles at a freed stack\nframe. A second IB_WR_REG_MR_INTEGRITY posted on the same MR without\nremapping reads the stale pointer and dereferences it.\n\nSave the original pi_mr (captured at function entry) and restore it on\nthe out path.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/mlx5: Restore mr->pi_mr after temporary stack-local assignment\n\nIn handle_reg_mr_integrity, when mr->pi_mr is NULL (physical-address\noptimization path), the code points mr->pi_mr at a stack-local pa_pi_mr\nso set_pi_umr_wr can read it during this call. The pointer is never\nrestored, so after the function returns mr->pi_mr dangles at a freed stack\nframe. A second IB_WR_REG_MR_INTEGRITY posted on the same MR without\nremapping reads the stale pointer and dereferences it.\n\nSave the original pi_mr (captured at function entry) and restore it on\nthe out path.","source":"cvelist"}],"published":"2026-11-30T13:36:10.241Z","modified":"2026-11-30T14:19:40.813Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2563e2f30acb4c914fc475331e476fa920eb4245","fixed":"0fabd08ceacbc1368a1e6459a438a49884145320","status":"affected"},{"type":"git","introduced":"2563e2f30acb4c914fc475331e476fa920eb4245","fixed":"0f2dc4ec62d86316d01bf509788463c5c35f0160","status":"affected"},{"type":"git","introduced":"2563e2f30acb4c914fc475331e476fa920eb4245","fixed":"54f3563103e3bb988a6d57d655568ad0aed9576b","status":"affected"},{"type":"git","introduced":"2563e2f30acb4c914fc475331e476fa920eb4245","fixed":"5130c610180ad57c7a8ce35868b5b49f24de4a84","status":"affected"},{"type":"git","introduced":"2563e2f30acb4c914fc475331e476fa920eb4245","fixed":"76d6f0e04e567db3ebe28e695bbdb3cc4e007d82","status":"affected"},{"type":"git","introduced":"2563e2f30acb4c914fc475331e476fa920eb4245","fixed":"91264cb942b762b6b86fc2cb10c38bfdc31c36fb","status":"affected"},{"type":"git","introduced":"2563e2f30acb4c914fc475331e476fa920eb4245","fixed":"46f20f6e193f20892d2a5e2af7c4143d2a27562c","status":"affected"},{"type":"git","introduced":"2563e2f30acb4c914fc475331e476fa920eb4245","fixed":"9728effe43d8fc4d58e12b697d0d6127355abdd5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.3","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0fabd08ceacbc1368a1e6459a438a49884145320","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0f2dc4ec62d86316d01bf509788463c5c35f0160","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/54f3563103e3bb988a6d57d655568ad0aed9576b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5130c610180ad57c7a8ce35868b5b49f24de4a84","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/76d6f0e04e567db3ebe28e695bbdb3cc4e007d82","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/91264cb942b762b6b86fc2cb10c38bfdc31c36fb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/46f20f6e193f20892d2a5e2af7c4143d2a27562c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9728effe43d8fc4d58e12b697d0d6127355abdd5","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139591","url":"https://www.cve.org/CVERecord?id=CVE-2026-139591","licence":"CVE Terms of Use","modified":"2026-11-30T13:36:10.241Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139591","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139591","licence":"Public domain","modified":"2026-11-30T14:19:40.813Z"}],"updatedAt":"2026-11-30T14:33:17.238Z","epss":{"score":0.00176,"percentile":0.07488,"date":"2026-12-01T12:00:22.000Z"}}