{"id":"CVE-2024-42314","aliases":["CVE-2024-42314"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: fix extent map use-after-free when adding pages to compressed bio","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix extent map use-after-free when adding pages to compressed bio\n\nAt add_ra_bio_pages() we are accessing the extent map to calculate\n'add_size' after we dropped our reference on the extent map, resulting\nin a use-after-free. Fix this by computing 'add_size' before dropping our\nextent map reference.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix extent map use-after-free when adding pages to compressed bio\n\nAt add_ra_bio_pages() we are accessing the extent map to calculate\n'add_size' after we dropped our reference on the extent map, resulting\nin a use-after-free. Fix this by computing 'add_size' before dropping our\nextent map reference.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: btrfs: corrige el use after free el mapa de extensión al agregar páginas a una biografía comprimida En add_ra_bio_pages() estamos accediendo al mapa de extensión para calcular 'add_size' después de que eliminamos nuestra referencia en el mapa de extensión, lo que resulta en un use-after-free. Solucione este problema calculando 'add_size' antes de eliminar nuestra referencia del mapa de extensión.","source":"nvd"}],"published":"2024-08-17T09:09:23.047Z","modified":"2026-08-05T11:36:36.342Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"6a4049102055250256623ab1875fabd89004bff8","fixed":"c1cc3326e27b0bd7a2806b40bc48e49afaf951e7","status":"affected"},{"type":"git","introduced":"6a4049102055250256623ab1875fabd89004bff8","fixed":"c205565e0f2f439f278a4a94ee97b67ef7b56ae8","status":"affected"},{"type":"git","introduced":"6a4049102055250256623ab1875fabd89004bff8","fixed":"b7859ff398b6b656e1689daa860eb34837b4bb89","status":"affected"},{"type":"git","introduced":"6a4049102055250256623ab1875fabd89004bff8","fixed":"8e7860543a94784d744c7ce34b78a2e11beefa5c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.16","status":"unaffected"},{"type":"semver","introduced":"6.1.108","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.44","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.3","lastAffected":"6.10.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.11","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","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"5.16","fixed":"6.1.108"},{"status":"affected","introduced":"6.2","fixed":"6.6.44"},{"status":"affected","introduced":"6.7","fixed":"6.10.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c1cc3326e27b0bd7a2806b40bc48e49afaf951e7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c205565e0f2f439f278a4a94ee97b67ef7b56ae8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b7859ff398b6b656e1689daa860eb34837b4bb89","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8e7860543a94784d744c7ce34b78a2e11beefa5c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:09:49.130Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42314","url":"https://www.cve.org/CVERecord?id=CVE-2024-42314","licence":"CVE Terms of Use","modified":"2026-08-05T11:36:36.342Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42314","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42314","licence":"Public domain","modified":"2026-08-04T11:19:51.843Z"}],"updatedAt":"2026-11-25T22:58:44.481Z","epss":{"score":0.00227,"percentile":0.14273,"date":"2026-12-01T12:00:22.000Z"}}