{"id":"CVE-2026-64509","summary":"rust: block: fix GenDisk cleanup paths","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nrust: block: fix GenDisk cleanup paths\n\nGenDiskBuilder::build() still has fallible work after\n__blk_mq_alloc_disk(), but its error path only recovers the\nforeign queue data. That leaks the temporary gendisk and\nrequest_queue until later teardown. If the caller moved the last\nArc\u003cTagSet\u003cT\u003e\u003e into build(), the leaked queue can retain blk-mq\nstate after the tag set is dropped.\n\nFix the pre-registration failure path by dropping the temporary\ngendisk reference with put_disk() before recovering queue_data,\nso disk_release() can tear down the owned queue.\n\nAlso pair GenDisk::drop() with put_disk() after del_gendisk().\nOnce a Rust GenDisk has been added with device_add_disk(),\ndel_gendisk() only unregisters it; the final gendisk reference\nstill has to be dropped to complete the release path.","modified":"2026-07-27T04:03:22.448920900Z","published":"2026-07-25T08:52:02.486Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64509.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2957771379fa335103a4b539db57bb2271e12142"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6822a2685b4da9a87efd1fce4b042678a31ff734"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d1dcaa5229a63a6b6df7e0f673fe576cf3d6e8cb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e7636f26f77070a529c26d65afd217514ce85ce4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64509.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64509"},{"type":"PACKAGE","url":"https://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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.7.5"}