CVE-2024-42314

Source
https://cve.org/CVERecord?id=CVE-2024-42314
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42314.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-42314
Downstream
Related
Published
2024-08-17T09:09:23.047Z
Modified
2026-03-20T12:38:46.876954Z
Summary
btrfs: fix extent map use-after-free when adding pages to compressed bio
Details

In the Linux kernel, the following vulnerability has been resolved:

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

At addrabiopages() we are accessing the extent map to calculate 'addsize' 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42314.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6a4049102055250256623ab1875fabd89004bff8
Fixed
c1cc3326e27b0bd7a2806b40bc48e49afaf951e7
Fixed
c205565e0f2f439f278a4a94ee97b67ef7b56ae8
Fixed
b7859ff398b6b656e1689daa860eb34837b4bb89
Fixed
8e7860543a94784d744c7ce34b78a2e11beefa5c

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42314.json"