VDB

CVE-2025-22045

CVE-2025-22045 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
perfAmazon Linux6.1.134-150.224.amzn2023
kernel-headersAmazon Linux6.1.134-150.224.amzn2023
kernel-libbpf-develAmazon Linux6.1.134-150.224.amzn2023
kernel-libbpf-staticAmazon Linux6.1.134-150.224.amzn2023
python3-perfAmazon Linux6.1.134-150.224.amzn2023
kernel-develAmazon Linux6.1.134-150.224.amzn2023
kernel-modules-extraAmazon Linux6.1.134-150.224.amzn2023
bpftoolAmazon Linux6.1.134-150.224.amzn2023
kernel-libbpfAmazon Linux6.1.134-150.224.amzn2023
kernel6.12Amazon Linux6.12.23-29.97.amzn2023
kernel-modules-extra-commonAmazon Linux6.1.134-150.224.amzn2023
python3-perf6.12Amazon Linux6.12.23-29.97.amzn2023

6 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux016c4d92cd16f569c6485ae62b076c1a4b779536, 016c4d92cd16f569c6485ae62b076c1a4b779536, 016c4d92cd16f569c6485ae62b076c1a4b779536
LinuxLinux4.20, 0, 5.4.292
amazon:2023perf0
amazon:2023kernel-headers0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-libbpf-static0
amazon:2023python3-perf0
amazon:2023kernel-devel0
amazon:2023kernel-modules-extra0
amazon:2023bpftool0
amazon:2023kernel-libbpf0
amazon:2023kernel6.120
amazon:2023kernel-modules-extra-common0
linuxlinux_kernel4.20, 4.20, 4.20
amazon:2023python3-perf6.120
amazon:2023perf6.120
amazon:2023kernel-tools0
amazon:2023kernel0
amazon:2023kernel-livepatch-6.1.134-150.2240
amazon:2023kernel-livepatch-6.12.23-29.970

…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

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