CVE-2026-139128

Source
https://cve.org/CVERecord?id=CVE-2026-139128
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139128.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139128
Downstream
Published
2026-11-30T13:31:50Z
Modified
2026-11-30T15:02:27Z
Summary
block: fix use-after-free of the disk in sync_bdevs()
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139128.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a8698707a1835be3abd12a3b28079a80999f8dee
Fixed
179c1c3c2adccf55743e00dc5bb073f9ed260ec7
Fixed
5c3dcf8103ed7c87c046e1be47892f7256238ca0
Fixed
8f5c60c3a04e06c0512a4816d690c249f78237fe
Fixed
c98a383aaa585e7535e4f2486474a907cf3958cd
Fixed
28ec6d30c573893a478829e0e7c4222c3d0642cd
Fixed
86a3554597ca63d77dd75713c409c815e2ef0eb2
Fixed
cebb1c2331c2af1b7f1c822ac672a7f77b54bd90

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139128.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139128.json"