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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2026-07-25T08:52:02.486Z
- **Modified:** 2026-11-12T19:07:33.740Z

## Who should check

- Anyone running Linux \>= 3253aba3408aa4eb2e4e09365eede3e63ef7536b, \< d1dcaa5229a63a6b6df7e0f673fe576cf3d6e8cb; \>= 3253aba3408aa4eb2e4e09365eede3e63ef7536b, \< e7636f26f77070a529c26d65afd217514ce85ce4; \>= 3253aba3408aa4eb2e4e09365eede3e63ef7536b, \< 6822a2685b4da9a87efd1fce4b042678a31ff734; \>= 3253aba3408aa4eb2e4e09365eede3e63ef7536b, \< 2957771379fa335103a4b539db57bb2271e12142
- Anyone running Linux 6.11

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

## Affected and fixed versions

- Linux: \>= 3253aba3408aa4eb2e4e09365eede3e63ef7536b, \< d1dcaa5229a63a6b6df7e0f673fe576cf3d6e8cb; \>= 3253aba3408aa4eb2e4e09365eede3e63ef7536b, \< e7636f26f77070a529c26d65afd217514ce85ce4; \>= 3253aba3408aa4eb2e4e09365eede3e63ef7536b, \< 6822a2685b4da9a87efd1fce4b042678a31ff734; \>= 3253aba3408aa4eb2e4e09365eede3e63ef7536b, \< 2957771379fa335103a4b539db57bb2271e12142 (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- Upgrade Linux to 2957771379fa335103a4b539db57bb2271e12142 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64509. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64509.md
Affected: Linux >= 3253aba3408aa4eb2e4e09365eede3e63ef7536b, < d1dcaa5229a63a6b6df7e0f673fe576cf3d6e8cb; >= 3253aba3408aa4eb2e4e09365eede3e63ef7536b, < e7636f26f77070a529c26d65afd217514ce85ce4; >= 3253aba3408aa4eb2e4e09365eede3e63ef7536b, < 6822a2685b4da9a87efd1fce4b042678a31ff734; >= 3253aba3408aa4eb2e4e093…
Fixed in: Linux 6822a2685b4da9a87efd1fce4b042678a31ff734, Linux 2957771379fa335103a4b539db57bb2271e12142

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64509 being exploited?

There is no confirmed exploitation: CVE-2026-64509 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64509?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-64509?

Linux \>= 3253aba3408aa4eb2e4e09365eede3e63ef7536b, \< d1dcaa5229a63a6b6df7e0f673fe576cf3d6e8cb; \>= 3253aba3408aa4eb2e4e09365eede3e63ef7536b, \< e7636f26f77070a529c26d65afd217514ce85ce4; \>= 3253aba3408aa4eb2e4e09365eede3e63ef7536b, \< 6822a2685b4da9a87efd1fce4b042678a31ff734; \>= 3253aba3408aa4eb2e4e09365eede3e63ef7536b, \< 2957771379fa335103a4b539db57bb2271e12142; Linux 6.11.

### Is there a fix for CVE-2026-64509?

Yes. Fixed in Linux 6822a2685b4da9a87efd1fce4b042678a31ff734, Linux 2957771379fa335103a4b539db57bb2271e12142. Upgrade Linux to 2957771379fa335103a4b539db57bb2271e12142 or later.

### How do I check if I'm affected by CVE-2026-64509?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64509>

HTML: <https://flawdb.com/CVE-2026-64509> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64509>
