VDB

CVE-2025-71295

CVE-2025-71295 PUBLISHED

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.

PackageEcosystemFixed in
kernel6.12-libbpf-develAmazon Linux1:6.12.77-99.140.amzn2023
python3-perf6.18Amazon Linux1:6.18.16-18.222.amzn2023
kernel6.18-headersAmazon Linux1:6.18.16-18.222.amzn2023
perf6.18Amazon Linux1:6.18.16-18.222.amzn2023

Affected products

VendorProductVersions
LinuxLinuxd0eafc763135508be118dac208887a26c0adb74d, b4fa966f03b7401ceacd4ffd7227197afb2b8376, b4fa966f03b7401ceacd4ffd7227197afb2b8376
LinuxLinux6.6, 0, 6.1.165
amazon:2023kernel6.12-libbpf-devel0
amazon:2023python3-perf6.180
amazon:2023kernel6.18-headers0
amazon:2023perf6.180
linuxlinux_kernel6.6, 6.6, 6.6
amazon:2023kernel6.180
amazon:2023python3-perf6.120
amazon:2023perf0
amazon:2023kernel-devel0
amazon:2023kernel-headers0
amazon:2023bpftool6.180
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-tools0
amazon:2023kernel6.120
amazon:2023kernel-livepatch-6.1.166-197.3050
amazon:2023kernel6.18-devel0
amazon:2023kernel-modules-extra0
amazon:2023kernel6.18-tools0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›