{"id":"CVE-2024-26630","published":"2024-03-13T15:50:32Z","modified":"2026-08-05T11:26:23Z","title":"mm: cachestat: fix folio read-after-free in cache walk","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: cachestat: fix folio read-after-free in cache walk\n\nIn cachestat, we access the folio from the page cache's xarray to compute\nits page offset, and check for its dirty and writeback flags.  However, we\ndo not hold a reference to the folio before performing these actions,\nwhich means the folio can concurrently be released and reused as another\nfolio/page/slab.\n\nGet around this altogether by just using xarray's existing machinery for\nthe folio page offsets and dirty/writeback states.\n\nThis changes behavior for tmpfs files to now always report zeroes in their\ndirty and writeback counters.  This is okay as tmpfs doesn't follow\nconventional writeback cache behavior: its pages get \"cleaned\" during\nswapout, after which they're no longer resident etc.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00304,"percentile":0.23769,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/ba60fdf75e89ea762bb617be578dc47f27655117","tags":[]},{"url":"https://git.kernel.org/stable/c/fe7e008e0ce728252e4ec652cceebcc62211657c","tags":[]},{"url":"https://git.kernel.org/stable/c/3a75cb05d53f4a6823a32deb078de1366954a804","tags":[]}],"priority":{"score":9.7,"factors":[{"name":"EPSS percentile","points":4.75},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= cf264e1329fb0307e044f7675849f9f38b44c11a, < ba60fdf75e89ea762bb617be578dc47f27655117",">= cf264e1329fb0307e044f7675849f9f38b44c11a, < fe7e008e0ce728252e4ec652cceebcc62211657c",">= cf264e1329fb0307e044f7675849f9f38b44c11a, < 3a75cb05d53f4a6823a32deb078de1366954a804"]},{"vendor":"Linux","product":"Linux","versions":["6.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-03-13T19:45:46.313433Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-23892","exploited":false,"provenance":"source"}}