CVE-2026-139128
Not scored
block: fix use-after-free of the disk in sync_bdevs()
- Severity
- Not scored
- Exploit likelihood
- 0.38% (higher than 33% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: block: fix use-after-free of the disk in sync_bdevs() sync_bdevs() holds a reference to the bdev inode while it takes bd_disk->open_mutex. For a partition the inode doesn't keep the gendisk alive, the device reference does: part_release() drops the disk as soon as the last reference to the partition device is gone. A sync(2) racing with the last close of a partition of an already deleted disk locks a freed open_mutex. Take a device reference before touching the disk, like blkdev_get_no_open() does, and skip the bdev if it's on its way out.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from a8698707a1835be3abd12a3b28079a80999f8dee before 179c1c3c2adccf55743e00dc5bb073f9ed260ec7, from a8698707a1835be3abd12a3b28079a80999f8dee before 5c3dcf8103ed7c87c046e1be47892f7256238ca0, from a8698707a1835be3abd12a3b28079a80999f8dee before 8f5c60c3a04e06c0512a4816d690c249f78237fe, from a8698707a1835be3abd12a3b28079a80999f8dee before c98a383aaa585e7535e4f2486474a907cf3958cd, from a8698707a1835be3abd12a3b28079a80999f8dee before 28ec6d30c573893a478829e0e7c4222c3d0642cd, from a8698707a1835be3abd12a3b28079a80999f8dee before 86a3554597ca63d77dd75713c409c815e2ef0eb2, from a8698707a1835be3abd12a3b28079a80999f8dee before cebb1c2331c2af1b7f1c822ac672a7f77b54bd90, 5.14 Not affected: before 5.14, from 5.15.226 up to 5.15.*, from 6.1.193 up to 6.1.*, from 6.6.163 up to 6.6.*, from 6.12.119 up to 6.12.*, from 6.18.65 up to 6.18.* | CVE List |
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-139128 changed 2026-11-30 | CVE Terms of Use |
| NVD | CVE-2026-139128 changed 2026-11-30 | Public domain |