Upstream information
Description
In the Linux kernel, the following vulnerability has been resolved:KVM: x86/mmu: Ensure hugepage is in by slot before checking max mapping level
When recovering hugepages in the shadow MMU, verify that the base gfn of
the shadow page is actually contained within the target memslot, *before*
querying the max mapping level given the shadow page's gfn. Failure to
pre-check the validity of the gfn can lead to an out-of-bounds access to
the slot's lpage_info (which typically manifests as a host #PF because the
lpage_info is vmalloc'd) if the guest creates a hugepage mapping (in its
PTEs) that extends "below" the bounds of a memslot.
When faulting in memory for a guest, and the size of the guest mapping is
greater than KVM's (current) max mapping, then KVM will create a "direct"
shadow page (direct in that there are no gPTEs to shadow, and so the target
gfn is a direct calculation given the base gfn of the shadow page). The
hugepage recovery flow looks for such direct shadow pages, as forcing 4KiB
mappings when dirty logging generates the guest > host mapping size case.
When the 4KiB restriction is lifted, then KVM can replace the shadow page
with a hugepage.
But if KVM originally used a smaller mapping than the guest because the
range of memory covered by the guest hugepage exceeds the bounds of a
memslot, then KVM will link a direct shadow page with a gfn that is outside
the bounds of the memslot being used to fault in memory. The rmap entry
added for the leaf mapping is correct and within bounds, but the gfn of the
leaf SPTE's parent shadow page will be out of bounds.
BUG: unable to handle page fault for address: ffffc90000806ffc
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 100000067 P4D 100000067 PUD 1002a7067 PMD 10612f067 PTE 0
Oops: Oops: 0000 [#1] SMP
CPU: 13 UID: 1000 PID: 757 Comm: mmu_stress_test Not tainted 7.1.0-rc1-48ce1e26eace-x86_pir_to_irr_comments-vm #341 PREEMPT
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
RIP: 0010:kvm_mmu_max_mapping_level+0x79/0x2b0 [kvm]
Call Trace:
<TASK>
kvm_mmu_recover_huge_pages+0x21b/0x320 [kvm]
kvm_set_memslot+0x1ee/0x590 [kvm]
kvm_set_memory_region.part.0+0x3a1/0x4d0 [kvm]
kvm_vm_ioctl+0x9bf/0x15d0 [kvm]
__x64_sys_ioctl+0x8a/0xd0
do_syscall_64+0xb7/0xbb0
entry_SYSCALL_64_after_hwframe+0x4b/0x53
RIP: 0033:0x7f21c0f1a9bf
</TASK>
Don't bother pre-checking the bounds of the potential hugepage, i.e. don't
check that e.g. sp->gfn + KVM_PAGES_PER_HPAGE(sp->role.level + 1) is also
within the memslot, as the checks performed by kvm_mmu_max_mapping_level()
are a superset of the basic bounds checks. I.e. pre-checking the full
range would be a dubious micro-optimization.
SUSE information
Overall state of this security issue: Analysis
This issue is currently rated as having important severity.
| CVSS detail | CNA (NVD) | Linux Kernel CNA |
|---|---|---|
| Base Score | 8.8 | 8.8 |
| Vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| Attack Vector | Local | Local |
| Attack Complexity | Low | Low |
| Privileges Required | Low | Low |
| User Interaction | None | None |
| Scope | Changed | Changed |
| Confidentiality Impact | High | High |
| Integrity Impact | High | High |
| Availability Impact | High | High |
| CVSSv3 Version | 3.1 | 3.1 |
Note from the SUSE Security Team on the kernel-default package
SUSE will no longer fix all CVEs in the Linux Kernel anymore, but declare some bug classes as won't fix. Please refer to TID 21496 for more details. No SUSE Bugzilla entries cross referenced. No SUSE Security Announcements cross referenced.Status of this issue by product and package
Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.
| Product(s) | Source package | State |
|---|---|---|
| Products under general support and receiving all security fixes. | ||
| SUSE Linux Enterprise Desktop 15 SP7 | kernel-default | Analysis |
| SUSE Linux Enterprise Desktop 15 SP7 | kernel-source | Analysis |
| SUSE Linux Enterprise High Availability Extension 15 SP7 | kernel-default | Analysis |
| SUSE Linux Enterprise High Availability Extension 15 SP7 | kernel-source | Analysis |
| SUSE Linux Enterprise High Availability Extension 16.0 | kernel-default | Analysis |
| SUSE Linux Enterprise High Availability Extension 16.0 | kernel-source | Analysis |
| SUSE Linux Enterprise High Availability Extension 16.1 | kernel-default | Analysis |
| SUSE Linux Enterprise High Availability Extension 16.1 | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | kernel-default | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | kernel-source | Analysis |
| SUSE Linux Enterprise Live Patching 15 SP7 | kernel-default | Analysis |
| SUSE Linux Enterprise Live Patching 15 SP7 | kernel-source | Analysis |
| SUSE Linux Enterprise Micro 5.3 | kernel-default | Analysis |
| SUSE Linux Enterprise Micro 5.3 | kernel-rt | Analysis |
| SUSE Linux Enterprise Micro 5.3 | kernel-source | Analysis |
| SUSE Linux Enterprise Micro 5.3 | kernel-source-rt | Analysis |
| SUSE Linux Enterprise Micro 5.4 | kernel-default | Analysis |
| SUSE Linux Enterprise Micro 5.4 | kernel-rt | Analysis |
| SUSE Linux Enterprise Micro 5.4 | kernel-source | Analysis |
| SUSE Linux Enterprise Micro 5.4 | kernel-source-rt | Analysis |
| SUSE Linux Enterprise Micro 5.5 | kernel-default | Analysis |
| SUSE Linux Enterprise Micro 5.5 | kernel-source | Analysis |
| SUSE Linux Enterprise Micro 5.5 | kernel-source-rt | Analysis |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | kernel-default | Analysis |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | kernel-source | Analysis |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | kernel-default | Analysis |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | kernel-source | Analysis |
| SUSE Linux Enterprise Module for Legacy 15 SP7 | kernel-default | Analysis |
| SUSE Linux Enterprise Module for Legacy 15 SP7 | kernel-source | Analysis |
| SUSE Linux Enterprise Module for Public Cloud 15 SP7 | kernel-default | Analysis |
| SUSE Linux Enterprise Module for Public Cloud 15 SP7 | kernel-source | Analysis |
| SUSE Linux Enterprise Real Time 15 SP7 | kernel-source-rt | Analysis |
| SUSE Linux Enterprise Server 15 SP7 | kernel-default | Analysis |
| SUSE Linux Enterprise Server 15 SP7 | kernel-source | Analysis |
| SUSE Linux Enterprise Server 16.0 | kernel-source | Analysis |
| SUSE Linux Enterprise Server 16.1 | kernel-default | Analysis |
| SUSE Linux Enterprise Server 16.1 | kernel-source | Analysis |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | kernel-default | Analysis |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | kernel-source | Analysis |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-source | Analysis |
| SUSE Linux Enterprise Server for SAP applications 16.1 | kernel-default | Analysis |
| SUSE Linux Enterprise Server for SAP applications 16.1 | kernel-source | Analysis |
| SUSE Linux Enterprise Workstation Extension 15 SP7 | kernel-default | Analysis |
| SUSE Linux Enterprise Workstation Extension 15 SP7 | kernel-source | Analysis |
| SUSE Linux Micro 6.0 | kernel-default | Analysis |
| SUSE Linux Micro 6.0 | kernel-source | Analysis |
| SUSE Linux Micro 6.0 | kernel-source-rt | Analysis |
| SUSE Linux Micro 6.1 | kernel-default | Analysis |
| SUSE Linux Micro 6.1 | kernel-source | Analysis |
| SUSE Linux Micro 6.1 | kernel-source-rt | Analysis |
| SUSE Linux Micro 6.2 | kernel-default | Analysis |
| SUSE Linux Micro 6.2 | kernel-source | Analysis |
| SUSE Linux Micro Extras 6.0 | kernel-default | Analysis |
| SUSE Linux Micro Extras 6.0 | kernel-source | Analysis |
| SUSE Linux Micro Extras 6.0 | kernel-source-rt | Analysis |
| SUSE Real Time Module 15 SP7 | kernel-source-rt | Analysis |
| openSUSE Leap 16.0 | kernel-source | Analysis |
| Products under Long Term Service Pack support and receiving important and critical security fixes. | ||
| SUSE Linux Enterprise High Performance Computing 15 SP4 | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | kernel-default | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | kernel-default | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | kernel-source | Analysis |
| SUSE Linux Enterprise Live Patching 12 SP5 | kernel-default | Analysis |
| SUSE Linux Enterprise Live Patching 12 SP5 | kernel-source | Analysis |
| SUSE Linux Enterprise Live Patching 15 SP4 | kernel-default | Analysis |
| SUSE Linux Enterprise Live Patching 15 SP4 | kernel-source | Analysis |
| SUSE Linux Enterprise Live Patching 15 SP5 | kernel-default | Analysis |
| SUSE Linux Enterprise Live Patching 15 SP5 | kernel-source | Analysis |
| SUSE Linux Enterprise Module for Basesystem 15 SP4 | kernel-source | Analysis |
| SUSE Linux Enterprise Module for Basesystem 15 SP5 | kernel-source | Analysis |
| SUSE Linux Enterprise Module for Basesystem 15 SP6 | kernel-source | Analysis |
| SUSE Linux Enterprise Module for Development Tools 15 SP4 | kernel-source | Analysis |
| SUSE Linux Enterprise Module for Development Tools 15 SP5 | kernel-source | Analysis |
| SUSE Linux Enterprise Module for Development Tools 15 SP6 | kernel-source | Analysis |
| SUSE Linux Enterprise Server 11 SP4 LTSS EXTREME CORE | kernel-default | Analysis |
| SUSE Linux Enterprise Server 11 SP4 LTSS EXTREME CORE | kernel-source | Analysis |
| SUSE Linux Enterprise Server 12 SP5 | kernel-source | Analysis |
| SUSE Linux Enterprise Server 12 SP5-LTSS | kernel-default | Analysis |
| SUSE Linux Enterprise Server 12 SP5-LTSS | kernel-source | Analysis |
| SUSE Linux Enterprise Server 12 SP5-LTSS Extended Security | kernel-default | Analysis |
| SUSE Linux Enterprise Server 12 SP5-LTSS Extended Security | kernel-source | Analysis |
| SUSE Linux Enterprise Server 15 SP4 | kernel-source | Analysis |
| SUSE Linux Enterprise Server 15 SP4-LTSS | kernel-default | Analysis |
| SUSE Linux Enterprise Server 15 SP4-LTSS | kernel-source | Analysis |
| SUSE Linux Enterprise Server 15 SP5 | kernel-source | Analysis |
| SUSE Linux Enterprise Server 15 SP5-LTSS | kernel-default | Analysis |
| SUSE Linux Enterprise Server 15 SP5-LTSS | kernel-source | Analysis |
| SUSE Linux Enterprise Server 15 SP6 | kernel-source | Analysis |
| SUSE Linux Enterprise Server 15 SP6-LTSS | kernel-default | Analysis |
| SUSE Linux Enterprise Server 15 SP6-LTSS | kernel-source | Analysis |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | kernel-source | Analysis |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | kernel-default | Analysis |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | kernel-source | Analysis |
| SUSE Manager Proxy 4.3 | kernel-source | Analysis |
| SUSE Manager Proxy LTS 4.3 | kernel-source | Analysis |
| SUSE Manager Retail Branch Server 4.3 | kernel-source | Analysis |
| SUSE Manager Retail Branch Server LTS 4.3 | kernel-source | Analysis |
| SUSE Manager Server 4.3 | kernel-source | Analysis |
| SUSE Manager Server LTS 4.3 | kernel-source | Analysis |
| Products past their end of life and not receiving proactive updates anymore. | ||
| SUSE CaaS Platform 4.0 | kernel-source | Analysis |
| SUSE Enterprise Storage 6 | kernel-source | Analysis |
| SUSE Enterprise Storage 7 | kernel-source | Analysis |
| SUSE Enterprise Storage 7.1 | kernel-source | Analysis |
| SUSE Linux Enterprise Desktop 11 SP4 | kernel-source | Analysis |
| SUSE Linux Enterprise Desktop 15 SP1 | kernel-source | Analysis |
| SUSE Linux Enterprise Desktop 15 SP2 | kernel-source | Analysis |
| SUSE Linux Enterprise Desktop 15 SP3 | kernel-source | Analysis |
| SUSE Linux Enterprise Desktop 15 SP4 | kernel-source | Analysis |
| SUSE Linux Enterprise Desktop 15 SP5 | kernel-source | Analysis |
| SUSE Linux Enterprise Desktop 15 SP6 | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP1 | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | kernel-source | Analysis |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | kernel-source | Analysis |
| SUSE Linux Enterprise Micro 5.0 | kernel-default | Analysis |
| SUSE Linux Enterprise Micro 5.1 | kernel-default | Analysis |
| SUSE Linux Enterprise Micro 5.2 | kernel-default | Analysis |
| SUSE Linux Enterprise Micro 5.2 | kernel-source | Analysis |
| SUSE Linux Enterprise Module for Basesystem 15 SP1 | kernel-source | Analysis |
| SUSE Linux Enterprise Module for Basesystem 15 SP2 | kernel-source | Analysis |
| SUSE Linux Enterprise Module for Basesystem 15 SP3 | kernel-source | Analysis |
| SUSE Linux Enterprise Module for Development Tools 15 SP1 | kernel-source | Analysis |
| SUSE Linux Enterprise Module for Development Tools 15 SP2 | kernel-source | Analysis |
| SUSE Linux Enterprise Module for Development Tools 15 SP3 | kernel-source | Analysis |
| SUSE Linux Enterprise Real Time 15 SP2 | kernel-source | Analysis |
| SUSE Linux Enterprise Real Time 15 SP3 | kernel-source | Analysis |
| SUSE Linux Enterprise Real Time 15 SP4 | kernel-source | Analysis |
| SUSE Linux Enterprise Real Time 15 SP4 | kernel-source-rt | Analysis |
| SUSE Linux Enterprise Real Time 15 SP5 | kernel-source-rt | Analysis |
| SUSE Linux Enterprise Server 11 SP4 | kernel-source | Analysis |
| SUSE Linux Enterprise Server 11 SP4-LTSS | kernel-source | Analysis |
| SUSE Linux Enterprise Server 15 SP1 | kernel-source | Analysis |
| SUSE Linux Enterprise Server 15 SP1-BCL | kernel-source | Analysis |
| SUSE Linux Enterprise Server 15 SP1-LTSS | kernel-default | Analysis |
| SUSE Linux Enterprise Server 15 SP1-LTSS | kernel-source | Analysis |
| SUSE Linux Enterprise Server 15 SP2 | kernel-source | Analysis |
| SUSE Linux Enterprise Server 15 SP2-BCL | kernel-source | Analysis |
| SUSE Linux Enterprise Server 15 SP2-LTSS | kernel-default | Analysis |
| SUSE Linux Enterprise Server 15 SP2-LTSS | kernel-source | Analysis |
| SUSE Linux Enterprise Server 15 SP3 | kernel-source | Analysis |
| SUSE Linux Enterprise Server 15 SP3-BCL | kernel-source | Analysis |
| SUSE Linux Enterprise Server 15 SP3-LTSS | kernel-default | Analysis |
| SUSE Linux Enterprise Server 15 SP3-LTSS | kernel-source | Analysis |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | kernel-source | Analysis |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | kernel-source | Analysis |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | kernel-source | Analysis |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | kernel-default | Analysis |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | kernel-source | Analysis |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | kernel-default | Analysis |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | kernel-source | Analysis |
| SUSE Manager Proxy 4.0 | kernel-source | Analysis |
| SUSE Manager Proxy 4.1 | kernel-source | Analysis |
| SUSE Manager Proxy 4.2 | kernel-source | Analysis |
| SUSE Manager Retail Branch Server 4.0 | kernel-source | Analysis |
| SUSE Manager Retail Branch Server 4.1 | kernel-source | Analysis |
| SUSE Manager Retail Branch Server 4.2 | kernel-source | Analysis |
| SUSE Manager Server 4.0 | kernel-source | Analysis |
| SUSE Manager Server 4.1 | kernel-source | Analysis |
| SUSE Manager Server 4.2 | kernel-source | Analysis |
| SUSE Real Time Module 15 SP4 | kernel-source-rt | Analysis |
| SUSE Real Time Module 15 SP5 | kernel-source-rt | Analysis |
| openSUSE Leap 15.3 | kernel-source | Analysis |
| openSUSE Leap 15.4 | kernel-source | Analysis |
| openSUSE Leap 15.4 | kernel-source-rt | Analysis |
| openSUSE Leap 15.5 | kernel-source | Analysis |
| openSUSE Leap 15.5 | kernel-source-rt | Analysis |
| openSUSE Leap 15.6 | kernel-source | Analysis |
SUSE Timeline for this CVE
CVE page created: Sun Jul 19 17:30:57 2026CVE page last modified: Tue Jul 21 17:35:07 2026