{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0de38d9f1dba2336f84799824af08263fc407dd1"
            },
            {
              "fixed": "4e9ec23592e793458e8cb34ccb90f9ad23b29425"
            },
            {
              "fixed": "bdeced2c6513fcc8aaab0f9e1ebe4d4c5fb297e1"
            },
            {
              "fixed": "a886f04e84e0f96f362f14d8a6cf4cd882e00479"
            },
            {
              "fixed": "9150b7787824c9e1d3435fc9be7ed5ca6a270e2f"
            },
            {
              "fixed": "4e15e0a941ce901d51b5f203713fa90feee9c4d3"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.6.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-139221.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nionic: free port_info when probe fails after the port is set up\n\nionic_probe() allocates the port_info DMA buffer via ionic_setup_one()\n-\u003e ionic_port_init(). If probe then fails anywhere after that, it\nunwinds through err_out_pci, which never calls ionic_port_reset();\nionic_dev_teardown() and ionic_clear_pci() do not touch port_info, and\nso the buffer is leaked. The call was lost when the setup code was\nmoved into ionic_setup_one().\n\nSince ionic_remove() already frees the port_info DMA buffer with\nionic_port_reset(), call that on the probe error path too. Every path\nto err_out_pci runs after ionic_setup_one() succeeded, so the BARs are\nstill mapped and the firmware gets a PORT_RESET before the buffer is\nfreed, the same order as in ionic_remove().",
  "id": "CVE-2026-139221",
  "modified": "2026-12-01T20:45:59.286235893Z",
  "published": "2026-11-30T13:32:43.374Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4e15e0a941ce901d51b5f203713fa90feee9c4d3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4e9ec23592e793458e8cb34ccb90f9ad23b29425"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9150b7787824c9e1d3435fc9be7ed5ca6a270e2f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a886f04e84e0f96f362f14d8a6cf4cd882e00479"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bdeced2c6513fcc8aaab0f9e1ebe4d4c5fb297e1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139221.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139221"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ionic: free port_info when probe fails after the port is set up"
}