CVE-2024-42314: btrfs: fix extent map use-after-free when adding pages to compressed bio
Vulnerability summary
CVE-2024-42314 is a high (CVSS 7.8) Use After Free vulnerability in debian debian_linux. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 13.4% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 14 · Related 10Timeline
- 17-08-2024PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.23%
Chance of exploitation in the next 30 days
Percentile
13%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.23% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu93 products
- linux< 6.8.0-50.51
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 6.8.0-1020.22
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian2 products
- linux< 6.1.112-1 | < 6.10.3-1
- debian_linuxEOL11.0
Linux2 products
- linux≥ 6a4049102055250256623ab1875fabd89004bff8, < c1cc3326e27b0bd7a2806b40bc48e49afaf951e7 | ≥ 6a4049102055250256623ab1875fabd89004bff8, < c205565e0f2f439f278a4a94ee97b67ef7b56ae8 | ≥ 6a4049102055250256623ab1875fabd89004bff8, < b7859ff398b6b656e1689daa860eb34837b4bb89 | ≥ 6a4049102055250256623ab1875fabd89004bff8, < 8e7860543a94784d744c7ce34b78a2e11beefa5c | 5.16
- linux_kernel≥ 5.16, < 6.1.108 | ≥ 6.2, < 6.6.44 | ≥ 6.7, < 6.10.3
3 vendors · 97 products