# CVE-2026-139128: block: fix use-after-free of the disk in sync_bdevs()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-11-30T13:31:50.417Z
- Modified: 2026-11-30T14:18:26.560Z
- 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.

(As written by CVE List.)

## Affected

- 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.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/179c1c3c2adccf55743e00dc5bb073f9ed260ec7>
- <https://git.kernel.org/stable/c/5c3dcf8103ed7c87c046e1be47892f7256238ca0>
- <https://git.kernel.org/stable/c/8f5c60c3a04e06c0512a4816d690c249f78237fe>
- <https://git.kernel.org/stable/c/c98a383aaa585e7535e4f2486474a907cf3958cd>
- <https://git.kernel.org/stable/c/28ec6d30c573893a478829e0e7c4222c3d0642cd>
- <https://git.kernel.org/stable/c/86a3554597ca63d77dd75713c409c815e2ef0eb2>
- <https://git.kernel.org/stable/c/cebb1c2331c2af1b7f1c822ac672a7f77b54bd90>

## Sources

- CVE List: [CVE-2026-139128](https://www.cve.org/CVERecord?id=CVE-2026-139128), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139128](https://nvd.nist.gov/vuln/detail/CVE-2026-139128), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139128 · Whole record: https://cve.day/CVE-2026-139128.json · Rebuilt by cve.day 2026-11-30T14:32:51.967Z
