{"id":"CVE-2026-99342","state":"PUBLISHED","title":"KVM: x86/xen: Enforce 4-byte alignment of vcpu_info registration","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: x86/xen: Enforce 4-byte alignment of vcpu_info registration\n\nXen's map_guest_area() enforces that vcpu_info is aligned to\nsizeof(xen_ulong_t). KVM has no such check, allowing a guest to\nregister vcpu_info at an arbitrary byte alignment.\n\nEnforce unconditional 4-byte alignment regardless of the current\nshinfo mode. This is sufficient because subsequent commits ensure\nthat all locked atomic operations on vcpu_info fields use at most\n32-bit accesses. Return -ENXIO on failure, matching Xen's\nmap_guest_area() behaviour for unaligned requests.\n\nOriginally observed in review of an unrelated patch:\nhttps://lore.kernel.org/all/20260604193554.1BA311F00893@smtp.kernel.org/","publishedAt":"2026-11-19T14:21:50.243Z","updatedAt":"2026-11-19T14:35:58.257Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"73e69a86347afe8156aa50c436fc192b280b0cd7","status":"affected","lessThan":"0381288c2fad72cdbe868216c179f6cbefc2ea01","versionType":"git"},{"version":"73e69a86347afe8156aa50c436fc192b280b0cd7","status":"affected","lessThan":"b7af8dc92af17e107d15360e62470ec862fa3d7f","versionType":"git"},{"version":"73e69a86347afe8156aa50c436fc192b280b0cd7","status":"affected","lessThan":"ff7b7447397638c31200e87993589ea42d6f96ff","versionType":"git"},{"version":"73e69a86347afe8156aa50c436fc192b280b0cd7","status":"affected","lessThan":"eacdb76c5f04956035c5d7f7e1973028f30684a2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/kvm/xen.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.12","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/kvm/xen.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-11-19T14:42:06.048Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99342.json","commit":"ac44738435f10e6dbe2f4dd504cf13737f9cf963","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99342","state":"PUBLISHED","datePublished":"2026-11-19T14:21:50.243Z","dateUpdated":"2026-11-19T14:35:58.257Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.409Z"},"containers":{"cna":{"title":"KVM: x86/xen: Enforce 4-byte alignment of vcpu_info registration","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: x86/xen: Enforce 4-byte alignment of vcpu_info registration\n\nXen's map_guest_area() enforces that vcpu_info is aligned to\nsizeof(xen_ulong_t). KVM has no such check, allowing a guest to\nregister vcpu_info at an arbitrary byte alignment.\n\nEnforce unconditional 4-byte alignment regardless of the current\nshinfo mode. This is sufficient because subsequent commits ensure\nthat all locked atomic operations on vcpu_info fields use at most\n32-bit accesses. Return -ENXIO on failure, matching Xen's\nmap_guest_area() behaviour for unaligned requests.\n\nOriginally observed in review of an unrelated patch:\nhttps://lore.kernel.org/all/20260604193554.1BA311F00893@smtp.kernel.org/"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"73e69a86347afe8156aa50c436fc192b280b0cd7","status":"affected","lessThan":"0381288c2fad72cdbe868216c179f6cbefc2ea01","versionType":"git"},{"version":"73e69a86347afe8156aa50c436fc192b280b0cd7","status":"affected","lessThan":"b7af8dc92af17e107d15360e62470ec862fa3d7f","versionType":"git"},{"version":"73e69a86347afe8156aa50c436fc192b280b0cd7","status":"affected","lessThan":"ff7b7447397638c31200e87993589ea42d6f96ff","versionType":"git"},{"version":"73e69a86347afe8156aa50c436fc192b280b0cd7","status":"affected","lessThan":"eacdb76c5f04956035c5d7f7e1973028f30684a2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/kvm/xen.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.12","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/kvm/xen.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0381288c2fad72cdbe868216c179f6cbefc2ea01"},{"url":"https://git.kernel.org/stable/c/b7af8dc92af17e107d15360e62470ec862fa3d7f"},{"url":"https://git.kernel.org/stable/c/ff7b7447397638c31200e87993589ea42d6f96ff"},{"url":"https://git.kernel.org/stable/c/eacdb76c5f04956035c5d7f7e1973028f30684a2"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T14:35:58.257Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}