Local kernel memory corruption via freed extent map
Published Aug 17, 2024 · Updated Aug 5, 2026
Use-after-free in the Linux btrfs compressed-read path allows local users to corrupt kernel memory via compressed file reads. In add_ra_bio_pages(), the code releases its extent-map reference before reading that object to calculate add_size. Reachability requires access to a compressed file on a btrfs mount; winning the concurrent-free race can disclose or alter kernel memory or crash the system.
Summary
What happened
Use-after-free in the Linux btrfs compressed-read path allows local users to corrupt kernel memory via compressed file reads. In add_ra_bio_pages(), the code releases its extent-map reference before reading that object to calculate add_size. Reachability requires access to a compressed file on a btrfs mount; winning the concurrent-free race can disclose or alter kernel memory or crash the system.
The record
- CVE
- CVE-2024-42314
- Published
- Aug 17, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Aug 17, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.16
- Affected versionversion=6a4049102055250256623ab1875fabd89004bff8 <8e7860543a94784d744c7ce34b78a2e11beefa5c
- Affected versionversion=6a4049102055250256623ab1875fabd89004bff8 <b7859ff398b6b656e1689daa860eb34837b4bb89
- Affected versionversion=6a4049102055250256623ab1875fabd89004bff8 <c1cc3326e27b0bd7a2806b40bc48e49afaf951e7
- Affected versionversion=6a4049102055250256623ab1875fabd89004bff8 <c205565e0f2f439f278a4a94ee97b67ef7b56ae8
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo