# CVE-2024-2312: GRUB2 does not call the module fini functions on exit, leading to Debian/Ubuntu's peimage GRUB2 module leaving UEFI system table hooks afte…

- Severity: Medium 6.7 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 26% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-04-05T19:40:02.848Z
- Modified: 2026-06-17T07:24:17.663Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: canonical

## 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.

(As written by CVE List.)

## Affected

- grub2: before 2.12-1ubuntu5
- gnu grub2: before 2.12-1ubuntu5
- netapp bootstrap_os: no versions given

## References

- <https://bugs.launchpad.net/ubuntu/+source/grub2-unsigned/+bug/2054127> (exploit, issue-tracking, patch)
- <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-2312> (issue-tracking, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20240426-0003/> (third-party-advisory)

## Sources

- CVE List: [CVE-2024-2312](https://www.cve.org/CVERecord?id=CVE-2024-2312), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2024-2312](https://nvd.nist.gov/vuln/detail/CVE-2024-2312), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-2312 · Whole record: https://cve.day/CVE-2024-2312.json · Rebuilt by cve.day 2026-11-25T22:58:38.813Z
