CVE-2026-64509

Source
https://cve.org/CVERecord?id=CVE-2026-64509
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64509.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64509
Downstream
Published
2026-07-25T08:52:02.486Z
Modified
2026-07-27T04:03:22.448920900Z
Summary
rust: block: fix GenDisk cleanup paths
Details

In the Linux kernel, the following vulnerability has been resolved:

rust: block: fix GenDisk cleanup paths

GenDiskBuilder::build() still has fallible work after __blkmqallocdisk(), but its error path only recovers the foreign queue data. That leaks the temporary gendisk and requestqueue until later teardown. If the caller moved the last Arc into build(), the leaked queue can retain blk-mq state after the tag set is dropped.

Fix the pre-registration failure path by dropping the temporary gendisk reference with putdisk() before recovering queuedata, so disk_release() can tear down the owned queue.

Also pair GenDisk::drop() with putdisk() after delgendisk(). Once a Rust GenDisk has been added with deviceadddisk(), del_gendisk() only unregisters it; the final gendisk reference still has to be dropped to complete the release path.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64509.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
3253aba3408aa4eb2e4e09365eede3e63ef7536b
Fixed
d1dcaa5229a63a6b6df7e0f673fe576cf3d6e8cb
Fixed
e7636f26f77070a529c26d65afd217514ce85ce4
Fixed
6822a2685b4da9a87efd1fce4b042678a31ff734
Fixed
2957771379fa335103a4b539db57bb2271e12142

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.11.0
Fixed
6.12.97
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.4

Database specific

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