CVE-2025-71295
fs/buffer: add alert in try_to_free_buffers() for folios without buffers
Reported by linux · Published May 6, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| python3-perf6.18 | Amazon Linux | 1:6.18.16-18.222.amzn2023 |
| kernel6.18-headers | Amazon Linux | 1:6.18.16-18.222.amzn2023 |
| perf6.18 | Amazon Linux | 1:6.18.16-18.222.amzn2023 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | d0eafc763135508be118dac208887a26c0adb74d, b4fa966f03b7401ceacd4ffd7227197afb2b8376, b4fa966f03b7401ceacd4ffd7227197afb2b8376 |
| Linux | Linux | 6.6, 0, 6.1.165 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | perf6.18 | 0 |
| linux | linux_kernel | 6.6, 6.6, 6.6 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.1.166-197.305 | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
…and 26 more
Timeline
- May 6, 2026 CVE Published
- May 6, 2026 Security Advisory (96 in total, the first dated here)
- May 18, 2026 EPSS Score (23 in total, the first dated here)
- Jun 17, 2026 CVE Updated
- Aug 4, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (91 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-71295
vulnetix vdb fixes CVE-2025-71295
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-71295/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart