{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "c6e3f13398123a008cd2ee28f93510b113a32791"
            },
            {
              "fixed": "b22d6aa4c956240d6c9a27b743df8548ecd6c3dd"
            },
            {
              "fixed": "2e8c8c6ff43ca4cf52c82470e72bd73ddd660b87"
            },
            {
              "fixed": "bb5dd42918c62988c734b0017e41c11043c2946c"
            },
            {
              "fixed": "c07e6802f75e112e82cfacbe01a15fb047ef7284"
            },
            {
              "fixed": "d998fa25c4f8d81541f1ae52d39dde9dd343df9b"
            },
            {
              "fixed": "caaf795ed9946074a8f9154e67053f4cc9cde7e0"
            },
            {
              "fixed": "5f981beb9a8d050a7cabd7184cf4c96643eff9a7"
            },
            {
              "fixed": "2f61b9d1d54edf75a352c43eebe3804144b5d44e"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.8.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-139159.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: prevent double-free after metadata SGL allocation failure\n\nIf metadata SGL allocation fails, nvmet_req_alloc_sgls() frees\nreq-\u003esg without clearing it. The RDMA error completion path later\nfrees the same scatterlist again.\n\nUse nvmet_req_free_sgls() instead so that the scatterlist pointers\nand counts are cleared before response cleanup.",
  "id": "CVE-2026-139159",
  "modified": "2026-12-01T06:45:22.005267859Z",
  "published": "2026-11-30T13:32:07.724Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2e8c8c6ff43ca4cf52c82470e72bd73ddd660b87"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2f61b9d1d54edf75a352c43eebe3804144b5d44e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5f981beb9a8d050a7cabd7184cf4c96643eff9a7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b22d6aa4c956240d6c9a27b743df8548ecd6c3dd"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bb5dd42918c62988c734b0017e41c11043c2946c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c07e6802f75e112e82cfacbe01a15fb047ef7284"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/caaf795ed9946074a8f9154e67053f4cc9cde7e0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d998fa25c4f8d81541f1ae52d39dde9dd343df9b"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139159.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139159"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "nvmet: prevent double-free after metadata SGL allocation failure"
}