{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "2563e2f30acb4c914fc475331e476fa920eb4245"
            },
            {
              "fixed": "0fabd08ceacbc1368a1e6459a438a49884145320"
            },
            {
              "fixed": "0f2dc4ec62d86316d01bf509788463c5c35f0160"
            },
            {
              "fixed": "54f3563103e3bb988a6d57d655568ad0aed9576b"
            },
            {
              "fixed": "5130c610180ad57c7a8ce35868b5b49f24de4a84"
            },
            {
              "fixed": "76d6f0e04e567db3ebe28e695bbdb3cc4e007d82"
            },
            {
              "fixed": "91264cb942b762b6b86fc2cb10c38bfdc31c36fb"
            },
            {
              "fixed": "46f20f6e193f20892d2a5e2af7c4143d2a27562c"
            },
            {
              "fixed": "9728effe43d8fc4d58e12b697d0d6127355abdd5"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "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"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139591.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/mlx5: Restore mr-\u003epi_mr after temporary stack-local assignment\n\nIn handle_reg_mr_integrity, when mr-\u003epi_mr is NULL (physical-address\noptimization path), the code points mr-\u003epi_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-\u003epi_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.",
  "id": "CVE-2026-139591",
  "modified": "2026-12-01T20:46:05.496726938Z",
  "published": "2026-11-30T13:36:10.241Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0f2dc4ec62d86316d01bf509788463c5c35f0160"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0fabd08ceacbc1368a1e6459a438a49884145320"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/46f20f6e193f20892d2a5e2af7c4143d2a27562c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5130c610180ad57c7a8ce35868b5b49f24de4a84"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/54f3563103e3bb988a6d57d655568ad0aed9576b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/76d6f0e04e567db3ebe28e695bbdb3cc4e007d82"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/91264cb942b762b6b86fc2cb10c38bfdc31c36fb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9728effe43d8fc4d58e12b697d0d6127355abdd5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139591.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139591"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "RDMA/mlx5: Restore mr-\u003epi_mr after temporary stack-local assignment"
}