CVE-2025-0624Grub2: net: out-of-bounds write in grub_net_search_config_file()
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | grub2-signed | Fix pending | UBUNTU-CVE-2025-0624 | |
| Ubuntu 26.10 | grub2-unsigned | Fix pending | UBUNTU-CVE-2025-0624 | |
| Ubuntu 26.04 | grub2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | grub2-signed | Under investigation | UBUNTU-CVE-2025-0624 | |
| Ubuntu 26.04 | grub2-unsigned | Under investigation | UBUNTU-CVE-2025-0624 | |
| Ubuntu 25.10 | grub2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | grub2-signed | Will 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-0624 | |
| Ubuntu 25.10 | grub2-unsigned | Will 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-0624 | |
| Ubuntu 24.04 | grub2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | grub2-signed | Under investigation | UBUNTU-CVE-2025-0624 | |
| Ubuntu 24.04 | grub2-unsigned | Under investigation | UBUNTU-CVE-2025-0624 | |
| Ubuntu 22.04 | grub2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | grub2-signed | Under investigation | UBUNTU-CVE-2025-0624 | |
| Ubuntu 22.04 | grub2-unsigned | Under investigation | UBUNTU-CVE-2025-0624 | |
| Ubuntu 20.04 | grub2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | grub2-signed | Will 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-0624 | |
| Ubuntu 20.04 | grub2-unsigned | Will 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-0624 | |
| Ubuntu 18.04 | grub2-signed | Fix pending | UBUNTU-CVE-2025-0624 | |
| Ubuntu 18.04 | grub2-unsigned | Fix pending | UBUNTU-CVE-2025-0624 | |
| Ubuntu 16.04 | grub2-signed | Fix pending | UBUNTU-CVE-2025-0624 | |
| Ubuntu 16.04 | grub2-unsigned | Fix pending | UBUNTU-CVE-2025-0624 | |
| Ubuntu 14.04 | grub2 | Fix pending | UBUNTU-CVE-2025-0624 | |
| Ubuntu 14.04 | grub2-signed | Fix pending | UBUNTU-CVE-2025-0624 | |
| Debian 14 | grub2 | Fixed | 2.12-6 | DEBIAN-CVE-2025-0624 |
| Debian 13 | grub2 | Fixed | 2.12-6 | DEBIAN-CVE-2025-0624 |
| Debian 12 | grub2 | Fixed | 2.06-13+deb12u2 | DEBIAN-CVE-2025-0624 |
| Red Hat Enterprise Linux 10 | grub2 | Not affected | ||
| Red Hat Enterprise Linux 10 | grub2-common | Not affected | ||
| Red Hat Enterprise Linux 10 | grub2-efi-aa64 | Not affected | ||
| Red Hat Enterprise Linux 10 | grub2-efi-aa64-cdboot | Not affected | ||
| Red Hat Enterprise Linux 10 | grub2-efi-aa64-modules | Not affected | ||
| Red Hat Enterprise Linux 10 | grub2-efi-x64 | Not affected | ||
| Red Hat Enterprise Linux 10 | grub2-efi-x64-cdboot | Not affected | ||
| Red Hat Enterprise Linux 10 | grub2-efi-x64-modules | Not affected | ||
| Red Hat Enterprise Linux 10 | grub2-pc | Not affected | ||
| Red Hat Enterprise Linux 10 | grub2-pc-modules | Not affected | ||
| Red Hat Enterprise Linux 10 | grub2-ppc64le | Not affected | ||
| Red Hat Enterprise Linux 10 | grub2-ppc64le-modules | Not affected | ||
| Red Hat Enterprise Linux 10 | grub2-tools | Not affected | ||
| Red Hat Enterprise Linux 10 | grub2-tools-efi | Not affected | ||
| Red Hat Enterprise Linux 10 | grub2-tools-extra | Not affected | ||
| Red Hat Enterprise Linux 10 | grub2-tools-minimal | Not affected | ||
| Red Hat Enterprise Linux 9 | grub2 | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 9 | grub2-common | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 9 | grub2-efi-aa64 | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 9 | grub2-efi-aa64-cdboot | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 9 | grub2-efi-aa64-modules | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 9 | grub2-efi-x64 | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 9 | grub2-efi-x64-cdboot | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 9 | grub2-efi-x64-modules | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 9 | grub2-pc | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 9 | grub2-pc-modules | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 9 | grub2-ppc64le | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 9 | grub2-ppc64le-modules | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 9 | grub2-tools | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 9 | grub2-tools-efi | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 9 | grub2-tools-extra | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 9 | grub2-tools-minimal | Fixed | 1:2.06-94.el9_5 | RHSA-2025:2867 |
| Red Hat Enterprise Linux 8 | grub2 | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-common | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-efi-aa64 | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-efi-aa64-cdboot | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-efi-aa64-modules | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-efi-ia32 | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-efi-ia32-cdboot | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-efi-ia32-modules | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-efi-x64 | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-efi-x64-cdboot | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-efi-x64-modules | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-pc | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-pc-modules | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-ppc64le | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-ppc64le-modules | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-tools | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-tools-efi | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-tools-extra | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| Red Hat Enterprise Linux 8 | grub2-tools-minimal | Fixed | 1:2.02-162.el8_10 | RHSA-2025:3367 |
| AlmaLinux 9 | grub2-common | Fixed | 1:2.06-94.el9_5.alma.1 | ALSA-2025:2867 |
| AlmaLinux 9 | grub2-efi-aa64 | Fixed | 1:2.06-94.el9_5.alma.1 | ALSA-2025:2867 |
| AlmaLinux 9 | grub2-efi-aa64-cdboot | Fixed | 1:2.06-94.el9_5.alma.1 | ALSA-2025:2867 |
| AlmaLinux 9 | grub2-efi-aa64-modules | Fixed | 1:2.06-94.el9_5.alma.1 | ALSA-2025:2867 |
| AlmaLinux 9 | grub2-efi-x64 | Fixed | 1:2.06-94.el9_5.alma.1 | ALSA-2025:2867 |
| AlmaLinux 9 | grub2-efi-x64-cdboot | Fixed | 1:2.06-94.el9_5.alma.1 | ALSA-2025:2867 |
| AlmaLinux 9 | grub2-efi-x64-modules | Fixed | 1:2.06-94.el9_5.alma.1 | ALSA-2025:2867 |
| AlmaLinux 9 | grub2-pc | Fixed | 1:2.06-94.el9_5.alma.1 | ALSA-2025:2867 |
| AlmaLinux 9 | grub2-pc-modules | Fixed | 1:2.06-94.el9_5.alma.1 | ALSA-2025:2867 |
| AlmaLinux 9 | grub2-ppc64le | Fixed | 1:2.06-94.el9_5.alma.1 | ALSA-2025:2867 |
| AlmaLinux 9 | grub2-ppc64le-modules | Fixed | 1:2.06-94.el9_5.alma.1 | ALSA-2025:2867 |
| AlmaLinux 9 | grub2-tools | Fixed | 1:2.06-94.el9_5.alma.1 | ALSA-2025:2867 |
| AlmaLinux 9 | grub2-tools-efi | Fixed | 1:2.06-94.el9_5.alma.1 | ALSA-2025:2867 |
| AlmaLinux 9 | grub2-tools-extra | Fixed | 1:2.06-94.el9_5.alma.1 | ALSA-2025:2867 |
| AlmaLinux 9 | grub2-tools-minimal | Fixed | 1:2.06-94.el9_5.alma.1 | ALSA-2025:2867 |
| AlmaLinux 8 | grub2-common | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-efi-aa64 | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-efi-aa64-cdboot | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-efi-aa64-modules | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-efi-ia32 | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-efi-ia32-cdboot | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-efi-ia32-modules | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-efi-x64 | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-efi-x64-cdboot | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-efi-x64-modules | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-pc | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-pc-modules | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-ppc64le | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-ppc64le-modules | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-tools | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-tools-efi | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-tools-extra | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| AlmaLinux 8 | grub2-tools-minimal | Fixed | 1:2.02-162.el8_10.alma.1 | ALSA-2025:3367 |
| Rocky Linux 9 | grub2 | Fixed | 1:2.06-94.el9_5 | RLSA-2025:2867 |
| Rocky Linux 8 | grub2 | Fixed | 1:2.02-162.el8_10.rocky.0.1 | RLSA-2025:3367 |
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.
- grub2: affected: up to 2.12
- Red Hat Enterprise Linux 7 Extended Lifecycle Support
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 8.2 Advanced Update Support
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.4 Telecommunications Update Service
- Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.6 Telecommunications Update Service
- Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.8 Extended Update Support
- Red Hat Enterprise Linux 9
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:
- https://access.redhat.com/errata/RHSA-2025:2521 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:2653 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:2655 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:2675 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:2784 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:2799 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2025:2521
- https://access.redhat.com/errata/RHSA-2025:2653
- https://access.redhat.com/errata/RHSA-2025:2655
- https://access.redhat.com/errata/RHSA-2025:2675
- https://access.redhat.com/errata/RHSA-2025:2784
- https://access.redhat.com/errata/RHSA-2025:2799
- https://access.redhat.com/errata/RHSA-2025:2867
- https://access.redhat.com/errata/RHSA-2025:2869
- https://access.redhat.com/errata/RHSA-2025:3297
- https://access.redhat.com/errata/RHSA-2025:3301
- https://access.redhat.com/errata/RHSA-2025:3367
- https://access.redhat.com/errata/RHSA-2025:3396
- https://access.redhat.com/errata/RHSA-2025:3573
- https://access.redhat.com/errata/RHSA-2025:3577
- https://access.redhat.com/errata/RHSA-2025:3780
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.