---
id: CVE-2025-0689
title: >-
  When reading data from disk, the grub's UDF filesystem module utilizes the
  user controlled data length metadata to allocate its internal buffers
summary: >-
  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 t…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-120
vendor: gnu
product: grub2
affected:
  - grub2 <= 2.12
published: '2025-03-03'
updated: '2026-06-25'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-0689'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2025-0689'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2346122'
    label: secalert@redhat.com
  - url: 'https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html'
    label: secalert@redhat.com
tags:
  - nvd
  - cve.org
epss: 0.00498
epssPercentile: 0.4247
ingestedAt: '2026-06-29T13:24:34.178Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2025-03-03T15:08:10.060966Z'
---

## Overview

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.

## Affected

- `grub2 <= 2.12`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
