CVE-2025-0624

Grub2: net: out-of-bounds write in grub_net_search_config_file()

7.6 high EPSS 1.24%

Published 19 Feb 2025 Updated 23 Nov 2026 CNA: redhat

Check your servers for CVE-2025-0624

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-0624 affects grub2, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

A flaw was found in grub2. During the network boot process, when trying to search for the configuration file, grub copies data from a user controlled environment variable into an internal buffer using the grub_strcpy() function. During this step, it fails to consider the environment variable length when allocating the internal buffer, resulting in an out-of-bounds write. If correctly exploited, this issue may result in remote code execution through the same network segment grub is searching for the boot information, which can be used to by-pass secure boot protections.

Severity (CVSS)

7.6 high CVSS 3.1 from redhat (CNA)
CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
Attack vector
adjacent: the attacker has to be on the same local network or link
Attack complexity
high: an attack depends on conditions outside the control of the attacker, such as a race
Privileges required
high: the attacker needs an administrative account
User interaction
none: nobody has to click or open anything
Scope
changed: the damage reaches other components, such as the host of a container or other users
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 1.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 69.2% of all scored CVEs. Scores of 29 Nov 2026.

The assessment of CISA (SSVC, 19 Sep 2025):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

Affected products

As the CNA lists them.

ProductVersions
grub2
package grub2
affected up to and including 2.12
Other versions: unaffected
Red Hat Enterprise Linux 7 Extended Lifecycle Support
package grub2
unaffected 1:2.02-0.87.el7_9.15 and later
Other versions: affected
Red Hat Enterprise Linux 8
package grub2
unaffected 1:2.02-162.el8_10 and later
Other versions: affected
Red Hat Enterprise Linux 8.2 Advanced Update Support
package grub2
unaffected 1:2.02-87.el8_2.13 and later
Other versions: affected
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
package grub2
unaffected 1:2.02-99.el8_4.12 and later
Other versions: affected
Red Hat Enterprise Linux 8.4 Telecommunications Update Service
package grub2
unaffected 1:2.02-99.el8_4.12 and later
Other versions: affected
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
package grub2
unaffected 1:2.02-99.el8_4.12 and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
package grub2
unaffected 1:2.02-123.el8_6.18 and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Telecommunications Update Service
package grub2
unaffected 1:2.02-123.el8_6.18 and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
package grub2
unaffected 1:2.02-123.el8_6.18 and later
Other versions: affected
Red Hat Enterprise Linux 8.8 Extended Update Support
package grub2
unaffected 1:2.02-152.el8_8.2 and later
Other versions: affected
Red Hat Enterprise Linux 9
package grub2
unaffected 1:2.06-94.el9_5 and later
Other versions: affected
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
package grub2
unaffected 1:2.06-27.el9_0.22 and later
Other versions: affected
Red Hat Enterprise Linux 9.2 Extended Update Support
package grub2
unaffected 1:2.06-61.el9_2.10 and later
Other versions: affected
Red Hat Enterprise Linux 9.4 Extended Update Support
package grub2
unaffected 1:2.06-86.el9_4.2 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.12
package openshift/ose-rhel-coreos-8
unaffected 412.86.202503310142-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.13
package openshift/ose-rhel-coreos-9
unaffected 413.92.202504070146-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.14
package openshift/ose-rhel-coreos-9
unaffected 414.92.202505141057-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.15
package openshift/ose-rhel-coreos-9
unaffected 415.92.202504282058-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.16
package openshift/ose-rhel-coreos-9
unaffected 416.94.202503252048-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.17
package openshift/ose-rhel-coreos-9
unaffected 417.94.202503241418-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package openshift/ose-rhel-coreos-9
unaffected 418.94.202504021150-0 and later
Other versions: affected
Red Hat Enterprise Linux 10
package grub2
unaffected the record does not list versions

Is my server affected?

Find the installed version of grub2 and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i grub2
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-0624 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-0624

RHEL, Rocky, Alma, Fedora

rpm -q grub2
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-0624

Alpine

apk list --installed | grep -i grub2

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-0624
trivy image --scanners vuln IMAGE | grep CVE-2025-0624

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

7 more

Other references

Source: the record CVE-2025-0624 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.