{"id":"CVE-2025-22045","summary":"x86/mm: Fix flush_tlb_range() when used for zapping normal PMDs","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/mm: Fix flush_tlb_range() when used for zapping normal PMDs\n\nOn the following path, flush_tlb_range() can be used for zapping normal\nPMD entries (PMD entries that point to page tables) together with the PTE\nentries in the pointed-to page table:\n\n    collapse_pte_mapped_thp\n      pmdp_collapse_flush\n        flush_tlb_range\n\nThe arm64 version of flush_tlb_range() has a comment describing that it can\nbe used for page table removal, and does not use any last-level\ninvalidation optimizations. Fix the X86 version by making it behave the\nsame way.\n\nCurrently, X86 only uses this information for the following two purposes,\nwhich I think means the issue doesn't have much impact:\n\n - In native_flush_tlb_multi() for checking if lazy TLB CPUs need to be\n   IPI'd to avoid issues with speculative page table walks.\n - In Hyper-V TLB paravirtualization, again for lazy TLB stuff.\n\nThe patch \"x86/mm: only invalidate final translations with INVLPGB\" which\nis currently under review (see\n\u003chttps://lore.kernel.org/all/20241230175550.4046587-13-riel@surriel.com/\u003e)\nwould probably be making the impact of this a lot worse.","modified":"2026-04-16T04:33:30.012591518Z","published":"2025-04-16T14:12:05.849Z","related":["SUSE-SU-2025:01614-1","SUSE-SU-2025:01620-1","SUSE-SU-2025:01627-1","SUSE-SU-2025:01640-1","SUSE-SU-2025:01707-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:01951-1","SUSE-SU-2025:01964-1","SUSE-SU-2025:01967-1","SUSE-SU-2025:03310-1","SUSE-SU-2025:03384-1","SUSE-SU-2025:1573-1","SUSE-SU-2025:20343-1","SUSE-SU-2025:20344-1","SUSE-SU-2025:20354-1","SUSE-SU-2025:20355-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22045.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0708fd6bd8161871bfbadced2ca4319b84ab44fe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0a8f806ea6b5dd64b3d1f05ff774817d5f7ddbd1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/320ac1af4c0bdb92c864dc9250d1329234820edf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3ef938c3503563bfc2ac15083557f880d29c2e64"},{"type":"WEB","url":"https://git.kernel.org/stable/c/556d446068f90981e5d71ca686bdaccdd545d491"},{"type":"WEB","url":"https://git.kernel.org/stable/c/618d5612ecb7bfc1c85342daafeb2b47e29e77a3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7085895c59e4057ffae17f58990ccb630087d0d2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/78d6f9a9eb2a5da6fcbd76d6191d24b0dcc321be"},{"type":"WEB","url":"https://git.kernel.org/stable/c/93224deb50a8d20df3884f3672ce9f982129aa50"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22045.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22045"},{"type":"PACKAGE","url":"https://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"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22045.json"}}],"schema_version":"1.7.5"}