CVE-2024-25742: Medium severity IBM Security Verify Governance vulnerability
A vulnerability was found in AMD SEV-SNP (named "WeSee"), in this flaw, the hypervisor can inject a malicious #VC into a CPU that is executing a SEV-SNP VM at any time. Specifically, the hypervisor has the ability to inject external interrupts to the CPUs, including #VC which is yet another exception.
It is seen that SEV-SNP invokes the #VC exception handler in the VM without checking the authenticity of the root cause. Specifically, the VC handler does not check if the VM indeed executed an instruction that would legitimately cause the CPU to generate a #VC exception.
The VC handler performs sensitive operations of copying data between the VM and the hypervisor to emulate the semantics of the instruction that generated the #VC. The handler is programmed to be bug-free and has checks to defend against Iago attacks, i.e., it clears all registers and performs checks on the data values provided by the hypervisor before it uses them as per AMD specifications [14]. However, it is not programmed to defend against #VC that is maliciously injected by the hypervisor. Worse yet, each malicious #VC injection tricks the handler into emulating an instruction that either writes attacker-controlled data to the VM or leaks sensitive VM data to the hypervisor.
References: https://www.amd.com/en/resources/product-security/bulletin/amd-sb-3008.html https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=e3ef461af35a8c74f2f4ce6616491ddb355a208f https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=f35e46631b28a63ca3887d7afef1a65a5544da52 https://arxiv.org/html/2404.03526v1
Other sources
In the Linux kernel before 6.9, an untrusted hypervisor can inject virtual interrupt 29 (#VC) at any point in time and can trigger its handler. This affects AMD SEV-SNP and AMD SEV-ES.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-25742?
CVE-2024-25742 is a high-severity vulnerability that affects AMD SEV-SNP by allowing the hypervisor to potentially inject malicious interrupts.
How do I fix CVE-2024-25742?
To mitigate CVE-2024-25742, users should upgrade to the fixed version of the linux package, specifically versions above 6.12.11-1.
Which software is affected by CVE-2024-25742?
CVE-2024-25742 affects the linux package from Debian, specifically versions up to 5.10.226-1 and 6.1.123-1.
What does CVE-2024-25742 allow an attacker to do?
CVE-2024-25742 allows an attacker with hypervisor access to inject external interrupts, potentially compromising the security of SEV-SNP virtual machines.
Is CVE-2024-25742 related to AMD SEV-SNP technology?
Yes, CVE-2024-25742 is specifically a vulnerability found in AMD SEV-SNP technology affecting virtual machine operations.