Use After Free Affecting grub2-pc package, versions <1:2.06-104.el9_6


Severity

Recommended
0.0
medium
0
10

Based on Rocky Linux security rating.

Threat Intelligence

EPSS
0.28% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ROCKY9-GRUB2PC-13288004
  • published5 Oct 2025
  • disclosed18 Feb 2025

Introduced: 18 Feb 2025

CVE-2025-0622  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade Rocky-Linux:9 grub2-pc to version 1:2.06-104.el9_6 or higher.
This issue was patched in RLSA-2025:6990.

NVD Description

Note: Versions mentioned in the description apply only to the upstream grub2-pc package and not the grub2-pc package as distributed by Rocky-Linux. See How to fix? for Rocky-Linux:9 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1