CVEfocus › CVE database › CVE-2025-0622

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

CVSS 6.4 MediumEPSS 0.3% (higher than 16% of CVEs)Published 2025-02-18Updated 2026-11-24Assigner: redhat

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.

CWE-416

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

57Fixed
8Fix pending
6Under investigation
44Will not fix
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10grub2-signedFix pendingUBUNTU-CVE-2025-0622
Ubuntu 26.10grub2-unsignedFix pendingUBUNTU-CVE-2025-0622
Ubuntu 26.04grub2Not affected
vulnerable_code_not_present
Ubuntu 26.04grub2-signedUnder investigationUBUNTU-CVE-2025-0622
Ubuntu 26.04grub2-unsignedUnder investigationUBUNTU-CVE-2025-0622
Ubuntu 25.10grub2Not affected
vulnerable_code_not_present
Ubuntu 25.10grub2-signedWill not fix
the grub2 package does not affect Ubuntu's Secure Boot grub2-unsigned contains Secure Boot security fixes grub2 and grub2-unsigned should have same major…
UBUNTU-CVE-2025-0622
Ubuntu 25.10grub2-unsignedWill not fix
the grub2 package does not affect Ubuntu's Secure Boot grub2-unsigned contains Secure Boot security fixes grub2 and grub2-unsigned should have same major…
UBUNTU-CVE-2025-0622
Ubuntu 24.04grub2Not affected
vulnerable_code_not_present
Ubuntu 24.04grub2-signedUnder investigationUBUNTU-CVE-2025-0622
Ubuntu 24.04grub2-unsignedUnder investigationUBUNTU-CVE-2025-0622
Ubuntu 22.04grub2Not affected
vulnerable_code_not_present
Ubuntu 22.04grub2-signedUnder investigationUBUNTU-CVE-2025-0622
Ubuntu 22.04grub2-unsignedUnder investigationUBUNTU-CVE-2025-0622
Ubuntu 20.04grub2Not affected
vulnerable_code_not_present
Ubuntu 20.04grub2-signedWill not fix
the grub2 package does not affect Ubuntu's Secure Boot grub2-unsigned contains Secure Boot security fixes grub2 and grub2-unsigned should have same major…
UBUNTU-CVE-2025-0622
Ubuntu 20.04grub2-unsignedWill not fix
the grub2 package does not affect Ubuntu's Secure Boot grub2-unsigned contains Secure Boot security fixes grub2 and grub2-unsigned should have same major…
UBUNTU-CVE-2025-0622
Ubuntu 18.04grub2-signedFix pendingUBUNTU-CVE-2025-0622
Ubuntu 18.04grub2-unsignedFix pendingUBUNTU-CVE-2025-0622
Ubuntu 16.04grub2-signedFix pendingUBUNTU-CVE-2025-0622
Ubuntu 16.04grub2-unsignedFix pendingUBUNTU-CVE-2025-0622
Ubuntu 14.04grub2Fix pendingUBUNTU-CVE-2025-0622
Ubuntu 14.04grub2-signedFix pendingUBUNTU-CVE-2025-0622
Debian 14grub2Fixed2.12-6DEBIAN-CVE-2025-0622
Debian 13grub2Fixed2.12-6DEBIAN-CVE-2025-0622
Debian 12grub2Fixed2.06-13+deb12u2DEBIAN-CVE-2025-0622
Red Hat Enterprise Linux 10grub2Fixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 10grub2-commonFixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 10grub2-efi-aa64Fixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 10grub2-efi-aa64-cdbootFixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 10grub2-efi-aa64-modulesFixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 10grub2-efi-x64Fixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 10grub2-efi-x64-cdbootFixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 10grub2-efi-x64-modulesFixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 10grub2-pcFixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 10grub2-pc-modulesFixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 10grub2-ppc64leFixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 10grub2-ppc64le-modulesFixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 10grub2-toolsFixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 10grub2-tools-efiFixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 10grub2-tools-extraFixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 10grub2-tools-minimalFixed1:2.12-15.el10_0RHSA-2025:16154
Red Hat Enterprise Linux 9grub2Fixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 9grub2-commonFixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 9grub2-efi-aa64Fixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 9grub2-efi-aa64-cdbootFixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 9grub2-efi-aa64-modulesFixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 9grub2-efi-x64Fixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 9grub2-efi-x64-cdbootFixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 9grub2-efi-x64-modulesFixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 9grub2-pcFixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 9grub2-pc-modulesFixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 9grub2-ppc64leFixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 9grub2-ppc64le-modulesFixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 9grub2-toolsFixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 9grub2-tools-efiFixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 9grub2-tools-extraFixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 9grub2-tools-minimalFixed1:2.06-104.el9_6RHSA-2025:6990
Red Hat Enterprise Linux 8grub2Will not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-efi-aa64Will not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-efi-aa64-cdbootWill not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-efi-aa64-modulesWill not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-efi-ia32Will not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-efi-ia32-cdbootWill not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-efi-ia32-modulesWill not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-efi-x64Will not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-efi-x64-cdbootWill not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-efi-x64-modulesWill not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-pcWill not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-pc-modulesWill not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-ppc64leWill not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-ppc64le-modulesWill not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-toolsWill not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-tools-efiWill not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-tools-extraWill not fix
Out of support scope
Red Hat Enterprise Linux 8grub2-tools-minimalWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2Will not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-efiWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-efi-aa64-modulesWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-efi-ia32Will not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-efi-ia32-cdbootWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-efi-ia32-modulesWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-efi-modulesWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-efi-x64Will not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-efi-x64-cdbootWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-efi-x64-modulesWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-pcWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-pc-modulesWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-ppc-modulesWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-ppc64Will not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-ppc64-modulesWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-ppc64leWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-ppc64le-modulesWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-toolsWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-tools-extraWill not fix
Out of support scope
Red Hat Enterprise Linux 7grub2-tools-minimalWill not fix
Out of support scope
AlmaLinux 10grub2-commonFixed1:2.12-15.el10_0.alma.1ALSA-2025:16154
AlmaLinux 10grub2-efi-aa64-modulesFixed1:2.12-15.el10_0.alma.1ALSA-2025:16154
AlmaLinux 10grub2-efi-x64-modulesFixed1:2.12-15.el10_0.alma.1ALSA-2025:16154
AlmaLinux 10grub2-pc-modulesFixed1:2.12-15.el10_0.alma.1ALSA-2025:16154
AlmaLinux 10grub2-ppc64le-modulesFixed1:2.12-15.el10_0.alma.1ALSA-2025:16154
AlmaLinux 9grub2-commonFixed1:2.06-104.el9_6.alma.1ALSA-2025:6990
AlmaLinux 9grub2-efi-aa64Fixed1:2.06-104.el9_6.alma.1ALSA-2025:6990
AlmaLinux 9grub2-efi-aa64-cdbootFixed1:2.06-104.el9_6.alma.1ALSA-2025:6990
AlmaLinux 9grub2-efi-aa64-modulesFixed1:2.06-104.el9_6.alma.1ALSA-2025:6990
AlmaLinux 9grub2-efi-x64Fixed1:2.06-104.el9_6.alma.1ALSA-2025:6990
AlmaLinux 9grub2-efi-x64-cdbootFixed1:2.06-104.el9_6.alma.1ALSA-2025:6990
AlmaLinux 9grub2-efi-x64-modulesFixed1:2.06-104.el9_6.alma.1ALSA-2025:6990
AlmaLinux 9grub2-pcFixed1:2.06-104.el9_6.alma.1ALSA-2025:6990
AlmaLinux 9grub2-pc-modulesFixed1:2.06-104.el9_6.alma.1ALSA-2025:6990
AlmaLinux 9grub2-ppc64leFixed1:2.06-104.el9_6.alma.1ALSA-2025:6990
AlmaLinux 9grub2-ppc64le-modulesFixed1:2.06-104.el9_6.alma.1ALSA-2025:6990
AlmaLinux 9grub2-toolsFixed1:2.06-104.el9_6.alma.1ALSA-2025:6990
AlmaLinux 9grub2-tools-efiFixed1:2.06-104.el9_6.alma.1ALSA-2025:6990
AlmaLinux 9grub2-tools-extraFixed1:2.06-104.el9_6.alma.1ALSA-2025:6990
AlmaLinux 9grub2-tools-minimalFixed1:2.06-104.el9_6.alma.1ALSA-2025:6990
Rocky Linux 10grub2Fixed1:2.12-15.el10_0RLSA-2025:16154
Rocky Linux 9grub2Fixed1:2.06-104.el9_6RLSA-2025:6990

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.