CVE-2026-99342: KVM: x86/xen: Enforce 4-byte alignment of vcpu_info registration
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
KVM: x86/xen: Enforce 4-byte alignment of vcpu_info registration
Xen's map_guest_area() enforces that vcpu_info is aligned to sizeof(xen_ulong_t). KVM has no such check, allowing a guest to register vcpu_info at an arbitrary byte alignment.
Enforce unconditional 4-byte alignment regardless of the current shinfo mode. This is sufficient because subsequent commits ensure that all locked atomic operations on vcpu_info fields use at most 32-bit accesses. Return -ENXIO on failure, matching Xen's map_guest_area() behaviour for unaligned requests.
Originally observed in review of an unrelated patch:
https://lore.kernel.org/all/[email protected]/
The Linux kernel CVE team has assigned CVE-2026-99342 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.12 with commit 73e69a86347afe8156aa50c436fc192b280b0cd7 and fixed in 6.12.117 with commit 0381288c2fad72cdbe868216c179f6cbefc2ea01 Issue introduced in 5.12 with commit 73e69a86347afe8156aa50c436fc192b280b0cd7 and fixed in 6.18.61 with commit b7af8dc92af17e107d15360e62470ec862fa3d7f Issue introduced in 5.12 with commit 73e69a86347afe8156aa50c436fc192b280b0cd7 and fixed in 7.3.2 with commit ff7b7447397638c31200e87993589ea42d6f96ff Issue introduced in 5.12 with commit 73e69a86347afe8156aa50c436fc192b280b0cd7 and fixed in 7.4-rc1 with commit eacdb76c5f04956035c5d7f7e1973028f30684a2
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-99342
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/x86/kvm/xen.c
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/0381288c2fad72cdbe868216c179f6cbefc2ea01 https://git.kernel.org/stable/c/b7af8dc92af17e107d15360e62470ec862fa3d7f https://git.kernel.org/stable/c/ff7b7447397638c31200e87993589ea42d6f96ff https://git.kernel.org/stable/c/eacdb76c5f04956035c5d7f7e1973028f30684a2