Bug 1222868 (CVE-2024-2312)

Summary: VUL-0: CVE-2024-2312: grub2: grub-efi crashes upon `exit`
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Bootloader Maintainers <bootloader-maintainers>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: mchang, rfrohl
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/400528/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-2312:6.7:(AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-04-16 07:12:33 UTC
GRUB2 does not call the module fini functions on exit, leading to Debian/Ubuntu's peimage GRUB2 module leaving UEFI system table hooks after exit. This lead to a use-after-free condition, and could possibly lead to secure boot bypass.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-2312
https://www.cve.org/CVERecord?id=CVE-2024-2312
https://bugs.launchpad.net/ubuntu/+source/grub2-unsigned/+bug/2054127
https://bugzilla.redhat.com/show_bug.cgi?id=2273912