{"id":"CVE-2026-64509","aliases":["CVE-2026-64509"],"related":[],"kind":"vulnerability","state":"published","title":"rust: block: fix GenDisk cleanup paths","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-07-25T08:52:02.486Z","modified":"2026-11-12T19:07:33.740Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"3253aba3408aa4eb2e4e09365eede3e63ef7536b","fixed":"d1dcaa5229a63a6b6df7e0f673fe576cf3d6e8cb","status":"affected"},{"type":"git","introduced":"3253aba3408aa4eb2e4e09365eede3e63ef7536b","fixed":"e7636f26f77070a529c26d65afd217514ce85ce4","status":"affected"},{"type":"git","introduced":"3253aba3408aa4eb2e4e09365eede3e63ef7536b","fixed":"6822a2685b4da9a87efd1fce4b042678a31ff734","status":"affected"},{"type":"git","introduced":"3253aba3408aa4eb2e4e09365eede3e63ef7536b","fixed":"2957771379fa335103a4b539db57bb2271e12142","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.12.97","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.39","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.4","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.11","fixed":"6.12.97"},{"status":"affected","introduced":"6.13","fixed":"6.18.39"},{"status":"affected","introduced":"6.19","fixed":"7.1.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d1dcaa5229a63a6b6df7e0f673fe576cf3d6e8cb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e7636f26f77070a529c26d65afd217514ce85ce4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6822a2685b4da9a87efd1fce4b042678a31ff734","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2957771379fa335103a4b539db57bb2271e12142","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64509","url":"https://www.cve.org/CVERecord?id=CVE-2026-64509","licence":"CVE Terms of Use","modified":"2026-08-17T04:56:59.904Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64509","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64509","licence":"Public domain","modified":"2026-11-12T19:07:33.740Z"}],"updatedAt":"2026-11-25T22:59:30.152Z","epss":{"score":0.00114,"percentile":0.01634,"date":"2026-12-01T12:00:22.000Z"}}