CVE-2025-0677 Details
Description
A flaw was found in grub2. When performing a symlink lookup, the grub's UFS module checks the inode's data size to allocate the internal buffer to read the file content, however, it fails to check if the symlink data size has overflown. When this occurs, grub_malloc() may be called with a smaller value than needed. When further reading the data from the disk into the buffer, the grub_ufs_lookup_symlink() function will write past the end of the allocated size. An attack can leverage this by crafting a malicious filesystem, and as a result, it will corrupt data stored in the heap, allowing for arbitrary code execution used to by-pass secure boot mechanisms.
A vulnerability exists in the Grub2 bootloader, specifically within the UFS module's symlink handling. The issue arises because the module does not properly validate the size of symlink data, allowing for an integer overflow. This oversight can lead to a heap-based out-of-bounds write, where the 'grub_ufs_lookup_symlink()' function writes beyond the allocated buffer size. Such a flaw can be exploited by creating a malicious filesystem, potentially corrupting heap data and enabling arbitrary code execution. This executed code could be used to bypass Secure Boot protections.
Users can upgrade to Red Hat Enterprise Linux 9, where this vulnerability has been addressed. For details on how to apply this update, refer to the Red Hat Enterprise Linux 9 Release Notes.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 19, 2025CISA-ADP
Assessed Feb 19, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2025:16154 | [email protected] | |
| https://access.redhat.com/errata/RHSA-2025:6990 | [email protected] | AdvisoryBundleRemedyVendor |
| https://access.redhat.com/security/cve/CVE-2025-0677 | [email protected] | AdvisoryVendor |
| https://bugzilla.redhat.com/show_bug.cgi?id=2346116 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html | [email protected] |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Red Hat grub2 | All versions |
CPE
Remediation
| |
| Red Hat Enterprise Linux | All versions |
CPE
Remediation
| |
Change History
11 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Modified | [email protected] |
| Oct 21, 2026 | CVE Modified | [email protected] |
| Oct 21, 2026 | CVE Modified | [email protected] |
| Jun 30, 2026 | CVE Modified | [email protected] |
| Jun 25, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 24, 2026 | CVE Modified | [email protected] |
| Sep 18, 2025 | CVE Modified | [email protected] |
| May 13, 2025 | CVE Modified | [email protected] |
| Feb 19, 2025 | New CVE Received | [email protected] |
Volerion