7.8high
btrfs: fix extent map use-after-free when adding pages to compressed bio
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.23% (higher than 14% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix extent map use-after-free when adding pages to compressed bio At add_ra_bio_pages() we are accessing the extent map to calculate 'add_size' after we dropped our reference on the extent map, resulting in a use-after-free. Fix this by computing 'add_size' before dropping our extent map reference.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 6a4049102055250256623ab1875fabd89004bff8 before c1cc3326e27b0bd7a2806b40bc48e49afaf951e7, from 6a4049102055250256623ab1875fabd89004bff8 before c205565e0f2f439f278a4a94ee97b67ef7b56ae8, from 6a4049102055250256623ab1875fabd89004bff8 before b7859ff398b6b656e1689daa860eb34837b4bb89, from 6a4049102055250256623ab1875fabd89004bff8 before 8e7860543a94784d744c7ce34b78a2e11beefa5c, 5.16 Not affected: before 5.16, from 6.1.108 up to 6.1.*, from 6.6.44 up to 6.6.*, from 6.10.3 up to 6.10.*, from 6.11 up to * | CVE List |
| debian debian_linux | 11.0 | NVD |
| linux linux_kernel | from 5.16 before 6.1.108, from 6.2 before 6.6.44, from 6.7 before 6.10.3 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix extent map use-after-free when adding pages to compressed bio At add_ra_bio_pages() we are accessing the extent map to calculate 'add_size' after we dropped our reference on the extent map, resulting in a use-after-free. Fix this by computing 'add_size' before dropping our extent map reference.
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-42314 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-42314 changed 2026-08-04 | Public domain |