CVE-2024-26630

Severity CVSS v4.0:
Pending analysis
Type:
CWE-416 Use After Free
Publication date:
13/03/2024
Last modified:
13/03/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> mm: cachestat: fix folio read-after-free in cache walk<br /> <br /> In cachestat, we access the folio from the page cache&amp;#39;s xarray to compute<br /> its page offset, and check for its dirty and writeback flags. However, we<br /> do not hold a reference to the folio before performing these actions,<br /> which means the folio can concurrently be released and reused as another<br /> folio/page/slab.<br /> <br /> Get around this altogether by just using xarray&amp;#39;s existing machinery for<br /> the folio page offsets and dirty/writeback states.<br /> <br /> This changes behavior for tmpfs files to now always report zeroes in their<br /> dirty and writeback counters. This is okay as tmpfs doesn&amp;#39;t follow<br /> conventional writeback cache behavior: its pages get "cleaned" during<br /> swapout, after which they&amp;#39;re no longer resident etc.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.5 (including) 6.6.21 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.7.9 (excluding)
cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc6:*:*:*:*:*:*