{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "a8698707a1835be3abd12a3b28079a80999f8dee"
            },
            {
              "fixed": "179c1c3c2adccf55743e00dc5bb073f9ed260ec7"
            },
            {
              "fixed": "5c3dcf8103ed7c87c046e1be47892f7256238ca0"
            },
            {
              "fixed": "8f5c60c3a04e06c0512a4816d690c249f78237fe"
            },
            {
              "fixed": "c98a383aaa585e7535e4f2486474a907cf3958cd"
            },
            {
              "fixed": "28ec6d30c573893a478829e0e7c4222c3d0642cd"
            },
            {
              "fixed": "86a3554597ca63d77dd75713c409c815e2ef0eb2"
            },
            {
              "fixed": "cebb1c2331c2af1b7f1c822ac672a7f77b54bd90"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.14.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-139128.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nblock: fix use-after-free of the disk in sync_bdevs()\n\nsync_bdevs() holds a reference to the bdev inode while it takes\nbd_disk-\u003eopen_mutex. For a partition the inode doesn't keep the gendisk\nalive, the device reference does: part_release() drops the disk as soon\nas the last reference to the partition device is gone. A sync(2) racing\nwith the last close of a partition of an already deleted disk locks a\nfreed open_mutex.\n\nTake a device reference before touching the disk, like\nblkdev_get_no_open() does, and skip the bdev if it's on its way out.",
  "id": "CVE-2026-139128",
  "modified": "2026-12-01T20:45:23.623995387Z",
  "published": "2026-11-30T13:31:50.417Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/179c1c3c2adccf55743e00dc5bb073f9ed260ec7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/28ec6d30c573893a478829e0e7c4222c3d0642cd"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5c3dcf8103ed7c87c046e1be47892f7256238ca0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/86a3554597ca63d77dd75713c409c815e2ef0eb2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8f5c60c3a04e06c0512a4816d690c249f78237fe"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c98a383aaa585e7535e4f2486474a907cf3958cd"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cebb1c2331c2af1b7f1c822ac672a7f77b54bd90"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139128.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139128"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "block: fix use-after-free of the disk in sync_bdevs()"
}