Skip to main content

Linux Kernel KVM EUVDEUVD-2026-40979

| CVE-2026-53345 MEDIUM
Memory Leak (CWE-401)
2026-07-01 Linux GHSA-m28w-5q4v-5m48
5.5
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI
5.5 MEDIUM

Local vector confirmed by kernel context; PR:L reflects KVM device group membership requirement; A:H reflects memory leak DoS; no C or I impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE
2.5 LOW
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

5
Analysis Generated
Jul 22, 2026 - 20:47 vuln.today
CVSS changed
Jul 22, 2026 - 19:22 NVD
5.5 (MEDIUM)
Patch available
Jul 01, 2026 - 15:16 EUVD
CVE Published
Jul 01, 2026 - 13:32 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 01, 2026 - 13:32 nvd
MEDIUM 5.5

DescriptionNVD

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

KVM: Don't WARN if memory is dirtied without a vCPU when the VM is dying

When marking a page dirty, complain about not having a running/loaded vCPU if and only if the VM is still alive, i.e. its refcount is non-zero. This will allow fixing a memory leak for x86 SEV-ES guests without hitting what is effectively a false positive on the WARN.

For some SEV-ES VM-Exits, KVM keeps a writable mapping of a guest page across an exit to userspace, and typically unmaps the page on the next KVM_RUN. But if userspace never calls KVM_RUN after such an exit, then KVM needs to unmap the page when the vCPU is destroyed, which in turn triggers the WARN about not having a running vCPU.

Alternatively, SEV-ES could temporarily load the vCPU to suppress the WARN, as is done in nested_vmx_free_vcpu() (but for completely unrelated reasons; suppressing WARN from nested_put_vmcs12_pages() is pure happenstance). But loading a vCPU during destruction is gross (ideally nVMX code would be cleaned up), risks complicating the SEV-ES code (KVM would need to ensure the temporarily load()+put() only runs when the vCPU isn't already loaded), and is ultimately pointless.

The motivation for the WARN is to guard against KVM dirtying guest memory without pushing the corresponding GFN to the active vCPU's dirty ring, e.g. to ensure userspace doesn't miss a dirty page. But for the VM's refcount to reach zero, there can't be _any_ userspace mappings to the dirty ring, as mapping the dirty ring requires doing mmap() on the vCPU FD. I.e. if userspace had a valid mapping for the dirty ring, then the vCPU file and thus the owning VM would still be alive. And so since userspace can't possibly reach the dirty ring, whether or not KVM technically "misses" a push to the dirty ring is irrelevant.

AnalysisAI

Memory leak in the Linux kernel KVM subsystem exposes x86 SEV-ES (Secure Encrypted Virtualization-Encrypted State) guest environments to resource exhaustion when userspace terminates a VM without calling KVM_RUN after a VM-Exit. KVM retains writable page mappings across exits to userspace for certain SEV-ES VM-Exits, and when vCPU destruction must release these mappings, the kernel incorrectly emits a WARN about dirtying memory without a running vCPU - masking the real defect and complicating the fix. No public exploit exists and EPSS is 0.16% (5th percentile), placing this firmly as a low-exploitation-probability availability defect; patches are confirmed across multiple stable kernel branches.

Technical ContextAI

The affected component is the KVM (Kernel-based Virtual Machine) hypervisor subsystem within the Linux kernel, specifically the dirty page tracking path and the vCPU lifecycle management for AMD SEV-ES guests. SEV-ES is an AMD EPYC feature that encrypts CPU register state, requiring KVM to maintain writable guest-page mappings across certain VM-Exits to handle shared state. The root cause (CWE-401: Missing Release of Memory after Effective Lifetime) is that these writable mappings are not released if userspace terminates without re-entering via KVM_RUN; the cleanup path in vCPU destruction then fires, but a WARN guard checks for a running vCPU unconditionally, treating the dying-VM teardown as an error condition and obscuring the leak. The fix conditions the WARN on VM refcount being non-zero, permitting safe page release during destruction. CPE cpe:2.3:a:linux:linux:* covers the full kernel tree; only configurations using KVM with SEV-ES guests on AMD EPYC hardware trigger the defect.

RemediationAI

The primary fix is to upgrade the Linux kernel to a patched stable release: 6.6.143 or later for the 6.6.x branch, 6.12.94 or later for 6.12.x, 6.18.36 or later for 6.18.x, 7.0.13 or later for 7.0.x, or 7.1 for the 7.x series. Upstream fix commits are available at https://git.kernel.org/stable/c/033d39e41fc30f484f4e4f37fb4cd76b12cbb18e, https://git.kernel.org/stable/c/66a8e7ddd901023c89a2733494d827eca3f9c1b0, https://git.kernel.org/stable/c/343e95c8ecc40e0738975ef4ee24c0c35e800e6b, https://git.kernel.org/stable/c/99d7d43784ae3235026581e9bf892c036e04c8e6, and https://git.kernel.org/stable/c/8618004d3e897c0f1b71d9a9ab860461289bb89a. If immediate patching is infeasible, a compensating control is to restrict access to the KVM device (/dev/kvm) to trusted administrators only, reducing the population of users who can create SEV-ES guests; this does not eliminate the vulnerability but limits exposure. Disabling SEV-ES guest support eliminates the vulnerable code path entirely, though this prevents use of AMD memory encryption for guests. No kernel parameter or runtime toggle exists to suppress the leak without patching.

Vendor StatusVendor

SUSE

Severity: Low
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 16.0 Affected

Share

EUVD-2026-40979 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy