CVE-2025-22045
x86/mm: Fix flush_tlb_range() when used for zapping normal PMDs
Reported by linux · Published April 16, 2025
In the Linux kernel, the following vulnerability has been resolved: x86/mm: Fix flush_tlb_range() when used for zapping normal PMDs On the following path, flush_tlb_range() can be used for zapping normal PMD entries (PMD entries that point to page tables) together with the PTE entries in the pointed-to page table: collapse_pte_mapped_thp pmdp_collapse_flush flush_tlb_range The arm64 version of flush_tlb_range() has a comment describing that it can be used for page table removal, and does not use any last-level invalidation optimizations. Fix the X86 version by making it behave the same way. Currently, X86 only uses this information for the following two purposes, which I think means the issue doesn't have much impact: - In native_flush_tlb_multi() for checking if lazy TLB CPUs need to be IPI'd to avoid issues with speculative page table walks. - In Hyper-V TLB paravirtualization, again for lazy TLB stuff. The patch "x86/mm: only invalidate final translations with INVLPGB" which is currently under review (see <https://lore.kernel.org/all/20241230175550.4046587-13-riel@surriel.com/>) would probably be making the impact of this a lot worse.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf | Amazon Linux | 6.1.134-150.224.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.134-150.224.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.1.134-150.224.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.134-150.224.amzn2023 |
| python3-perf | Amazon Linux | 6.1.134-150.224.amzn2023 |
| kernel-devel | Amazon Linux | 6.1.134-150.224.amzn2023 |
| kernel-modules-extra | Amazon Linux | 6.1.134-150.224.amzn2023 |
| bpftool | Amazon Linux | 6.1.134-150.224.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.134-150.224.amzn2023 |
| kernel6.12 | Amazon Linux | 6.12.23-29.97.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.134-150.224.amzn2023 |
| python3-perf6.12 | Amazon Linux | 6.12.23-29.97.amzn2023 |
6 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 016c4d92cd16f569c6485ae62b076c1a4b779536, 016c4d92cd16f569c6485ae62b076c1a4b779536, 016c4d92cd16f569c6485ae62b076c1a4b779536 |
| Linux | Linux | 4.20, 0, 5.4.292 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| linux | linux_kernel | 4.20, 4.20, 4.20 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-livepatch-6.1.134-150.224 | 0 |
| amazon:2023 | kernel-livepatch-6.12.23-29.97 | 0 |
…and 3 more
Timeline
- Apr 16, 2025 CVE Published
- Apr 17, 2025 EPSS Score (30 in total, the first dated here)
- May 27, 2025 Coalition ESS Score (15 in total, the first dated here)
- Dec 2, 2025 PoC Published (2 in total, the first dated here)
- Dec 21, 2025 Security Advisory (328 in total, the first dated here)
- Apr 20, 2026 Distribution Patch (321 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-22045
vulnetix vdb fixes CVE-2025-22045
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-22045/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart