Skip to main content
← All vulnerabilities
CVE-2025-0622

Grub2: command/gpg: use-after-free due to hooks not being removed on module unload

Published
Last modified
published
Not listed in CISA KEV
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

A flaw was found in command/gpg. In some scenarios, hooks created by loaded modules are not removed when the related module is unloaded. This flaw allows an attacker to force grub2 to call the hooks once the module that registered it was unloaded, leading to a use-after-free vulnerability. If correctly exploited, this vulnerability may result in arbitrary code execution, eventually allowing the attacker to bypass secure boot protections.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • grub2

    through 2.12

  • grub2

    Version range not reported

  • grub2

    Version range not reported

  • grub2

    Version range not reported

  • grub2

    Version range not reported

  • openshift/ose-rhel-coreos-9

    Version range not reported

References 5

access.redhat.com

bugzilla.redhat.com

lists.gnu.org