# CVE-2026-64509: rust: block: fix GenDisk cleanup paths

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-07-25T08:52:02.486Z
- Modified: 2026-11-12T19:07:33.740Z
- Weaknesses: CWE-401
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 3253aba3408aa4eb2e4e09365eede3e63ef7536b before d1dcaa5229a63a6b6df7e0f673fe576cf3d6e8cb; from 3253aba3408aa4eb2e4e09365eede3e63ef7536b before e7636f26f77070a529c26d65afd217514ce85ce4; from 3253aba3408aa4eb2e4e09365eede3e63ef7536b before 6822a2685b4da9a87efd1fce4b042678a31ff734; from 3253aba3408aa4eb2e4e09365eede3e63ef7536b before 2957771379fa335103a4b539db57bb2271e12142; 6.11 (not affected: before 6.11; from 6.12.97 up to 6.12.*; from 6.18.39 up to 6.18.*; from 7.1.4 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 6.11 before 6.12.97; from 6.13 before 6.18.39; from 6.19 before 7.1.4

## References

- <https://git.kernel.org/stable/c/d1dcaa5229a63a6b6df7e0f673fe576cf3d6e8cb> (patch)
- <https://git.kernel.org/stable/c/e7636f26f77070a529c26d65afd217514ce85ce4> (patch)
- <https://git.kernel.org/stable/c/6822a2685b4da9a87efd1fce4b042678a31ff734> (patch)
- <https://git.kernel.org/stable/c/2957771379fa335103a4b539db57bb2271e12142> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2026-64509 · Whole record: https://cve.day/CVE-2026-64509.json · Rebuilt by cve.day 2026-11-25T22:59:30.152Z
