CVE-2026-64509

rust: block: fix GenDisk cleanup paths

State
Published
Severity
Not scored
Published
Jul 25, 2026
Updated
Aug 17, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

Description

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

rust: block: fix GenDisk cleanup paths

GenDiskBuilder::build() still has fallible work after __blk_mq_alloc_disk(), but its error path only recovers the foreign queue data. That leaks the temporary gendisk and request_queue until later teardown. If the caller moved the last Arc<TagSet<T>> 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 put_disk() before recovering queue_data, so disk_release() can tear down the owned queue.

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 3253aba3408aa4eb2e4e09365eede3e63ef7536b to before d1dcaa5229a63a6b6df7e0f673fe576cf3d6e8cbAffected
  • 3253aba3408aa4eb2e4e09365eede3e63ef7536b to before e7636f26f77070a529c26d65afd217514ce85ce4Affected
  • 3253aba3408aa4eb2e4e09365eede3e63ef7536b to before 6822a2685b4da9a87efd1fce4b042678a31ff734Affected
  • 3253aba3408aa4eb2e4e09365eede3e63ef7536b to before 2957771379fa335103a4b539db57bb2271e12142Affected
LinuxLinux
  • 6.11Affected
  • before 6.11Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.39 through 6.18.*Not affected
  • 7.1.4 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.