CVE-2025-0689
grub2: udf: Heap based buffer overflow in grub_udf_read_block() may lead to arbitrary code execution
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · February 19, 2025
Updated · October 22, 2026
Description
When reading data from disk, the grub's UDF filesystem module utilizes the user controlled data length metadata to allocate its internal buffers. In certain scenarios, while iterating through disk sectors, it assumes the read size from the disk is always smaller than the allocated buffer size which is not guaranteed. A crafted filesystem image may lead to a heap-based buffer overflow resulting in critical data to be corrupted, resulting in the risk of arbitrary code execution by-passing secure boot protections.
Statement
To exploit this flaw, an attacker needs to trick a user into running grub2 with a specially crafted UDF file system image, limiting the exposure of this flaw. For this reason, this vulnerability has been rated with a Moderate severity.
The grub2 package as shipped in Red Hat Enterprise Linux 7, 8, 9 and in Red Hat OpenShift Container Platform 4 is not affected by this vulnerability because the UDF module is not built, so this issue is not applicable.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 7.8CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')