{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8"
            },
            {
              "fixed": "13db96be1ee73c99acb0e40a6adeb6c89adb6320"
            },
            {
              "fixed": "f9c667d654657c75d5f3a322877d411772bd284c"
            },
            {
              "fixed": "59e32463d83c1ed9a6940af1a6ea62b4a62adbd3"
            },
            {
              "fixed": "f32bcc15dd0dd8478e4b43bd2919f288aab84c61"
            },
            {
              "fixed": "88ba765d2f4614e8efaf37be086c23f84a05dae4"
            },
            {
              "fixed": "686bdcc0aaee08f519c8ae9625a0637b5804b4b7"
            },
            {
              "fixed": "7b138cd144ef18f8cd9ff99cc00f11c465cc3d56"
            },
            {
              "fixed": "0f3b12bab74e13a2b8686a49c5b83099da61e032"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.25"
            },
            {
              "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-139557.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: enclosure: fix UAF on device_register() failure\n\nAfter device_register() fails, the embedded struct device has already been\ninitialized and must be released with put_device() so that\nenclosure_release() can drop the parent reference and free edev.\n\nThe error path currently does put_device(parent) + kfree(edev), which\nskips the device lifetime rules and can free the object while the device\ncore still owns a reference (use-after-free).",
  "id": "CVE-2026-139557",
  "modified": "2026-11-30T14:45:38.347129794Z",
  "published": "2026-11-30T13:35:51.738Z",
  "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/0f3b12bab74e13a2b8686a49c5b83099da61e032"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/13db96be1ee73c99acb0e40a6adeb6c89adb6320"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/59e32463d83c1ed9a6940af1a6ea62b4a62adbd3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/686bdcc0aaee08f519c8ae9625a0637b5804b4b7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7b138cd144ef18f8cd9ff99cc00f11c465cc3d56"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/88ba765d2f4614e8efaf37be086c23f84a05dae4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f32bcc15dd0dd8478e4b43bd2919f288aab84c61"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f9c667d654657c75d5f3a322877d411772bd284c"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139557.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139557"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "misc: enclosure: fix UAF on device_register() failure"
}