A flaw was found in edk2. Function GetEfiGlobalVariable2() return value is not checked possibly leading to secure boot bypass if an attacker can cause the API to fail. References: https://bugzilla.tianocore.org/show_bug.cgi?id=2167
Created edk2 tracking bugs for this issue: Affects: epel-all [bug 1858039] Affects: fedora-all [bug 1858040]
Proposed patch: https://bugzilla.tianocore.org/attachment.cgi?id=405&action=diff
In function DxeImageVerificationHandler() there is a call to GetEfiGlobalVariable2 (EFI_SECURE_BOOT_MODE_NAME, ...) but the return value is not checked. If an attacker is able to cause the API to fail it would allow him to bypass secure boot.