CVE Monitoring DEENSign in

← Back to overview

CVE-2025-0622

6.4 · Medium

Grub2: command/gpg: use-after-free due to hooks not being removed on module unload – 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

ProductVendorSources
Enterprise Linux 10Red HatCVE.org
Enterprise Linux 7Red HatCVE.org
Enterprise Linux 8Red HatCVE.org
Enterprise Linux 9Red HatCVE.org
OpenShift Container Platform 4Red HatCVE.org

Normalised: without version constraints and vendor prefix, unified spelling. Affected versions are listed in the original sources.

Description per source

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

CVE.org
Grub2: command/gpg: use-after-free due to hooks not being removed on module unload – 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.

SourceReferenceScorePublishedUpdatedLink
NVDCVE-2025-06226.4 2025-02-18 21:152026-11-24 08:17Open ↗
CVE.orgCVE-2025-06226.4 2025-02-18 20:262026-11-24 07:24Open ↗