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-98638 Overview
CVE-2026-98638 is a Linux kernel vulnerability in the KVM (Kernel-based Virtual Machine) subsystem for ARM64 platforms. The flaw resides in pkvm_vcpu_init_sve(), which handles Scalable Vector Extension (SVE) initialization for protected KVM guests. The function clamps only the upper bound of the host-provided sve_max_vl value, allowing an invalid vector length to reach sve_state_size_from_vl(). This triggers a WARN_ON() that is fatal at Exception Level 2 (EL2). The kernel maintainers resolved the issue by validating the vector length with sve_vl_valid() before deriving the SVE state size.
Critical Impact
An invalid SVE vector length passed from the host causes a fatal condition at EL2, where the protected KVM hypervisor executes, leading to denial of service of the virtualization layer.
Affected Products
- Linux kernel builds including KVM arm64 protected-mode (pKVM) with SVE support
- Stable kernel branches referenced by fix commits 2a2eb10, bae3e44, and faf66e5
- ARM64 systems where KVM guests use the Scalable Vector Extension
Discovery Timeline
- 2026-10-18 - CVE-2026-98638 published to the National Vulnerability Database
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98638
Vulnerability Analysis
The vulnerability affects pkvm_vcpu_init_sve() in the ARM64 KVM subsystem. The function accepts a host-provided SVE maximum vector length (sve_max_vl) when initializing a virtual CPU with SVE support. Before the fix, the function only clamped the upper bound of this value and did not confirm that the resulting length represented a valid SVE vector length according to the architecture rules.
An invalid vector length then propagated into sve_state_size_from_vl(), which contains a WARN_ON() guard against malformed inputs. In protected KVM mode, this warning executes at Exception Level 2 (EL2), where the hypervisor runs isolated from the host kernel. A WARN_ON() at EL2 is fatal and halts the hypervisor path, affecting guest execution and system stability. The pre-existing !sve_state_size check caught zero-size results, but only after the warning had already fired.
Root Cause
The root cause is missing input validation on the SVE vector length before it is used in size calculations. The code enforced an upper bound but did not call sve_vl_valid() to confirm the length conformed to permitted SVE vector sizes. This is an input validation defect in a trust boundary between the host kernel and the protected hypervisor at EL2.
Attack Vector
The vulnerability requires local access with privileges to invoke KVM virtual CPU initialization paths with a crafted sve_max_vl value. A privileged process on the host, or a compromised host kernel component capable of calling the pKVM initialization interface, can supply an unaligned or otherwise invalid SVE vector length. The resulting fatal condition at EL2 disrupts virtualization services on the affected system.
The fix adds an sve_vl_valid() check prior to computing the state size. A valid length cannot produce a zero size, so the previously redundant !sve_state_size test was removed as part of the patch. See the upstream commits 2a2eb10, bae3e44, and faf66e5 for the full patch content.
Detection Methods for CVE-2026-98638
Indicators of Compromise
- Kernel log entries containing WARN_ON or panic messages originating from sve_state_size_from_vl() or pkvm_vcpu_init_sve().
- Unexpected EL2 faults or hypervisor crashes on ARM64 hosts running protected KVM guests.
- Virtual machine initialization failures tied to SVE-enabled guest configuration.
Detection Strategies
- Compare installed kernel versions against the stable trees that include commits 2a2eb10, bae3e44, and faf66e5.
- Audit workloads that configure SVE for KVM guests and review which processes can invoke pKVM vCPU initialization.
- Monitor dmesg and system journals for warnings in KVM arm64 initialization paths.
Monitoring Recommendations
- Forward kernel log and dmesg output to a centralized log platform for alerting on KVM arm64 warnings.
- Track host stability metrics on ARM64 hypervisor fleets, including unexpected guest termination events.
- Alert on repeated failed vCPU initialization attempts from the same workload or tenant.
How to Mitigate CVE-2026-98638
Immediate Actions Required
- Apply the stable kernel updates referenced by commits 2a2eb10, bae3e44, and faf66e5 to all ARM64 hosts running KVM.
- Restrict local privileged access on ARM64 hypervisor hosts, since exploitation requires the ability to initialize KVM vCPUs.
- Validate guest configurations that enable SVE and confirm vector length values are architecturally valid.
Patch Information
The fix adds sve_vl_valid() validation inside pkvm_vcpu_init_sve() before the SVE state size is derived. Rebuild or install stable kernels containing the three referenced commits. Distribution-maintained kernels will inherit the fix as backports land in supported branches.
Workarounds
- Disable SVE exposure to KVM guests on affected ARM64 hosts until patches are deployed, where guest workloads tolerate it.
- Limit access to the KVM device interface (/dev/kvm) to trusted administrative users only.
- Avoid running untrusted virtualization management tooling on unpatched ARM64 hypervisors.
# Verify running kernel version on ARM64 hosts
uname -r
# Check installed kernel package against distribution advisories
# Example (Debian/Ubuntu):
apt list --installed 2>/dev/null | grep linux-image
# Restrict access to the KVM device as an interim hardening step
chown root:kvm /dev/kvm
chmod 0660 /dev/kvm
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

