CVE Catalog

CVE-2025-1125

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.37%

29th percentile - higher than 29% of all known CVEs

Summary

In the GRUB HFS+ module, an integer overflow vulnerability occurs when calculating buffer sizes based on user-controlled filesystem metadata. This can lead to allocating a smaller buffer than needed and subsequent out-of-bounds write in the hfsplus_open_compressed_real() function.

Risk Assessment

An attacker could exploit this vulnerability to corrupt GRUB's internal critical data, potentially leading to arbitrary code execution and bypassing Secure Boot protections.

Recommendation

Immediately update GRUB to a patched version that fixes this vulnerability and re-sign the GRUB binaries for Secure Boot.

Other vulnerabilities in GRUB

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS