Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98719 Overview
CVE-2026-98719 is a double-free vulnerability in the Linux kernel's Kernel-based Virtual Machine (KVM) subsystem, specifically within AMD Secure Encrypted Virtualization (SEV) guest initialization. The flaw resides in __sev_guest_init() and sev_vm_destroy(), where the have_run_cpus CPU mask pointer is freed without being nullified. When __sev_guest_init() fails and sev_vm_destroy() subsequently runs, the mask is freed a second time. The upstream fix nullifies the pointer on free and introduces a paired allocation helper to avoid relying on sev->active as an implicit free-state indicator.
Critical Impact
A double-free in the KVM SEV guest initialization error path can corrupt kernel heap state, enabling denial of service or potential privilege escalation on hosts running SEV-enabled virtual machines.
Affected Products
- Linux kernel (upstream) with KVM AMD SEV support enabled
- Distributions shipping affected mainline/stable kernel versions prior to the referenced fix commits
- Hosts configured with AMD SEV guests using KVM
Discovery Timeline
- 2026-10-18 - CVE-2026-98719 published to the National Vulnerability Database (NVD)
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98719
Vulnerability Analysis
The vulnerability affects the AMD SEV code path inside KVM, which tracks CPUs that have run a given SEV guest using a have_run_cpus cpumask. The destroy path in sev_vm_destroy() unconditionally frees this mask. When __sev_guest_init() fails after allocating the mask and frees it in its own error path, the pointer is left dangling. A later call to sev_vm_destroy() then frees the same memory a second time.
The fix nullifies have_run_cpus whenever the mask is released, so subsequent frees become no-ops. KVM no longer needs to use sev->active as an implicit indicator of allocation state. The change also introduces a dedicated allocation helper to pair with the free helper, consolidating lifecycle management across call sites.
Root Cause
The root cause is improper resource lifecycle tracking [CWE-415-class behavior]. The code relied on an indirect state variable rather than clearing the freed pointer, allowing the same cpumask allocation to be freed twice when initialization failed before the SEV context was marked inactive.
Attack Vector
Exploitation requires the ability to trigger SEV guest initialization on a vulnerable host, typically a local privileged workload or a tenant able to create KVM SEV virtual machines. Forcing a failure path in __sev_guest_init() followed by VM teardown reaches the double-free. Successful exploitation corrupts kernel heap metadata and can lead to host instability or kernel memory corruption primitives.
No verified public exploit code is available. Technical details are described in the upstream commits: kernel commit 0fbc7fec2242, kernel commit 8abbc76120a7, and kernel commit b1de3ebf5950.
Detection Methods for CVE-2026-98719
Indicators of Compromise
- Unexpected kernel oops or panic messages referencing sev_vm_destroy, __sev_guest_init, or cpumask free operations
- KASAN or SLUB debug reports flagging double-free or use-after-free on cpumask allocations in the KVM AMD module
- Repeated VM creation failures on SEV-enabled hosts followed by host instability
Detection Strategies
- Enable CONFIG_KASAN and CONFIG_SLUB_DEBUG on test hosts to catch double-free conditions in KVM SEV code paths during QA
- Audit the running kernel version against the fixed stable commits referenced in the NVD advisory
- Monitor dmesg and journald for KVM subsystem warnings on hosts that provision AMD SEV guests
Monitoring Recommendations
- Collect kernel ring buffer logs centrally and alert on KVM, SEV, or cpumask-related panics
- Track SEV guest creation success and failure rates to detect abnormal spikes that could indicate exploitation attempts
- Correlate host crash events with recent SEV VM lifecycle operations across the hypervisor fleet
How to Mitigate CVE-2026-98719
Immediate Actions Required
- Apply the upstream Linux stable kernel updates containing the referenced fix commits as soon as distribution packages are available
- Inventory hosts with AMD SEV enabled and prioritize patching those first
- Restrict the ability to create SEV guests to trusted administrators and workloads until patches are deployed
Patch Information
The fix is applied in the Linux kernel via commits 0fbc7fec2242, 8abbc76120a7, and b1de3ebf5950. The patches nullify the have_run_cpus pointer when the cpumask is freed and introduce a paired allocator helper. Consult your Linux distribution's security tracker for backported package versions.
Workarounds
- Disable AMD SEV guest creation on hosts where the feature is not actively required until patches are installed
- Avoid conditions that force __sev_guest_init() to fail, such as low memory pressure, on SEV-enabled hypervisors
- Reboot after applying the kernel update to ensure the patched KVM AMD module is loaded
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

