CVE-2024-2312 Use after free in Debian based GNU GRUB

Medium 6.7 Published Updated

A use-after-free in GRUB2's peimage module allows attackers to bypass Secure Boot by leaving UEFI system table hooks active after exit.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-2312?

CVE-2024-2312 is a medium-severity use after free vulnerability in Netapp Bootstrap Os, published on 5 Apr 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-416

Which versions are affected by CVE-2024-2312?

It affects 2 products.

Linux distribution packages (22)
shim SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions16.1-150300.4.31.3
shim SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions16.1-150300.4.31.3
shim SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSAll versions16.1-150300.4.31.3
shim SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSSAll versions16.1-150300.4.31.3
shim SUSE:Linux Enterprise Micro 5.2All versions16.1-150300.4.31.3
shim SUSE:Linux Enterprise Micro 5.3All versions16.1-150300.4.31.3
shim SUSE:Linux Enterprise Micro 5.4All versions16.1-150300.4.31.3
shim SUSE:Linux Enterprise Micro 5.5All versions16.1-150300.4.31.3
shim SUSE:Linux Enterprise Module for Basesystem 15 SP7All versions16.1-150300.4.31.3
shim SUSE:Linux Enterprise Server 12 SP5-LTSSAll versions16.1-25.34.1
shim SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions16.1-150300.4.31.3
shim SUSE:Linux Enterprise Server 15 SP5-LTSSAll versions16.1-150300.4.31.3
shim SUSE:Linux Enterprise Server 15 SP6-LTSSAll versions16.1-150300.4.31.3
shim SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5All versions16.1-25.34.1
shim SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions16.1-150300.4.31.3
shim SUSE:Linux Enterprise Server for SAP Applications 15 SP5All versions16.1-150300.4.31.3
shim SUSE:Linux Enterprise Server for SAP Applications 15 SP6All versions16.1-150300.4.31.3
shim SUSE:Linux Micro 6.0All versions16.1-1.1
shim SUSE:Linux Micro 6.1All versions16.1-slfo.1.1_1.1
shim SUSE:Linux Micro 6.2All versions16.1-160000.1.1
shim openSUSE:Leap 15.6All versions16.1-150300.4.31.3
shim openSUSE:Leap 16.0All versions16.1-160000.1.1

Products include Gnu Grub2, Netapp Bootstrap Os.

How do I fix CVE-2024-2312?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-2312 being exploited?

There is no known exploitation of CVE-2024-2312 in the wild and no public exploit code.

All Netapp Bootstrap Os vulnerabilities

Sources

Also known as DEBIAN-CVE-2024-2312, GHSA-975v-wj6r-fgj8, SUSE-RU-2026:20004-1, SUSE-RU-2026:20056-1, SUSE-RU-2026:20683-1, SUSE-SU-2026:0741-1 and 4 more.

Is CVE-2024-2312 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free