x86/mm: Fix flush_tlb_range() when used for zapping normal PMDs
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 ) would probably be making the impact of this a lot worse.
CVE-2025-22045
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2025-22045
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "016c4d92cd16f569c6485ae62b076c1a4b779536",
"lessThan": "618d5612ecb7bfc1c85342daafeb2b47e29e77a3",
"versionType": "git"
},
{
"status": "affected",
"version": "016c4d92cd16f569c6485ae62b076c1a4b779536",
"lessThan": "556d446068f90981e5d71ca686bdaccdd545d491",
"versionType": "git"
},
{
"status": "affected",
"version": "016c4d92cd16f569c6485ae62b076c1a4b779536",
"lessThan": "0a8f806ea6b5dd64b3d1f05ff774817d5f7ddbd1",
"versionType": "git"
},
{
"status": "affected",
"version": "016c4d92cd16f569c6485ae62b076c1a4b779536",
"lessThan": "0708fd6bd8161871bfbadced2ca4319b84ab44fe",
"versionType": "git"
},
{
"status": "affected",
"version": "016c4d92cd16f569c6485ae62b076c1a4b779536",
"lessThan": "7085895c59e4057ffae17f58990ccb630087d0d2",
"versionType": "git"
},
{
"status": "affected",
"version": "016c4d92cd16f569c6485ae62b076c1a4b779536",
"lessThan": "93224deb50a8d20df3884f3672ce9f982129aa50",
"versionType": "git"
},
{
"status": "affected",
"version": "016c4d92cd16f569c6485ae62b076c1a4b779536",
"lessThan": "320ac1af4c0bdb92c864dc9250d1329234820edf",
"versionType": "git"
},
{
"status": "affected",
"version": "016c4d92cd16f569c6485ae62b076c1a4b779536",
"lessThan": "78d6f9a9eb2a5da6fcbd76d6191d24b0dcc321be",
"versionType": "git"
},
{
"status": "affected",
"version": "016c4d92cd16f569c6485ae62b076c1a4b779536",
"lessThan": "3ef938c3503563bfc2ac15083557f880d29c2e64",
"versionType": "git"
}
],
"programFiles": [
"arch/x86/include/asm/tlbflush.h"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "4.20"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "4.20",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.4.292",
"versionType": "semver",
"lessThanOrEqual": "5.4.*"
},
{
"status": "unaffected",
"version": "5.10.236",
"versionType": "semver",
"lessThanOrEqual": "5.10.*"
},
{
"status": "unaffected",
"version": "5.15.180",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.134",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.87",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.23",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.13.11",
"versionType": "semver",
"lessThanOrEqual": "6.13.*"
},
{
"status": "unaffected",
"version": "6.14.2",
"versionType": "semver",
"lessThanOrEqual": "6.14.*"
},
{
"status": "unaffected",
"version": "6.15",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"arch/x86/include/asm/tlbflush.h"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2025-22045
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #30457 · Revision 1
- Added to Heist Feed
- Publisher date