CVE-2025-22045
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.32% (higher than 18% of CVEs)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 016c4d92cd16f569c6485ae62b076c1a4b779536 before 618d5612ecb7bfc1c85342daafeb2b47e29e77a3, from 016c4d92cd16f569c6485ae62b076c1a4b779536 before 556d446068f90981e5d71ca686bdaccdd545d491, from 016c4d92cd16f569c6485ae62b076c1a4b779536 before 0a8f806ea6b5dd64b3d1f05ff774817d5f7ddbd1, from 016c4d92cd16f569c6485ae62b076c1a4b779536 before 0708fd6bd8161871bfbadced2ca4319b84ab44fe, from 016c4d92cd16f569c6485ae62b076c1a4b779536 before 7085895c59e4057ffae17f58990ccb630087d0d2, from 016c4d92cd16f569c6485ae62b076c1a4b779536 before 93224deb50a8d20df3884f3672ce9f982129aa50, from 016c4d92cd16f569c6485ae62b076c1a4b779536 before 320ac1af4c0bdb92c864dc9250d1329234820edf, from 016c4d92cd16f569c6485ae62b076c1a4b779536 before 78d6f9a9eb2a5da6fcbd76d6191d24b0dcc321be and 2 more
Not affected: before 4.20, from 5.4.292 up to 5.4.*, from 5.10.236 up to 5.10.*, from 5.15.180 up to 5.15.*, from 6.1.134 up to 6.1.*, from 6.6.87 up to 6.6.*
CVE List
linux linux_kernelfrom 4.20 before 5.4.292, from 5.5 before 5.10.236, from 5.11 before 5.15.180, from 5.16 before 6.1.134, from 6.2 before 6.6.87, from 6.7 before 6.12.23, from 6.13 before 6.13.11, from 6.14 before 6.14.2NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: x86/mm: Arregla flush_tlb_range() cuando se usa para zapping de PMD normales En la siguiente ruta, flush_tlb_range() se puede usar para zapping de entradas PMD normales (entradas PMD que apuntan a tablas de páginas) junto con las entradas PTE en la tabla de páginas apuntada: colapso_pte_mapped_thp pmdp_collapse_flush flush_tlb_range La versión arm64 de flush_tlb_range() tiene un comentario que describe que se puede usar para la eliminación de la tabla de páginas y no usa ninguna optimización de invalidación de último nivel. Arregla la versión X86 haciendo que se comporte de la misma manera. Actualmente, X86 solo usa esta información para los dos propósitos siguientes, lo que creo que significa que el problema no tiene mucho impacto: - En native_flush_tlb_multi() para verificar si las CPU TLB perezosas necesitan ser IPI'd para evitar problemas con recorridos especulativos de la tabla de páginas. En la paravirtualización de TLB de Hyper-V, de nuevo para problemas de TLB lentos. El parche "x86/mm: solo invalidar las traducciones finales con INVLPGB", actualmente en revisión (véase ), probablemente estaría agravando considerablemente el impacto de esto.

References

https://git.kernel.org/stable/c/618d5612ecb7bfc1c85342daafeb2b47e29e77a3patch
https://git.kernel.org/stable/c/556d446068f90981e5d71ca686bdaccdd545d491patch
https://git.kernel.org/stable/c/0a8f806ea6b5dd64b3d1f05ff774817d5f7ddbd1patch
https://git.kernel.org/stable/c/0708fd6bd8161871bfbadced2ca4319b84ab44fepatch
https://git.kernel.org/stable/c/7085895c59e4057ffae17f58990ccb630087d0d2patch
https://git.kernel.org/stable/c/93224deb50a8d20df3884f3672ce9f982129aa50patch
https://git.kernel.org/stable/c/320ac1af4c0bdb92c864dc9250d1329234820edfpatch
https://git.kernel.org/stable/c/78d6f9a9eb2a5da6fcbd76d6191d24b0dcc321bepatch
https://git.kernel.org/stable/c/3ef938c3503563bfc2ac15083557f880d29c2e64patch
https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html
https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html

Sources

SourceRecordLicence
CVE ListCVE-2025-22045 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-22045 changed 2026-10-15Public domain