{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "ddc5911b9bd228dd69de976a4545292420f45e73"
            },
            {
              "fixed": "3aecc8090f6af7e6445c19db9abaa50f66b609a0"
            },
            {
              "fixed": "d84b9db696f80aa3ce83159856cfec6842c7c410"
            },
            {
              "fixed": "321edbee9d7b64398bb11fccf46fa9cb0b637e41"
            },
            {
              "fixed": "248f5c923663039f5fdebabf818f80bf20ad4d42"
            },
            {
              "fixed": "44ff46df5d0f2c41ac44bb8e658ea71ea7a6cd04"
            },
            {
              "fixed": "4c1870b25621ce76ed2c45dfd820ada1df703881"
            },
            {
              "fixed": "fff691dbd53867aeb0b3da2da35592f1dbc6b306"
            },
            {
              "fixed": "d90d1a768b3b022c52beafb3a4701ee2ee3d2b5e"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.7.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-139222.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nionic: fix port_info use-after-free on firmware recovery\n\nionic_port_init() allocates port_info when the pointer is NULL, but its\nerror path frees it without checking whether this call allocated it.\nBefore commit ddc5911b9bd2 (\"ionic: call ionic_port_init after\nfw-upgrade\") the function returned early when the buffer already\nexisted, so the two were symmetric.\n\nSince then a failed PORT_INIT on either recovery path - fw_up or\nreset_done - frees a buffer an earlier init owns, while the netdev is\nregistered and the ethtool ops are reading it.\n\nFree only what this call allocated.",
  "id": "CVE-2026-139222",
  "modified": "2026-12-01T06:45:57.165801726Z",
  "published": "2026-11-30T13:32:44.193Z",
  "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/248f5c923663039f5fdebabf818f80bf20ad4d42"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/321edbee9d7b64398bb11fccf46fa9cb0b637e41"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3aecc8090f6af7e6445c19db9abaa50f66b609a0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/44ff46df5d0f2c41ac44bb8e658ea71ea7a6cd04"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4c1870b25621ce76ed2c45dfd820ada1df703881"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d84b9db696f80aa3ce83159856cfec6842c7c410"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d90d1a768b3b022c52beafb3a4701ee2ee3d2b5e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fff691dbd53867aeb0b3da2da35592f1dbc6b306"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139222.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139222"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "ionic: fix port_info use-after-free on firmware recovery"
}