CVE-2025-71295

Source
https://cve.org/CVERecord?id=CVE-2025-71295
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-71295.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-71295
Downstream
Published
2026-05-06T11:32:25.917Z
Modified
2026-05-15T11:54:46.026097410Z
Summary
fs/buffer: add alert in try_to_free_buffers() for folios without buffers
Details

In the Linux kernel, the following vulnerability has been resolved:

fs/buffer: add alert in trytofree_buffers() for folios without buffers

trytofreebuffers() can be called on folios with no buffers attached when filemapreleasefolio() is invoked on a folio belonging to a mapping with ASRELEASEALWAYS set but no releasefolio operation defined.

In such cases, folioneedsrelease() returns true because of the ASRELEASEALWAYS flag, but the folio has no private buffer data. This causes trytofreebuffers() to call dropbuffers() on a folio with no buffers, leading to a null pointer dereference.

Adding a check in trytofreebuffers() to return early if the folio has no buffers attached, with WARNON_ONCE() to alert about the misconfiguration. This provides defensive hardening.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71295.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.165
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.128
Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.12.75
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.18.16
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.19.6

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-71295.json"