Skip to content

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

HighCVSS 7.6 EPSS 1.4%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

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.

Upgrade path

22 packages: 14 fixed, 8 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/grub2-signed(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/grub2-signed(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/grub2-signed(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/grub2-signed(Ubuntu 26.10) All versions No fix listed No fix yet
ubuntu/grub2-unsigned(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/grub2-unsigned(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/grub2-unsigned(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/grub2-unsigned(Ubuntu 26.10) All versions No fix listed No fix yet
azure linux grub2(Azure Linux 3.0) < 2.06-24 2.06-24 Fixed
cbl-mariner grub2(CBL-Mariner 2.0) < 2.06-14 2.06-14 Fixed
debian/grub2(Debian 12) < 2.06-13+deb12u2; = 2.06-13; = 2.06-13+deb12u1 2.06-13+deb12u2 Fixed
debian/grub2(Debian 13) < 2.12-6 2.12-6 Fixed
debian/grub2(Debian 14) < 2.12-6 2.12-6 Fixed
grub2 <= 2.12 after 2.12 Fixed
Microsoft cm2 grub2 2.06-14 < 2.06-14 2.06-14 Fixed
redhat enterprise linux < 1:2.02-162.el8_10; < 1:2.06-94.el9_5; = 10 1:2.02-162.el8_10, 1:2.06-94.el9_5 Fixed
redhat openshift < 412.86.202503310142-0; < 413.92.202504070146-0; < 414.92.202505141057-0; < 415.92.202504282058-0 +3 more 412.86.202503310142-0, 413.92.202504070146-0, 414.92.202505141057-0, 415.92.202504282058-0, 416.94.202503252048-0, 417.94.202503241418-0, 418.94.202504021150-0 Fixed
redhat rhel aus < 1:2.02-87.el8_2.13; < 1:2.02-99.el8_4.12; < 1:2.02-123.el8_6.18 1:2.02-87.el8_2.13, 1:2.02-99.el8_4.12, 1:2.02-123.el8_6.18 Fixed
redhat rhel e4s < 1:2.02-99.el8_4.12; < 1:2.02-123.el8_6.18; < 1:2.06-27.el9_0.22 1:2.02-99.el8_4.12, 1:2.02-123.el8_6.18, 1:2.06-27.el9_0.22 Fixed
redhat rhel els < 1:2.02-0.87.el7_9.15 1:2.02-0.87.el7_9.15 Fixed
redhat rhel eus < 1:2.02-152.el8_8.2; < 1:2.06-61.el9_2.10; < 1:2.06-86.el9_4.2 1:2.02-152.el8_8.2, 1:2.06-61.el9_2.10, 1:2.06-86.el9_4.2 Fixed
redhat rhel tus < 1:2.02-99.el8_4.12; < 1:2.02-123.el8_6.18 1:2.02-99.el8_4.12, 1:2.02-123.el8_6.18 Fixed

Affected products

ProductAffected versionsFixed in
Microsoft cm2 grub2 2.06-14 < 2.06-14 2.06-14
azure linux grub2(Azure Linux:3.0) < 2.06-24 2.06-24
cbl-mariner grub2(CBL-Mariner:2.0) < 2.06-14 2.06-14
debian/grub2(Debian:12) < 2.06-13+deb12u2 2.06-13+deb12u2
debian/grub2(Debian:12) = 2.06-13 No fix listed
debian/grub2(Debian:12) = 2.06-13+deb12u1 No fix listed
debian/grub2(Debian:13) < 2.12-6 2.12-6
debian/grub2(Debian:14) < 2.12-6 2.12-6
grub2 <= 2.12 No fix listed
redhat rhel els < 1:2.02-0.87.el7_9.15 1:2.02-0.87.el7_9.15
redhat enterprise linux < 1:2.02-162.el8_10 1:2.02-162.el8_10
redhat rhel aus < 1:2.02-87.el8_2.13 1:2.02-87.el8_2.13
redhat rhel aus < 1:2.02-99.el8_4.12 1:2.02-99.el8_4.12
redhat rhel e4s < 1:2.02-99.el8_4.12 1:2.02-99.el8_4.12
redhat rhel tus < 1:2.02-99.el8_4.12 1:2.02-99.el8_4.12
redhat rhel aus < 1:2.02-123.el8_6.18 1:2.02-123.el8_6.18
redhat rhel e4s < 1:2.02-123.el8_6.18 1:2.02-123.el8_6.18
redhat rhel tus < 1:2.02-123.el8_6.18 1:2.02-123.el8_6.18
redhat rhel eus < 1:2.02-152.el8_8.2 1:2.02-152.el8_8.2
redhat enterprise linux < 1:2.06-94.el9_5 1:2.06-94.el9_5
redhat rhel e4s < 1:2.06-27.el9_0.22 1:2.06-27.el9_0.22
redhat rhel eus < 1:2.06-61.el9_2.10 1:2.06-61.el9_2.10
redhat rhel eus < 1:2.06-86.el9_4.2 1:2.06-86.el9_4.2
redhat openshift < 412.86.202503310142-0 412.86.202503310142-0
redhat openshift < 413.92.202504070146-0 413.92.202504070146-0
Show 14 more
ProductAffected versionsFixed in
redhat openshift < 414.92.202505141057-0 414.92.202505141057-0
redhat openshift < 415.92.202504282058-0 415.92.202504282058-0
redhat openshift < 416.94.202503252048-0 416.94.202503252048-0
redhat openshift < 417.94.202503241418-0 417.94.202503241418-0
redhat openshift < 418.94.202504021150-0 418.94.202504021150-0
redhat enterprise linux = 10 No fix listed
ubuntu/grub2-signed(Ubuntu:22.04) All versions No fix listed
ubuntu/grub2-unsigned(Ubuntu:22.04) All versions No fix listed
ubuntu/grub2-signed(Ubuntu:24.04) All versions No fix listed
ubuntu/grub2-unsigned(Ubuntu:24.04) All versions No fix listed
ubuntu/grub2-signed(Ubuntu:26.04) All versions No fix listed
ubuntu/grub2-unsigned(Ubuntu:26.04) All versions No fix listed
ubuntu/grub2-signed(Ubuntu:26.10) All versions No fix listed
ubuntu/grub2-unsigned(Ubuntu:26.10) All versions No fix listed

References