CVE-2025-22000
mm/huge_memory: drop beyond-EOF folios with the right number of refs
Reported by linux · Published April 3, 2025
In the Linux kernel, the following vulnerability has been resolved: mm/huge_memory: drop beyond-EOF folios with the right number of refs When an after-split folio is large and needs to be dropped due to EOF, folio_put_refs(folio, folio_nr_pages(folio)) should be used to drop all page cache refs. Otherwise, the folio will not be freed, causing memory leak. This leak would happen on a filesystem with blocksize > page_size and a truncate is performed, where the blocksize makes folios split to >0 order ones, causing truncated folios not being freed.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-libbpf-devel | Amazon Linux | 6.12.22-27.96.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.12.22-27.96.amzn2023 |
| kernel6.12 | Amazon Linux | 6.12.22-27.96.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 6.12.22-27.96.amzn2023 |
| perf6.12 | Amazon Linux | 6.12.22-27.96.amzn2023 |
| kernel-headers | Amazon Linux | 6.12.22-27.96.amzn2023 |
| kernel-tools | Amazon Linux | 6.12.22-27.96.amzn2023 |
| linux_kernel | linux | 6.14, 6.13.9, 6.12.21 |
| Linux | Linux | 6.9 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | c010d47f107f609b9f4d6a103b6dfc53889049e9, c010d47f107f609b9f4d6a103b6dfc53889049e9, c010d47f107f609b9f4d6a103b6dfc53889049e9 |
| Linux | Linux | 6.9, 0, 6.12.21 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel6.12 | 0 |
| linux | linux_kernel | 6.9, 6.9, 6.9 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-tools | 0 |
| Linux | Linux | *, 6.9, 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-livepatch-6.12.22-27.96 | 0 |
Timeline
- Apr 2, 2025 CVE Published
- Apr 3, 2025 EPSS Score (30 in total, the first dated here)
- Jun 21, 2025 Coalition ESS Score (8 in total, the first dated here)
- Dec 21, 2025 Security Advisory (132 in total, the first dated here)
- Dec 21, 2025 CVE Updated
- Apr 29, 2026 Distribution Patch (114 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-22000
vulnetix vdb fixes CVE-2025-22000
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-22000/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart