{"id":"CVE-2026-139128","aliases":["CVE-2026-139128"],"related":[],"kind":"vulnerability","state":"published","title":"block: fix use-after-free of the disk in sync_bdevs()","summary":"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->open_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->open_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.","source":"cvelist"}],"published":"2026-11-30T13:31:50.417Z","modified":"2026-11-30T14:18:26.560Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a8698707a1835be3abd12a3b28079a80999f8dee","fixed":"179c1c3c2adccf55743e00dc5bb073f9ed260ec7","status":"affected"},{"type":"git","introduced":"a8698707a1835be3abd12a3b28079a80999f8dee","fixed":"5c3dcf8103ed7c87c046e1be47892f7256238ca0","status":"affected"},{"type":"git","introduced":"a8698707a1835be3abd12a3b28079a80999f8dee","fixed":"8f5c60c3a04e06c0512a4816d690c249f78237fe","status":"affected"},{"type":"git","introduced":"a8698707a1835be3abd12a3b28079a80999f8dee","fixed":"c98a383aaa585e7535e4f2486474a907cf3958cd","status":"affected"},{"type":"git","introduced":"a8698707a1835be3abd12a3b28079a80999f8dee","fixed":"28ec6d30c573893a478829e0e7c4222c3d0642cd","status":"affected"},{"type":"git","introduced":"a8698707a1835be3abd12a3b28079a80999f8dee","fixed":"86a3554597ca63d77dd75713c409c815e2ef0eb2","status":"affected"},{"type":"git","introduced":"a8698707a1835be3abd12a3b28079a80999f8dee","fixed":"cebb1c2331c2af1b7f1c822ac672a7f77b54bd90","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/179c1c3c2adccf55743e00dc5bb073f9ed260ec7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c3dcf8103ed7c87c046e1be47892f7256238ca0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8f5c60c3a04e06c0512a4816d690c249f78237fe","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c98a383aaa585e7535e4f2486474a907cf3958cd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/28ec6d30c573893a478829e0e7c4222c3d0642cd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/86a3554597ca63d77dd75713c409c815e2ef0eb2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cebb1c2331c2af1b7f1c822ac672a7f77b54bd90","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139128","url":"https://www.cve.org/CVERecord?id=CVE-2026-139128","licence":"CVE Terms of Use","modified":"2026-11-30T13:31:50.417Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139128","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139128","licence":"Public domain","modified":"2026-11-30T14:18:26.560Z"}],"updatedAt":"2026-11-30T14:32:51.967Z","epss":{"score":0.00379,"percentile":0.33972,"date":"2026-12-01T12:00:22.000Z"}}