{"id":"CVE-2025-39999","aliases":["CVE-2025-39999"],"related":[],"kind":"vulnerability","state":"published","title":"blk-mq: fix blk_mq_tags double free while nr_requests grown","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: fix blk_mq_tags double free while nr_requests grown\n\nIn the case user trigger tags grow by queue sysfs attribute nr_requests,\nhctx->sched_tags will be freed directly and replaced with a new\nallocated tags, see blk_mq_tag_update_depth().\n\nThe problem is that hctx->sched_tags is from elevator->et->tags, while\net->tags is still the freed tags, hence later elevator exit will try to\nfree the tags again, causing kernel panic.\n\nFix this problem by replacing et->tags with new allocated tags as well.\n\nNoted there are still some long term problems that will require some\nrefactor to be fixed thoroughly[1].\n\n[1] https://lore.kernel.org/all/20250815080216.410665-1-yukuai1@huaweicloud.com/","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: fix blk_mq_tags double free while nr_requests grown\n\nIn the case user trigger tags grow by queue sysfs attribute nr_requests,\nhctx->sched_tags will be freed directly and replaced with a new\nallocated tags, see blk_mq_tag_update_depth().\n\nThe problem is that hctx->sched_tags is from elevator->et->tags, while\net->tags is still the freed tags, hence later elevator exit will try to\nfree the tags again, causing kernel panic.\n\nFix this problem by replacing et->tags with new allocated tags as well.\n\nNoted there are still some long term problems that will require some\nrefactor to be fixed thoroughly[1].\n\n[1] https://lore.kernel.org/all/20250815080216.410665-1-yukuai1@huaweicloud.com/","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nblk-mq: corrección de la doble liberación de blk_mq_tags mientras nr_requests crecía\n\nEn el caso de que el usuario active el crecimiento de las etiquetas mediante el atributo sysfs de la cola nr_requests, hctx->sched_tags se liberará directamente y se reemplazará con nuevas etiquetas asignadas, véase blk_mq_tag_update_depth().\n\nEl problema es que hctx->sched_tags proviene de elevator->et->tags, mientras que et->tags sigue siendo las etiquetas liberadas, por lo tanto, una salida posterior del elevador intentará liberar las etiquetas de nuevo, causando un pánico del kernel.\n\nSoluciona este problema reemplazando et->tags también con nuevas etiquetas asignadas.\n\nSe ha observado que todavía existen algunos problemas a largo plazo que requerirán una refactorización para ser solucionados completamente[1].\n\n[1] https://lore.kernel.org/all/20250815080216.410665-1-yukuai1@huaweicloud.com/","source":"nvd"}],"published":"2025-10-15T07:58:23.038Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"58567d8e95c096ad234963df90a2ca518901f4b6","fixed":"8faee580d63bc2a54a59dcdb7f9ce4de29384fec","status":"affected"},{"type":"git","introduced":"f5a6604f7a4405450e4a1f54e5430f47290c500f","fixed":"392b1d64911f4de8887fe8b68299fa8bd6e5b923","status":"affected"},{"type":"git","introduced":"f5a6604f7a4405450e4a1f54e5430f47290c500f","fixed":"ba28afbd9eff2a6370f23ef4e6a036ab0cfda409","status":"affected"},{"type":"semver","introduced":"6.16.4","fixed":"6.16.11","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.16.11","lastAffected":"6.16.*","status":"unaffected"},{"type":"semver","introduced":"6.17.1","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8faee580d63bc2a54a59dcdb7f9ce4de29384fec","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/392b1d64911f4de8887fe8b68299fa8bd6e5b923","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba28afbd9eff2a6370f23ef4e6a036ab0cfda409","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39999","url":"https://www.cve.org/CVERecord?id=CVE-2025-39999","licence":"CVE Terms of Use","modified":"2026-05-23T16:01:13.466Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39999","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39999","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:06.412Z","epss":{"score":0.00197,"percentile":0.09843,"date":"2026-12-02T12:00:21.000Z"}}