CVE-2026-99339: KVM: x86: Zero reserved synic flags when delivering message to avoid stack leak
In the Linux kernel, the following vulnerability has been resolved:
KVM: x86: Zero reserved synic flags when delivering message to avoid stack leak
Ensure all reserved flags are zeroed when setting the msgpending flag as part of SynIC message delivery, as setting only msgpending can leak seven bits of kernel stack data to the guest. E.g. gcc typically uses a bitwise-OR to set the msgpending flag, without initializing the on-stack variable.
Precisely zero the flags, e.g. as opposed to zeroing the entire structure, to make it somewhat more obvious that the flags need to be zeroed. E.g. it would be quite easy to misread the initial read of guest memory and think that zeroing the entire structure is completely superfluous.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Compensating control
When delivering a KVM x86 SynIC message, zero all reserved flags before setting the msg_pending flag; do not rely on zeroing the entire structure.