CVE-2025-22045

x86/mm: Fix flush_tlb_range() when used for zapping normal PMDs

7.8 high EPSS 0.24%

Published 16 Apr 2025 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2025-22045

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-22045 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.6% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 15 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 016c4d92cd16f569c6485ae62b076c1a4b779536, before 618d5612ecb7bfc1c85342daafeb2b47e29e77a3
affected from 016c4d92cd16f569c6485ae62b076c1a4b779536, before 556d446068f90981e5d71ca686bdaccdd545d491
affected from 016c4d92cd16f569c6485ae62b076c1a4b779536, before 0a8f806ea6b5dd64b3d1f05ff774817d5f7ddbd1
affected from 016c4d92cd16f569c6485ae62b076c1a4b779536, before 0708fd6bd8161871bfbadced2ca4319b84ab44fe
affected from 016c4d92cd16f569c6485ae62b076c1a4b779536, before 7085895c59e4057ffae17f58990ccb630087d0d2
affected from 016c4d92cd16f569c6485ae62b076c1a4b779536, before 93224deb50a8d20df3884f3672ce9f982129aa50
affected from 016c4d92cd16f569c6485ae62b076c1a4b779536, before 320ac1af4c0bdb92c864dc9250d1329234820edf
affected from 016c4d92cd16f569c6485ae62b076c1a4b779536, before 78d6f9a9eb2a5da6fcbd76d6191d24b0dcc321be
affected from 016c4d92cd16f569c6485ae62b076c1a4b779536, before 3ef938c3503563bfc2ac15083557f880d29c2e64
Other versions: unaffected
Linux
affected 4.20
unaffected before 4.20
unaffected from 5.4.292 up to and including 5.4.*
unaffected from 5.10.236 up to and including 5.10.*
unaffected from 5.15.180 up to and including 5.15.*
unaffected from 6.1.134 up to and including 6.1.*
unaffected from 6.6.87 up to and including 6.6.*
unaffected from 6.12.23 up to and including 6.12.*
unaffected from 6.13.11 up to and including 6.13.*
unaffected from 6.14.2 up to and including 6.14.*
unaffected 6.15 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-22045 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-22045

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-22045
trivy image --scanners vuln IMAGE | grep CVE-2025-22045

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-22045 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.