CVE-2025-71295·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: fs/buffer: add alert in try_to_free_buffers() for folios without buffers try_to_free_buffers() can be called on folios with no buffers attached when filemap_release_folio() is invoked on a folio belonging to a mapping with AS_RELEASE_ALWAYS set but no release_folio operation defined. In such cases, folio_needs_release() returns true because of the AS_RELEASE_ALWAYS flag, but the folio has no private buffer data. This causes try_to_free_buffers() to call drop_buffers() on a folio with no buffers, leading to a null pointer dereference. Adding a check in try_to_free_buffers() to return early if the folio has no buffers attached, with WARN_ON_ONCE() to alert about the misconfiguration. This provides defensive hardening.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.19.6
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.12% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 6.19.6
Fixed in: 6.19.6
How to fix this CVE
Update your Linux kernel to version 6.19.6 or later to resolve a null pointer dereference vulnerability in the buffer cache management code. Systems running kernel versions 6.19 through 6.19.5 should apply this security patch immediately to prevent potential kernel crashes when the filesystem buffer layer receives conflicting configuration signals. This defensive hardening fix adds an early validation check to prevent dereferencing buffers that don't exist.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version by running: uname -r | awk -F- '{print $1}' — if the output is between 6.19 and 6.19.5, you are vulnerable.
- Verify if AS_RELEASE_ALWAYS flag mappings are in use by examining filesystem-specific configurations with: grep -r 'AS_RELEASE_ALWAYS' /sys/kernel/debug/ (requires root and debugfs mounted).
- Search system logs for null pointer dereference errors related to buffer operations: grep -i 'null.*pointer\|buffer.*error' /var/log/kern.log or journalctl -k | grep -i 'null\|buffer'.
- After patching, confirm the new kernel version with: uname -r — it should be 6.19.6 or newer, and no buffer-related oops messages should appear in dmesg.
FAQ
What is CVE-2025-71295?
This vulnerability occurs when the Linux kernel's buffer management code encounters a folio (memory page) configured to always release buffers but which has no actual buffer data attached. This mismatch causes a null pointer dereference when the kernel attempts to free non-existent buffers, potentially crashing the system.
Is CVE-2025-71295 being actively exploited?
No, this CVE is not currently listed on CISA's Known Exploited Vulnerabilities catalog, and no public exploits are available. However, it can be triggered through specific filesystem configurations, so patching remains important for system stability.
What versions of Kernel are affected by CVE-2025-71295?
Linux kernel versions 6.19 through 6.19.5 are vulnerable. Kernel 6.19.6 and all later versions contain the fix.
How do I check if my server is vulnerable to CVE-2025-71295?
Run: uname -r — If the output shows a kernel version between 6.19 and 6.19.5 (e.g., 6.19.3-generic), your system is vulnerable and requires an update.
Does Defensia detect CVE-2025-71295?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2025-71295 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1b111a69a6e33a922622bf9870e4e63fb2b649c8
- https://git.kernel.org/stable/c/42c32d7571ccd8ef32351cac506f00b0fae99fd2
- https://git.kernel.org/stable/c/727e5140e0cf83b4ce6a11b89bb73bff5d96f8f3
- https://git.kernel.org/stable/c/b68f91ef3b3fe82ad78c417de71b675699a8467c
- https://git.kernel.org/stable/c/c1b6227555c52781178132b7a06466711855795c
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-71295. Free for 1 server.
Get started free