CVE-2025-1125: When reading data from a hfs filesystem, grub's hfs filesystem module uses user-controlled parameters from the
CVE-2025-1125 is a high-severity flaw (CVSS 7.8) affecting grub2. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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(
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.8 (High) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.5% (top 61%) |
| CISA exploited list | No |
| Weakness | CWE-787 |
| Published | 2025-03-03 |
| Last modified | 2026-10-21 |
Last updated 2026-10-21 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-1125?
grub2: upgrade to newer than 2.12. Exact commands for each OS are on this page.
Is CVE-2025-1125 being exploited?
CVE-2025-1125 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-1125 affect?
CVE-2025-1125 affects grub2. Severity is high (CVSS 7.8). 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 maliciou
How urgent is CVE-2025-1125?
Priority 37/100. High severity
Related CVEs
- CVE-2023-4693 MEDIUM 5.3 UPGRADE MITIGATE An out-of-bounds read flaw was found on grub2's NTFS filesystem driver
- CVE-2025-0689 HIGH 7.8 UPGRADE When reading data from disk, the grub's UDF filesystem module utilizes the user controlled data length metadat
- CVE-2025-0686 MEDIUM 6.4 UPGRADE A flaw was found in grub2
- CVE-2025-0685 MEDIUM 6.4 UPGRADE A flaw was found in grub2
- CVE-2025-0684 MEDIUM 6.4 UPGRADE A flaw was found in grub2