{"id":"CVE-2025-40101","aliases":["CVE-2025-40101"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: fix memory leaks when rejecting a non SINGLE data profile without an RST","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix memory leaks when rejecting a non SINGLE data profile without an RST\n\nAt the end of btrfs_load_block_group_zone_info() the first thing we do\nis to ensure that if the mapping type is not a SINGLE one and there is\nno RAID stripe tree, then we return early with an error.\n\nDoing that, though, prevents the code from running the last calls from\nthis function which are about freeing memory allocated during its\nrun. Hence, in this case, instead of returning early, we set the ret\nvalue and fall through the rest of the cleanup code.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix memory leaks when rejecting a non SINGLE data profile without an RST\n\nAt the end of btrfs_load_block_group_zone_info() the first thing we do\nis to ensure that if the mapping type is not a SINGLE one and there is\nno RAID stripe tree, then we return early with an error.\n\nDoing that, though, prevents the code from running the last calls from\nthis function which are about freeing memory allocated during its\nrun. Hence, in this case, instead of returning early, we set the ret\nvalue and fall through the rest of the cleanup code.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nbtrfs: corregir fugas de memoria al rechazar un perfil de datos que no es SINGLE sin un RST\n\nAl final de btrfs_load_block_group_zone_info(), lo primero que hacemos es asegurar que si el tipo de mapeo no es SINGLE y no hay un árbol de franjas RAID, entonces retornamos anticipadamente con un error.\n\nHacer eso, sin embargo, impide que el código ejecute las últimas llamadas de esta función, que tratan sobre liberar memoria asignada durante su ejecución. Por lo tanto, en este caso, en lugar de retornar anticipadamente, establecemos el valor ret y continuamos con el resto del código de limpieza.","source":"nvd"}],"published":"2025-10-30T09:48:07.155Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5906333cc4af7b3fdb8cfff1cb3e8e579bd13174","fixed":"187333e6d484c6630286bfdd07c79d6815a63887","status":"affected"},{"type":"git","introduced":"5906333cc4af7b3fdb8cfff1cb3e8e579bd13174","fixed":"602701d00439e113331ee9c1283e95afdcb8849d","status":"affected"},{"type":"git","introduced":"5906333cc4af7b3fdb8cfff1cb3e8e579bd13174","fixed":"fec9b9d3ced39f16be8d7afdf81f4dd2653da319","status":"affected"},{"type":"git","version":"6ffeca99bf6e84800133d21afd41c79d2f002db7","status":"affected"},{"type":"semver","introduced":"6.7.11","fixed":"6.8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.8","status":"unaffected"},{"type":"semver","introduced":"6.12.55","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.5","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/187333e6d484c6630286bfdd07c79d6815a63887","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/602701d00439e113331ee9c1283e95afdcb8849d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fec9b9d3ced39f16be8d7afdf81f4dd2653da319","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40101","url":"https://www.cve.org/CVERecord?id=CVE-2025-40101","licence":"CVE Terms of Use","modified":"2026-05-23T16:01:25.530Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40101","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40101","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:07.037Z","epss":{"score":0.00197,"percentile":0.0988,"date":"2026-12-01T12:00:22.000Z"}}