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

Published Feb 14, 2025
·
Updated

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.

Other sources

In some scenarios hooks created by loaded modules are not being removed when the related module is being unloaded. An attacker may leverage this by forcing the grub2 to call the hooks once the module which 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 by-pass secure boot protections.

Red Hat

Affected Software

1 affected component
GNU GRUB2

Event History

Feb 14, 2025
Data Sourced
via Red Hat·10:21 PM
DescriptionSeverityAffected Software
Feb 18, 2025
CVE Published
via MITRE·07:26 PM
Data Sourced
via MITRE·07:26 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-0622?

CVE-2025-0622 is classified as a use-after-free vulnerability, which can potentially allow attackers to execute arbitrary code.

2

How do I fix CVE-2025-0622?

To mitigate CVE-2025-0622, it is recommended to update to the latest version of GNU GRUB2 that addresses this vulnerability.

3

Which versions of GRUB2 are affected by CVE-2025-0622?

CVE-2025-0622 affects various versions of GNU GRUB2, specifically those that utilize modules with improperly managed hooks.

4

Can CVE-2025-0622 lead to remote code execution?

Yes, CVE-2025-0622 has the potential to lead to remote code execution if exploited by a malicious actor.

5

How can I check if my system is vulnerable to CVE-2025-0622?

You can check for vulnerability to CVE-2025-0622 by evaluating your installed version of GNU GRUB2 against security advisories.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203