CVE-2024-42314

published 17 Aug 2024 · updated 5 Aug 2026

btrfs: fix extent map use-after-free when adding pages to compressed bio

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 8e7860543a94784d744c7ce34b78a2e11beefa5c, Kernel b7859ff398b6b656e1689daa860eb34837b4bb89, Kernel c1cc3326e27b0bd7a2806b40bc48e49afaf951e7 and 1 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.16, >=6a4049102055250256623ab1875fabd89004bff8 <8e7860543a94784d744c7ce34b78a2e11beefa5c, >=6a4049102055250256623ab1875fabd89004bff8 <b7859ff398b6b656e1689daa860eb34837b4bb89, >=6a4049102055250256623ab1875fabd89004bff8 <c1cc3326e27b0bd7a2806b40bc48e49afaf951e7, >=6a4049102055250256623ab1875fabd89004bff8 <c205565e0f2f439f278a4a94ee97b67ef7b56ae88e7860543a94784d744c7ce34b78a2e11beefa5c, b7859ff398b6b656e1689daa860eb34837b4bb89, c1cc3326e27b0bd7a2806b40bc48e49afaf951e7, c205565e0f2f439f278a4a94ee97b67ef7b56ae8

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-42314 severity on Zeptric[![CVE-2024-42314](https://zeptric.io/badge/cve/CVE-2024-42314.svg)](https://zeptric.io/cve/CVE-2024-42314)