CVE-2025-21691 Details
Description
In the Linux kernel, the following vulnerability has been resolved: cachestat: fix page cache statistics permission checking When the 'cachestat()' system call was added in commit cf264e1329fb ("cachestat: implement cachestat syscall"), it was meant to be a much more convenient (and performant) version of mincore() that didn't need mapping things into the user virtual address space in order to work. But it ended up missing the "check for writability or ownership" fix for mincore(), done in commit 134fca9063ad ("mm/mincore.c: make mincore() more conservative"). This just adds equivalent logic to 'cachestat()', modified for the file context (rather than vma).
A vulnerability in the Linux kernel's cachestat system call has been addressed. The issue arose because cachestat, intended as a more efficient alternative to mincore, lacked proper permission checks for writability or ownership. This oversight allowed potential unauthorized access to page cache statistics. The vulnerability affects several versions of the Linux kernel.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/5f537664e705b0bf8b7e329861f20128534f6a83 | kernel.org | Patch |
| https://git.kernel.org/stable/c/780ab8329672464984cf1344bd5c3993af0226c7 | kernel.org | Patch |
| https://git.kernel.org/stable/c/7d6405c13b0d8a8367cd8df63f118b619a3f0dd2 | kernel.org | Patch |
| https://git.kernel.org/stable/c/97153a05077f618f7471f50a78158602badccb30 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.5, < 6.6.75 >= 6.7, < 6.12.12 6.13 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 15, 2025 | Initial Analysis | [email protected] |
| Feb 10, 2025 | New CVE Received | kernel.org |