CVE-2026-98470: KVM: arm64: Don't WARN on an unknown VM ioctl in protected mode
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
KVM: arm64: Don't WARN on an unknown VM ioctl in protected mode
kvm_pkvm_ioctl_allowed() WARNs when kvm_get_cap_for_kvm_ioctl() doesn't find the ioctl number in vm_ioctl_caps[], and kvm_arch_vm_ioctl() calls it for every number the generic code doesn't handle, so ioctl(vm_fd, 0xdeadbeef) from userspace taints a pKVM host and panics it under panic_on_warn. The lookup is fed userspace input: return false, and userspace gets the -EINVAL kvm_arch_vm_ioctl() returns for that number on a host without pKVM.
The Linux kernel CVE team has assigned CVE-2026-98470 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.0 with commit b12b3b04f6ba072ca5a618a75e546c996be94bd1 and fixed in 7.2.9 with commit cc53eb5c6515e3221314624a22c9da9c80a67f63 Issue introduced in 7.0 with commit b12b3b04f6ba072ca5a618a75e546c996be94bd1 and fixed in 7.3-rc5 with commit 49d9d295d69d07e850cae35933ba8519e2915f26
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98470
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
arch/arm64/include/asm/kvm_pkvm.h
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/cc53eb5c6515e3221314624a22c9da9c80a67f63 https://git.kernel.org/stable/c/49d9d295d69d07e850cae35933ba8519e2915f26