← Vulnerability feed

Vulnerability record · CVE-2025-0684 · published 3 March 2025

CVE-2025-0684: Gnu grub2 out-of-bounds write vulnerability

Gnu · Grub2

A flaw was found in grub2. When performing a symlink lookup from a reiserfs filesystem, grub's reiserfs fs module uses user-controlled parameters from the filesystem geometry to determine the internal buffer size, however, it improperly checks for integer overflows. A maliciouly crafted filesystem may lead some of those buffer size calculations to overflow, causing it to perform a grub_malloc() operation with a smaller size than expected. As a result, the grub_reiserfs_read_symlink() will call grub_reiserfs_read_real() with a overflown length parameter, leading to a heap based out-of-bounds write during data reading. This flaw may be leveraged to corrupt grub's internal critical data and can result in arbitrary code execution, by-passing secure boot protections.

6.4 CVSS 3.1 Medium EPSS 0.29% · top 78.6% CWE-787 · Out-of-bounds write
6.4CVSS 3.1 base score
0.29%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
3References
5 Nov 2026Last modified by NVD

Description

A flaw was found in grub2. When performing a symlink lookup from a reiserfs filesystem, grub's reiserfs fs module uses user-controlled parameters from the filesystem geometry to determine the internal buffer size, however, it improperly checks for integer overflows. A maliciouly crafted filesystem may lead some of those buffer size calculations to overflow, causing it to perform a grub_malloc() operation with a smaller size than expected. As a result, the grub_reiserfs_read_symlink() will call grub_reiserfs_read_real() with a overflown length parameter, leading to a heap based out-of-bounds write during data reading. This flaw may be leveraged to corrupt grub's internal critical data and can result in arbitrary code execution, by-passing secure boot protections.

CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2025-0684 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.8CVE-2024-56737Gnu grub2 heap-based buffer overflow vulnerabilityGNU GRUB (aka GRUB2) through 2.12 has a heap-based buffer overflow in fs/hfs.c via crafted sblock data in an HFS filesystem.EPSS 0.72%8.6CVE-2022-2601Gnu grub2 heap-based buffer overflow vulnerabilityA buffer overflow was found in grub_font_construct_glyph(). A malicious crafted pf2 font can lead to an overflow when calculating the max_glyph_size …EPSS 0.52%8.2CVE-2021-20233Gnu grub2 out-of-bounds write vulnerabilityA flaw was found in grub2 in versions prior to 2.06. Setparam_prefix() in the menu rendering code performs a length calculation on the assumption tha…EPSS 0.61%8.2CVE-2020-25632Gnu grub2 use after free vulnerabilityA flaw was found in grub2 in versions prior to 2.06. The rmmod implementation allows the unloading of a module used as a dependency without checking …EPSS 1.2%8.2CVE-2020-10713Gnu grub2 classic buffer overflow vulnerabilityA flaw was found in grub2, prior to version 2.06. An attacker may use the GRUB 2 flaw to hijack and tamper the GRUB verification process. This flaw a…EPSS 1.7%8.1CVE-2022-28733Gnu grub2 vulnerabilityInteger underflow in grub_net_recv_ip4_packets; A malicious crafted IP packet can lead to an integer underflow in grub_net_recv_ip4_packets() functio…EPSS 1.3%7.8CVE-2025-61662Gnu grub2 use after free vulnerabilityA Use-After-Free vulnerability has been discovered in GRUB's gettext module. This flaw stems from a programming error where the gettext command remai…EPSS 0.22%7.8CVE-2025-0678Gnu grub2 integer overflow vulnerabilityA flaw was found in grub2. When reading data from a squash4 filesystem, grub's squash4 fs module uses user-controlled parameters from the filesystem …EPSS 0.30%

Source: NIST National Vulnerability Database (record CVE-2025-0684), CISA KEV, FIRST EPSS (scores of 2026-11-15). This page is refreshed as NVD updates the record.