CVE-2025-22045

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-22045
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-22045.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-22045
Downstream
Related
Published
2025-04-16T14:12:05.849Z
Modified
2025-11-28T02:33:57.412904Z
Summary
x86/mm: Fix flush_tlb_range() when used for zapping normal PMDs
Details

In the Linux kernel, the following vulnerability has been resolved:

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

On the following path, flushtlbrange() 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 flushtlbrange() 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 nativeflushtlb_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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22045.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
016c4d92cd16f569c6485ae62b076c1a4b779536
Fixed
618d5612ecb7bfc1c85342daafeb2b47e29e77a3
Fixed
556d446068f90981e5d71ca686bdaccdd545d491
Fixed
0a8f806ea6b5dd64b3d1f05ff774817d5f7ddbd1
Fixed
0708fd6bd8161871bfbadced2ca4319b84ab44fe
Fixed
7085895c59e4057ffae17f58990ccb630087d0d2
Fixed
93224deb50a8d20df3884f3672ce9f982129aa50
Fixed
320ac1af4c0bdb92c864dc9250d1329234820edf
Fixed
78d6f9a9eb2a5da6fcbd76d6191d24b0dcc321be
Fixed
3ef938c3503563bfc2ac15083557f880d29c2e64

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.292
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.236
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.180
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.134
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.87
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.23
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.11
Type
ECOSYSTEM
Events
Introduced
6.14.0
Fixed
6.14.2