
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-2296 is a Secure Boot bypass vulnerability in EDK2 (TianoCore) caused by improper input validation (CWE-20) in the BIOS firmware's direct boot mode. When Secure Boot is enabled and a Linux kernel's signature is not found in the DB, DxeImageVerification returns EFI_ACCESS_DENIED, but the code falls back to a legacy loader — effectively bypassing Secure Boot entirely. The vulnerability affects EDK2 versions up to and including edk2-stable202502, with the fix introduced in edk2-stable202505. It was published on December 9, 2025, with a CVSS v3.1 score of 8.2 (High) and a CVSS v4.0 score of 8.4 (High) (GitHub Advisory, Microsoft MSRC).
The root cause is improper input validation (CWE-20) in the QemuLoadKernelImage() function within OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c. When Secure Boot is active and DxeImageVerification denies loading an unsigned or improperly signed kernel image with EFI_ACCESS_DENIED, the code introduced in commit dafce29 (2020-06-06) falls back to a legacy kernel loader that does not enforce signature verification. This fallback path allows an attacker with high privileges and local access to load an unverified kernel, altering control flow in unexpected ways and enabling arbitrary command execution. The vulnerability specifically affects QEMU-based virtual machine environments using OvmfPkg, including Microsoft's CBL-Mariner (Azure Linux) distributions (GitHub Advisory).
Successful exploitation allows an attacker with high privileges to bypass Secure Boot protections and load an unsigned or malicious kernel image, leading to arbitrary command execution at the firmware/OS boundary. This results in a full compromise of confidentiality, integrity, and availability of the affected virtual machine. Because the attack subverts a foundational security control (Secure Boot), it can enable persistent implants, kernel-level rootkits, or complete takeover of the guest OS, with potential for lateral movement within virtualized infrastructure (GitHub Advisory, Microsoft MSRC).
-kernel parameter), which invokes QemuLoadKernelImage() in OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c.DxeImageVerification returns EFI_ACCESS_DENIED for the unsigned kernel, the vulnerable code falls back to the legacy loader, which loads the kernel without signature verification — bypassing Secure Boot.EFI_ACCESS_DENIED from DxeImageVerification followed immediately by a successful kernel load event — indicating the fallback path was triggered.-kernel direct boot invocations with kernel images not matching enrolled Secure Boot DB certificates.-kernel flags pointing to kernel binaries not signed by a trusted authority, combined with Secure Boot enabled in firmware settings.The upstream fix has been merged into EDK2 via pull request #10628, and the patched release is edk2-stable202505. Microsoft has released patches for affected Azure Linux (CBL-Mariner) packages: cbl2_edk2, azl3_edk2, cbl2_qemu, azl3_qemu, and cbl2_hvloader. Organizations should update to the patched EDK2 version and apply vendor-specific firmware/package updates promptly. As interim mitigations: restrict local and privileged access to systems running affected QEMU/EDK2 configurations, avoid using QEMU direct kernel boot mode (-kernel) in Secure Boot-enabled environments, and monitor for unauthorized kernel load events in firmware logs (GitHub Advisory, Microsoft MSRC).
The vulnerability received coverage from The Hacker Wire, which highlighted the Secure Boot bypass risk in EDK2-based BIOS environments (The Hacker Wire). A technical analysis was published by Gerd Hoffmann at kraxel.org, providing deeper insight into the fallback mechanism (Kraxel Blog). Community discussion appeared on Mastodon/infosec.exchange and Bluesky, with security researchers noting the significance of a Secure Boot bypass in virtualized environments. The openSUSE security mailing list and Yocto Project security list also circulated advisories, indicating broad awareness across Linux distribution communities.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."