# CVE-2025-22045: x86/mm: Fix flush\_tlb\_range() when used for zapping normal PMDs

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **Published:** 2025-04-16T14:12:05.849Z
- **Modified:** 2026-10-15T22:18:14.140Z

## Who should check

- Anyone running Linux \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 618d5612ecb7bfc1c85342daafeb2b47e29e77a3; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 556d446068f90981e5d71ca686bdaccdd545d491; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 0a8f806ea6b5dd64b3d1f05ff774817d5f7ddbd1; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 0708fd6bd8161871bfbadced2ca4319b84ab44fe; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 7085895c59e4057ffae17f58990ccb630087d0d2; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 93224deb50a8d20df3884f3672ce9f982129aa50; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 320ac1af4c0bdb92c864dc9250d1329234820edf; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 78d6f9a9eb2a5da6fcbd76d6191d24b0dcc321be; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 3ef938c3503563bfc2ac15083557f880d29c2e64
- Anyone running Linux 4.20

## 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.

## Affected and fixed versions

- Linux: \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 618d5612ecb7bfc1c85342daafeb2b47e29e77a3; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 556d446068f90981e5d71ca686bdaccdd545d491; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 0a8f806ea6b5dd64b3d1f05ff774817d5f7ddbd1; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 0708fd6bd8161871bfbadced2ca4319b84ab44fe; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 7085895c59e4057ffae17f58990ccb630087d0d2; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 93224deb50a8d20df3884f3672ce9f982129aa50; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 320ac1af4c0bdb92c864dc9250d1329234820edf; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 78d6f9a9eb2a5da6fcbd76d6191d24b0dcc321be; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 3ef938c3503563bfc2ac15083557f880d29c2e64 (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

- Upgrade Linux to 3ef938c3503563bfc2ac15083557f880d29c2e64 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-22045. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-22045.md
Affected: Linux >= 016c4d92cd16f569c6485ae62b076c1a4b779536, < 618d5612ecb7bfc1c85342daafeb2b47e29e77a3; >= 016c4d92cd16f569c6485ae62b076c1a4b779536, < 556d446068f90981e5d71ca686bdaccdd545d491; >= 016c4d92cd16f569c6485ae62b076c1a4b779536, < 0a8f806ea6b5dd64b3d1f05ff774817d5f7ddbd1; >= 016c4d92cd16f569c6485ae…
Fixed in: Linux 618d5612ecb7bfc1c85342daafeb2b47e29e77a3, Linux 556d446068f90981e5d71ca686bdaccdd545d491, Linux 0a8f806ea6b5dd64b3d1f05ff774817d5f7ddbd1, Linux 0708fd6bd8161871bfbadced2ca4319b84ab44fe, Linux 7085895c59e4057ffae17f58990ccb630087d0d2, Linux 93224deb50a8d20df3884f3672ce9f982129aa50, Linux 320ac…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-22045 being exploited?

There is no confirmed exploitation: CVE-2025-22045 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-22045?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-22045?

Linux \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 618d5612ecb7bfc1c85342daafeb2b47e29e77a3; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 556d446068f90981e5d71ca686bdaccdd545d491; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 0a8f806ea6b5dd64b3d1f05ff774817d5f7ddbd1; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 0708fd6bd8161871bfbadced2ca4319b84ab44fe; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 7085895c59e4057ffae17f58990ccb630087d0d2; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 93224deb50a8d20df3884f3672ce9f982129aa50; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 320ac1af4c0bdb92c864dc9250d1329234820edf; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 78d6f9a9eb2a5da6fcbd76d6191d24b0dcc321be; \>= 016c4d92cd16f569c6485ae62b076c1a4b779536, \< 3ef938c3503563bfc2ac15083557f880d29c2e64; Linux 4.20.

### Is there a fix for CVE-2025-22045?

Yes. Fixed in Linux 618d5612ecb7bfc1c85342daafeb2b47e29e77a3, Linux 556d446068f90981e5d71ca686bdaccdd545d491, Linux 0a8f806ea6b5dd64b3d1f05ff774817d5f7ddbd1, Linux 0708fd6bd8161871bfbadced2ca4319b84ab44fe, Linux 7085895c59e4057ffae17f58990ccb630087d0d2, Linux 93224deb50a8d20df3884f3672ce9f982129aa50, Linux 320ac1af4c0bdb92c864dc9250d1329234820edf, Linux 78d6f9a9eb2a5da6fcbd76d6191d24b0dcc321be, Linux 3ef938c3503563bfc2ac15083557f880d29c2e64. Upgrade Linux to 3ef938c3503563bfc2ac15083557f880d29c2e64 or later.

### How do I check if I'm affected by CVE-2025-22045?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/618d5612ecb7bfc1c85342daafeb2b47e29e77a3>
- patch: <https://git.kernel.org/stable/c/556d446068f90981e5d71ca686bdaccdd545d491>
- patch: <https://git.kernel.org/stable/c/0a8f806ea6b5dd64b3d1f05ff774817d5f7ddbd1>
- patch: <https://git.kernel.org/stable/c/0708fd6bd8161871bfbadced2ca4319b84ab44fe>
- patch: <https://git.kernel.org/stable/c/7085895c59e4057ffae17f58990ccb630087d0d2>
- patch: <https://git.kernel.org/stable/c/93224deb50a8d20df3884f3672ce9f982129aa50>
- patch: <https://git.kernel.org/stable/c/320ac1af4c0bdb92c864dc9250d1329234820edf>
- patch: <https://git.kernel.org/stable/c/78d6f9a9eb2a5da6fcbd76d6191d24b0dcc321be>
- patch: <https://git.kernel.org/stable/c/3ef938c3503563bfc2ac15083557f880d29c2e64>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-22045>

HTML: <https://flawdb.com/CVE-2025-22045> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-22045>
