CVE-2025-0622
Grub2: command/gpg: use-after-free due to hooks not being removed on module unload
- State
- Published
- Severity
- 6.4 Medium
- Published
- Feb 18, 2025
- Updated
- Oct 21, 2026
- Reserved
- Jan 21, 2025
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 6.4 Medium | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H | redhat |
Weaknesses
- CWE-416 Use After Free
Affected Products
| Product | Versions |
|---|---|
grub2 |
|
Red Hat Enterprise Linux 10Red Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Enterprise Linux 7Red Hat | |
Red Hat Enterprise Linux 8Red Hat | |
Red Hat OpenShift Container Platform 4Red Hat |
References
- RHSA-2025:16154vendor-advisory
- RHSA-2025:6990vendor-advisory
- https://access.redhat.com/security/cve/CVE-2025-0622vdb-entry
- RHBZ#2345865issue-tracking
- https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.