{"id":"CVE-2025-1125","published":"2025-03-03T14:16:13Z","modified":"2026-11-24T06:25:14Z","title":"Grub2: fs/hfs: integer overflow may lead to heap based out-of-bounds write","vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00416,"percentile":0.27587,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2025-1125","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2346138","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html","tags":[]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":5.52},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":null,"product":null,"versions":["<= 2.12"]}],"workarounds":{"items":["Do not run grub2 in an untrusted environment, specifically with a HFS file system image."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-03-03T15:11:35.948515Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-5597","exploited":false,"provenance":"source"}}