Use After Free in Linux
CVE-2024-26630
In the Linux kernel, the following vulnerability has been resolved: mm: cachestat: fix folio read-after-free in cache walk In cachestat, we access the folio from the page cache's xarray to compute its page offset, and check for its dirty and writeback flags. However, we do not hold a reference to the folio before performing these actions, which means the folio can concurrently be released and reused as another folio/page/slab. Get around this altogether by just using xarray's existing machinery for the folio page offsets and dirty/writeback states. This changes behavior for tmpfs files to now always report zeroes in their dirty and writeback counters. This is okay as tmpfs doesn't follow conventional writeback cache behavior: its pages get "cleaned" during swapout, after which they're no longer resident etc.
Vulnerability class: Use-After-Free
EPSS: 0.003 (22.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.1 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H.
Affected products
- Linux — versions cf264e1329fb0307e044f7675849f9f38b44c11a, 6.5, 0
- Linux Linux_kernel — versions 6.8
Weakness classification (CWE)
Public proof-of-concept exploits
References
Frequently asked questions
- What is CVE-2024-26630?
- CVE-2024-26630 is a high-severity vulnerability in Linux, classified under Use After Free. CVSS score: 7.1/10. Published 2024-03-13.
- How severe is CVE-2024-26630?
- High severity. CVSS v3 base score is 7.1 out of 10.
- Is CVE-2024-26630 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.