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.
History

Wed, 05 Mar 2025 20:30:00 +0000

Type Values Removed Values Added
References

Tue, 04 Mar 2025 03:45:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 03 Mar 2025 14:30:00 +0000

Type Values Removed Values Added
Title grub2: fs/hfs: Integer overflow may lead to heap based out-of-bounds write Grub2: fs/hfs: integer overflow may lead to heap based out-of-bounds write
First Time appeared Redhat
Redhat enterprise Linux
Redhat openshift
CPEs cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat openshift
References

Tue, 25 Feb 2025 02:30:00 +0000

Type Values Removed Values Added
Description No description is available for this CVE. 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.

Wed, 19 Feb 2025 14:00:00 +0000

Type Values Removed Values Added
Description No description is available for this CVE.
Title grub2: fs/hfs: Integer overflow may lead to heap based out-of-bounds write
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate


cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published: 2025-03-03T14:16:13.252Z

Updated: 2025-03-05T20:12:58.286Z

Reserved: 2025-02-07T20:34:30.777Z

Link: CVE-2025-1125

cve-icon Vulnrichment

Updated: 2025-03-03T15:11:40.193Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-03-03T15:15:16.300

Modified: 2025-03-05T21:15:19.707

Link: CVE-2025-1125

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-02-18T18:00:00Z

Links: CVE-2025-1125 - Bugzilla