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

Published Feb 17, 2025
·
Updated

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 grubstrcpy() 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.

Other sources

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 grubstrcpy() function. During this step it fails to consider the environment variable length when allocating the internal buffer, resulting in a out-of-bounds write. If correctly exploited this issue may result in remote code execution through the same network segment the grub is searching for the boot information, which can be used to by-pass secure boot protections.

Red Hat

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

Microsoft

Affected Software

4 affected componentsFixes available
GNU GRUB2
Microsoft cbl2 grub2 2.06-14
Microsoft azl3 grub2 2.06-24
Microsoft cm2 grub2 2.06-14

Event History

Feb 17, 2025
Data Sourced
via Red Hat·02:37 PM
DescriptionSeverityAffected Software
Feb 19, 2025
CVE Published
via MITRE·06:23 PM
Data Sourced
via MITRE·06:23 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Jul 11, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-0624?

CVE-2025-0624 has been classified as a high severity vulnerability due to the potential for exploitation during the network boot process.

2

How do I fix CVE-2025-0624?

To fix CVE-2025-0624, update your GNU GRUB 2 to the latest version that addresses this vulnerability.

3

What type of vulnerability is CVE-2025-0624?

CVE-2025-0624 is a buffer overflow vulnerability caused by inadequate length checking on environment variables during the network boot process.

4

Who is affected by CVE-2025-0624?

CVE-2025-0624 affects all versions of GNU GRUB 2 that utilize the grub_strcpy() function during the boot configuration process.

5

What are the potential impacts of CVE-2025-0624?

The potential impacts of CVE-2025-0624 include arbitrary code execution, system compromise, or denial of service during network boot operations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203