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&#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&#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&#39;t follow<br />
conventional writeback cache behavior: its pages get "cleaned" during<br />
swapout, after which they&#39;re no longer resident etc.
Impact
Base Score 3.x
7.10
Severity 3.x
HIGH
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:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/3a75cb05d53f4a6823a32deb078de1366954a804
- https://git.kernel.org/stable/c/ba60fdf75e89ea762bb617be578dc47f27655117
- https://git.kernel.org/stable/c/fe7e008e0ce728252e4ec652cceebcc62211657c
- https://git.kernel.org/stable/c/3a75cb05d53f4a6823a32deb078de1366954a804
- https://git.kernel.org/stable/c/ba60fdf75e89ea762bb617be578dc47f27655117
- https://git.kernel.org/stable/c/fe7e008e0ce728252e4ec652cceebcc62211657c