Use After Free The advisory has been revoked - it doesn't affect any version of package grub2  (opens in a new tab)


Threat Intelligence

EPSS
0.38% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-GRUB2-6592940
  • published9 Apr 2024
  • disclosed5 Apr 2024
  • creditUnknown

Introduced: 5 Apr 2024

CVE-2024-2312  (opens in a new tab)
CWE-416  (opens in a new tab)

Amendment

This was deemed not a vulnerability.

Overview

Affected versions of this package are vulnerable to Use After Free due to the improper handling of module finalization functions upon the exit command. Specifically, the failure to call module fini functions leads to the peimage module not releasing UEFI system table hooks properly. This potentially allows an attacker to bypass secure boot mechanisms by exploiting the lingering hooks.

Note:

This issue stems from Debian/Ubuntu's peimage grub2 module, the upstream Gnu grub2 is not affected.