{"id":"CVE-2026-64509","state":"PUBLISHED","title":"rust: block: fix GenDisk cleanup paths","description":"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<TagSet<T>> 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.","publishedAt":"2026-07-25T08:52:02.486Z","updatedAt":"2026-08-17T04:56:59.904Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3253aba3408aa4eb2e4e09365eede3e63ef7536b","status":"affected","lessThan":"d1dcaa5229a63a6b6df7e0f673fe576cf3d6e8cb","versionType":"git"},{"version":"3253aba3408aa4eb2e4e09365eede3e63ef7536b","status":"affected","lessThan":"e7636f26f77070a529c26d65afd217514ce85ce4","versionType":"git"},{"version":"3253aba3408aa4eb2e4e09365eede3e63ef7536b","status":"affected","lessThan":"6822a2685b4da9a87efd1fce4b042678a31ff734","versionType":"git"},{"version":"3253aba3408aa4eb2e4e09365eede3e63ef7536b","status":"affected","lessThan":"2957771379fa335103a4b539db57bb2271e12142","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["rust/kernel/block/mq/gen_disk.rs"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.39","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.4","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["rust/kernel/block/mq/gen_disk.rs"]}],"references":["https://git.kernel.org/stable/c/d1dcaa5229a63a6b6df7e0f673fe576cf3d6e8cb","https://git.kernel.org/stable/c/e7636f26f77070a529c26d65afd217514ce85ce4","https://git.kernel.org/stable/c/6822a2685b4da9a87efd1fce4b042678a31ff734","https://git.kernel.org/stable/c/2957771379fa335103a4b539db57bb2271e12142"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:41.951Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/64xxx/CVE-2026-64509.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-64509","state":"PUBLISHED","datePublished":"2026-07-25T08:52:02.486Z","dateUpdated":"2026-08-17T04:56:59.904Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-19T15:36:31.793Z"},"containers":{"cna":{"title":"rust: block: fix GenDisk cleanup paths","descriptions":[{"lang":"en","value":"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<TagSet<T>> 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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3253aba3408aa4eb2e4e09365eede3e63ef7536b","status":"affected","lessThan":"d1dcaa5229a63a6b6df7e0f673fe576cf3d6e8cb","versionType":"git"},{"version":"3253aba3408aa4eb2e4e09365eede3e63ef7536b","status":"affected","lessThan":"e7636f26f77070a529c26d65afd217514ce85ce4","versionType":"git"},{"version":"3253aba3408aa4eb2e4e09365eede3e63ef7536b","status":"affected","lessThan":"6822a2685b4da9a87efd1fce4b042678a31ff734","versionType":"git"},{"version":"3253aba3408aa4eb2e4e09365eede3e63ef7536b","status":"affected","lessThan":"2957771379fa335103a4b539db57bb2271e12142","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["rust/kernel/block/mq/gen_disk.rs"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.39","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.4","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["rust/kernel/block/mq/gen_disk.rs"]}],"references":[{"url":"https://git.kernel.org/stable/c/d1dcaa5229a63a6b6df7e0f673fe576cf3d6e8cb"},{"url":"https://git.kernel.org/stable/c/e7636f26f77070a529c26d65afd217514ce85ce4"},{"url":"https://git.kernel.org/stable/c/6822a2685b4da9a87efd1fce4b042678a31ff734"},{"url":"https://git.kernel.org/stable/c/2957771379fa335103a4b539db57bb2271e12142"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T04:56:59.904Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.97"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18.39"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.1.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}