CVE Vulnerabilities

CVE-2024-2312

Use After Free

Published: Apr 05, 2024 | Modified: Aug 26, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
6.7 MODERATE
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

GRUB2 does not call the module fini functions on exit, leading to Debian/Ubuntus 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

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

NameVendorStart VersionEnd Version
Grub2Gnu*2.12-1ubuntu5 (excluding)
Grub2Ubuntubionic*
Grub2Ubuntuesm-infra-legacy/trusty*
Grub2Ubuntutrusty*
Grub2Ubuntutrusty/esm*
Grub2Ubuntuxenial*
Grub2-signedUbuntubionic*
Grub2-signedUbuntudevel*
Grub2-signedUbuntuesm-infra-legacy/trusty*
Grub2-signedUbuntumantic*
Grub2-signedUbuntunoble*
Grub2-signedUbuntuoracular*
Grub2-signedUbuntutrusty*
Grub2-signedUbuntutrusty/esm*
Grub2-signedUbuntuxenial*
Grub2-unsignedUbuntubionic*
Grub2-unsignedUbuntudevel*
Grub2-unsignedUbuntumantic*
Grub2-unsignedUbuntunoble*
Grub2-unsignedUbuntuoracular*
Grub2-unsignedUbuntutrusty*
Grub2-unsignedUbuntuxenial*

Potential Mitigations

References