CVE-2025-40101
Full vulnerability record from the local CVENow database.
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix memory leaks when rejecting a non SINGLE data profile without an RST At the end of btrfs_load_block_group_zone_info() the first thing we do is to ensure that if the mapping type is not a SINGLE one and there is no RAID stripe tree, then we return early with an error. Doing that, though, prevents the code from running the last calls from this function which are about freeing memory allocated during its run. Hence, in this case, instead of returning early, we set the ret value and fall through the rest of the cleanup code.
Severity
Not scored
CVSS score
Not available
Vulnerability status
Deferred
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2025-10-30 10:15:34.517000
Last modified
2026-10-19 21:10:00.160000
View original CVE JSON
{
"id": "CVE-2025-40101",
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"published": "2025-10-30T10:15:34.517",
"lastModified": "2026-10-19T21:10:00.160",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "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."
}
],
"affected": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"affectedData": [
{
"vendor": "Linux",
"product": "Linux",
"defaultStatus": "unaffected",
"programFiles": [
"fs/btrfs/zoned.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"versions": [
{
"version": "5906333cc4af7b3fdb8cfff1cb3e8e579bd13174",
"lessThan": "187333e6d484c6630286bfdd07c79d6815a63887",
"versionType": "git",
"status": "affected"
},
{
"version": "5906333cc4af7b3fdb8cfff1cb3e8e579bd13174",
"lessThan": "602701d00439e113331ee9c1283e95afdcb8849d",
"versionType": "git",
"status": "affected"
},
{
"version": "5906333cc4af7b3fdb8cfff1cb3e8e579bd13174",
"lessThan": "fec9b9d3ced39f16be8d7afdf81f4dd2653da319",
"versionType": "git",
"status": "affected"
},
{
"version": "6ffeca99bf6e84800133d21afd41c79d2f002db7",
"versionType": "git",
"status": "affected"
},
{
"version": "6.7.11",
"lessThan": "6.8",
"versionType": "semver",
"status": "affected"
}
]
},
{
"vendor": "Linux",
"product": "Linux",
"defaultStatus": "affected",
"programFiles": [
"fs/btrfs/zoned.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"versions": [
{
"version": "6.8",
"status": "affected"
},
{
"version": "0",
"lessThan": "6.8",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.12.55",
"lessThanOrEqual": "6.12.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.17.5",
"lessThanOrEqual": "6.17.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.18",
"lessThanOrEqual": "*",
"versionType": "original_commit_for_fix",
"status": "unaffected"
}
]
}
]
}
],
"metrics": {},
"references": [
{
"url": "https://git.kernel.org/stable/c/187333e6d484c6630286bfdd07c79d6815a63887",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/602701d00439e113331ee9c1283e95afdcb8849d",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/fec9b9d3ced39f16be8d7afdf81f4dd2653da319",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
]
}