Skip to content

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

MediumCVSS 6.4 EPSS 0.28%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebianRed Hat

Description

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.

Affected products

ProductAffected versionsFixed in
debian/grub2(Debian:12) < 2.06-13+deb12u2 2.06-13+deb12u2
debian/grub2(Debian:12) = 2.06-13 No fix listed
debian/grub2(Debian:12) = 2.06-13+deb12u1 No fix listed
debian/grub2(Debian:13) < 2.12-6 2.12-6
debian/grub2(Debian:14) < 2.12-6 2.12-6
grub2 <= 2.12 No fix listed
redhat enterprise linux < 1:2.12-15.el10_0 1:2.12-15.el10_0
redhat enterprise linux < 1:2.06-104.el9_6 1:2.06-104.el9_6
redhat rhel els = 7 No fix listed
redhat enterprise linux = 8 No fix listed
redhat openshift All versions No fix listed
ubuntu/grub2-signed(Ubuntu:22.04) All versions No fix listed
ubuntu/grub2-unsigned(Ubuntu:22.04) All versions No fix listed
ubuntu/grub2-signed(Ubuntu:24.04) All versions No fix listed
ubuntu/grub2-unsigned(Ubuntu:24.04) All versions No fix listed
ubuntu/grub2-signed(Ubuntu:26.04) All versions No fix listed
ubuntu/grub2-unsigned(Ubuntu:26.04) All versions No fix listed
ubuntu/grub2-signed(Ubuntu:26.10) All versions No fix listed
ubuntu/grub2-unsigned(Ubuntu:26.10) All versions No fix listed

References