Grub2: udf: heap based buffer overflow in grub_udf_read_block() may lead to arbitrary code execution
Description
A heap-based buffer overflow in GRUB2's UDF filesystem module can be triggered by a crafted filesystem image, leading to arbitrary code execution and bypass of Secure Boot.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A heap-based buffer overflow in GRUB2's UDF filesystem module can be triggered by a crafted filesystem image, leading to arbitrary code execution and bypass of Secure Boot.
Vulnerability
A heap-based buffer overflow vulnerability exists in GRUB2's UDF filesystem module (grub_udf_read_block()). When reading data from disk, the module uses user-controlled data length metadata to allocate internal buffers. During iteration through disk sectors, it assumes the read size is always smaller than the allocated buffer size, but this assumption is not guaranteed. A crafted filesystem image can exploit this to cause a buffer overflow. Affected versions include all GRUB2 versions prior to the 2025-02-18 patch set [1][2][3].
Exploitation
An attacker with the ability to boot from a crafted UDF filesystem image (e.g., via physical access or in a multi-boot environment) can trigger the vulnerability. The attacker must provide a maliciously crafted filesystem image that causes the UDF module to read data from disk with a size exceeding the allocated buffer. No authentication or user interaction beyond booting from the image is required [3].
Impact
Successful exploitation allows arbitrary code execution within the GRUB2 environment, potentially bypassing Secure Boot protections. The attacker can corrupt critical data and execute arbitrary code, compromising system integrity and confidentiality. The vulnerability can be leveraged to install bootkits or persistent malware [2][3].
Mitigation
The vulnerability has been fixed in GRUB2 upstream via a patch set published on 2025-02-18 [1]. Full mitigation requires updated GRUB2, shim with the latest SBAT (Secure Boot Advanced Targeting) data, and vendor updates. UEFI revocation list (dbx) will not be used; revocation is done solely with SBAT. Users should apply vendor-provided updates when available [1][2].
AI Insight generated on May 24, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
30- osv-coords29 versionspkg:rpm/opensuse/grub2&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/grub2&distro=openSUSE%20Tumbleweedpkg:rpm/suse/grub2&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOSpkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSSpkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-ESPOSpkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-LTSSpkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20Micro%205.5pkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6pkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP6pkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-LTSSpkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSSpkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP5-LTSSpkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4pkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP5pkg:rpm/suse/grub2&distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5pkg:rpm/suse/grub2&distro=SUSE%20Linux%20Micro%206.0pkg:rpm/suse/grub2&distro=SUSE%20Linux%20Micro%206.1pkg:rpm/suse/grub2&distro=SUSE%20Manager%20Proxy%204.3pkg:rpm/suse/grub2&distro=SUSE%20Manager%20Proxy%20Module%204.3pkg:rpm/suse/grub2&distro=SUSE%20Manager%20Server%204.3pkg:rpm/suse/grub2&distro=SUSE%20Manager%20Server%20Module%204.3
< 2.12-150600.8.18.2+ 28 more
- (no CPE)range: < 2.12-150600.8.18.2
- (no CPE)range: < 2.12-35.1
- (no CPE)range: < 2.04-150300.22.52.3
- (no CPE)range: < 2.04-150300.22.52.3
- (no CPE)range: < 2.06-150400.11.55.2
- (no CPE)range: < 2.06-150400.11.55.2
- (no CPE)range: < 2.06-150500.29.43.2
- (no CPE)range: < 2.06-150500.29.43.2
- (no CPE)range: < 2.04-150300.3.11.1
- (no CPE)range: < 2.04-150300.22.52.3
- (no CPE)range: < 2.06-150400.11.55.2
- (no CPE)range: < 2.06-150400.11.55.2
- (no CPE)range: < 2.06-150500.29.43.2
- (no CPE)range: < 2.12-150600.8.18.2
- (no CPE)range: < 2.12-150600.8.18.2
- (no CPE)range: < 2.02-181.2
- (no CPE)range: < 2.04-150300.22.52.3
- (no CPE)range: < 2.06-150400.11.55.2
- (no CPE)range: < 2.06-150500.29.43.2
- (no CPE)range: < 2.04-150300.22.52.3
- (no CPE)range: < 2.06-150400.11.55.2
- (no CPE)range: < 2.06-150500.29.43.2
- (no CPE)range: < 2.02-181.2
- (no CPE)range: < 2.12~rc1-6.1
- (no CPE)range: < 2.12-slfo.1.1_2.1
- (no CPE)range: < 2.06-150400.11.55.2
- (no CPE)range: < 2.06-150400.11.55.2
- (no CPE)range: < 2.06-150400.11.55.2
- (no CPE)range: < 2.06-150400.11.55.2
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- access.redhat.com/security/cve/CVE-2025-0689mitrevdb-entryx_refsource_REDHAT
- bugzilla.redhat.com/show_bug.cgimitreissue-trackingx_refsource_REDHAT
- lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.htmlmitre
News mentions
0No linked articles in our index yet.