CVE-2024-42314

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

State
Published
Severity
7.8 High
Published
Aug 17, 2024
Updated
Aug 5, 2026
Reserved
Jul 30, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6a4049102055250256623ab1875fabd89004bff8 to before c1cc3326e27b0bd7a2806b40bc48e49afaf951e7Affected
  • 6a4049102055250256623ab1875fabd89004bff8 to before c205565e0f2f439f278a4a94ee97b67ef7b56ae8Affected
  • 6a4049102055250256623ab1875fabd89004bff8 to before b7859ff398b6b656e1689daa860eb34837b4bb89Affected
  • 6a4049102055250256623ab1875fabd89004bff8 to before 8e7860543a94784d744c7ce34b78a2e11beefa5cAffected
LinuxLinux
  • 5.16Affected
  • before 5.16Not affected
  • 6.1.108 through 6.1.*Not affected
  • 6.6.44 through 6.6.*Not affected
  • 6.10.3 through 6.10.*Not affected
  • 6.11 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.