CVE-2025-1125 Details
Description
When reading data from a hfs filesystem, grub's hfs filesystem module uses user-controlled parameters from the filesystem metadata to calculate the internal buffers size, however it misses to properly check for integer overflows. A maliciouly crafted filesystem may lead some of those buffer size calculation to overflow, causing it to perform a grub_malloc() operation with a smaller size than expected. As a result the hfsplus_open_compressed_real() function will write past of the internal buffer length. This flaw may be leveraged to corrupt grub's internal critical data and may result in arbitrary code execution by-passing secure boot protections.
A vulnerability exists in the HFS filesystem module of GNU GRUB, where user-controlled metadata is used to calculate buffer sizes without proper validation, allowing for integer overflow. This flaw can be exploited by crafting a malicious filesystem that causes buffer size calculations to overflow, leading to a heap-based out-of-bounds write. Such exploitation could corrupt GRUB's critical internal data and potentially allow arbitrary code execution, bypassing Secure Boot protections.
Users can mitigate this vulnerability by not running GRUB2 in untrusted environments, specifically with HFS filesystem images.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 3, 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/security/cve/CVE-2025-1125 | [email protected] | Third Party Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2346138 | [email protected] | Issue TrackingThird Party Advisory |
| https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html | [email protected] | Mailing ListVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gnu grub2 | <= 2.12 |
CPE
Remediation
| |
Change History
12 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 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 |
| Jan 8, 2026 | CVE Modified | [email protected] |
| Aug 12, 2025 | CVE Modified | [email protected] |
| Jul 31, 2025 | Reanalysis | [email protected] |
| Jul 31, 2025 | Initial Analysis | [email protected] |
| Mar 5, 2025 | CVE Modified | [email protected] |
| Mar 3, 2025 | New CVE Received | [email protected] |