CVE-2026-63940: KVM: SEV: Ignore Port I/O requests of length '0'
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
KVM: SEV: Ignore Port I/O requests of length '0'
Explicitly ignore Port I/O requests of length '0' (or count '0'), so that setting up the software scratch area (and other code) doesn't have to worry about underflowing the length, and to allow for WARNing on trying to configure the scratch area with len==0.
The Linux kernel CVE team has assigned CVE-2026-63940 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.11 with commit 291bd20d5d88814a73d43b55b9428feab2f28094 and fixed in 6.12.95 with commit 3b6035bc6bff20e89752ce4358bc4c9a9d5883f2 Issue introduced in 5.11 with commit 291bd20d5d88814a73d43b55b9428feab2f28094 and fixed in 6.18.35 with commit 2254972d4d69e279ba4e87bf0968eb08ad0d3c92 Issue introduced in 5.11 with commit 291bd20d5d88814a73d43b55b9428feab2f28094 and fixed in 7.0.12 with commit c30cde934c7813b4e3069765dac64ce3d31e34f2 Issue introduced in 5.11 with commit 291bd20d5d88814a73d43b55b9428feab2f28094 and fixed in 7.1 with commit 3988bd2723de407ae90fa7a6f6029b4e60238c58
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-63940
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/svm/sev.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/3b6035bc6bff20e89752ce4358bc4c9a9d5883f2 https://git.kernel.org/stable/c/2254972d4d69e279ba4e87bf0968eb08ad0d3c92 https://git.kernel.org/stable/c/c30cde934c7813b4e3069765dac64ce3d31e34f2 https://git.kernel.org/stable/c/3988bd2723de407ae90fa7a6f6029b4e60238c58