{"id":"CVE-2024-42314","published":"2024-08-17T09:09:23Z","modified":"2026-08-05T11:36:36Z","title":"btrfs: fix extent map use-after-free when adding pages to compressed bio","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix extent map use-after-free when adding pages to compressed bio\n\nAt add_ra_bio_pages() we are accessing the extent map to calculate\n'add_size' after we dropped our reference on the extent map, resulting\nin a use-after-free. Fix this by computing 'add_size' before dropping our\nextent map reference.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00323,"percentile":0.17811,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/c1cc3326e27b0bd7a2806b40bc48e49afaf951e7","tags":[]},{"url":"https://git.kernel.org/stable/c/c205565e0f2f439f278a4a94ee97b67ef7b56ae8","tags":[]},{"url":"https://git.kernel.org/stable/c/b7859ff398b6b656e1689daa860eb34837b4bb89","tags":[]},{"url":"https://git.kernel.org/stable/c/8e7860543a94784d744c7ce34b78a2e11beefa5c","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":3.56},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 6a4049102055250256623ab1875fabd89004bff8, < c1cc3326e27b0bd7a2806b40bc48e49afaf951e7",">= 6a4049102055250256623ab1875fabd89004bff8, < c205565e0f2f439f278a4a94ee97b67ef7b56ae8",">= 6a4049102055250256623ab1875fabd89004bff8, < b7859ff398b6b656e1689daa860eb34837b4bb89",">= 6a4049102055250256623ab1875fabd89004bff8, < 8e7860543a94784d744c7ce34b78a2e11beefa5c"]},{"vendor":"Linux","product":"Linux","versions":["5.16"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:09:49.130519Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-39533","exploited":false,"provenance":"source"}}