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

- Severity: Medium 6.4 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2025-02-18T19:26:13.082Z
- Modified: 2026-11-24T07:17:16.760Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- grub2: up to 2.12 (not affected: from 1:2.12-15.el10_0 before *; from 1:2.06-104.el9_6 before *)
- openshift/ose-rhel-coreos-9: no versions given

## References

- <https://access.redhat.com/errata/RHSA-2025:16154> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:6990> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2025-0622> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2345865> (issue-tracking)
- <https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html>

## Sources

- CVE List: [CVE-2025-0622](https://www.cve.org/CVERecord?id=CVE-2025-0622), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2025-0622](https://nvd.nist.gov/vuln/detail/CVE-2025-0622), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2025-0622 · Whole record: https://cve.day/CVE-2025-0622.json · Rebuilt by cve.day 2026-11-25T22:58:54.160Z
