CVE-2025-0685
CVE-2025-0685 is a medium-severity vulnerability in Gnu Grub2 with a CVSS 3.x base score of 6.4. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-787.
Key facts
- Severity: Medium (CVSS 3.x base score 6.4)
- EPSS exploit prediction: 0% (17th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-5577
- Weakness: CWE-787
- Affected product: Gnu Grub2
- Published:
- Last modified:
Description
A flaw was found in grub2. When reading data from a jfs filesystem, grub's jfs filesystem 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_jfs_lookup_symlink() function will write past the internal buffer length during grub_jfs_read_file(). This issue can be leveraged to corrupt grub's internal critical data and may result in arbitrary code execution, by-passing secure boot protections.
Frequently asked questions
- What is CVE-2025-0685?
- A flaw was found in grub2. When reading data from a jfs filesystem, grub's jfs filesystem 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_jfs_lookup_symlink() function will write past the internal buffer length during grub_jfs_read_file(). This issue can be leveraged to corrupt grub's internal critical data and may result in arbitrary code execution, by-passing secure boot protections.
- How severe is CVE-2025-0685?
- CVE-2025-0685 has a CVSS 3.x base score of 6.4, rated medium severity. It is exploitable over local access with high attack complexity, requires high privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2025-0685 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (17th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2025-0685?
- CVE-2025-0685 affects Gnu Grub2. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2025-0685?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2025-0685 have an EU (EUVD) identifier?
- Yes. CVE-2025-0685 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-5577.
- When was CVE-2025-0685 published?
- CVE-2025-0685 was published on 2025-03-03 and last updated on 2026-06-30.
References
- https://access.redhat.com/security/cve/CVE-2025-0685
- https://bugzilla.redhat.com/show_bug.cgi?id=2346120
- https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html
Affected products (1)
- cpe:2.3:a:gnu:grub2:*:*:*:*:*:*:*:*
More vulnerabilities in Gnu Grub2
- CVE-2024-56737 — High (CVSS 8.8): GNU GRUB (aka GRUB2) through 2.12 has a heap-based buffer overflow in fs/hfs.c via crafted sblock data in an HFS…
- CVE-2022-2601 — High (CVSS 8.6): A buffer overflow was found in grub_font_construct_glyph(). A malicious crafted pf2 font can lead to an overflow when…
- CVE-2021-20233 — High (CVSS 8.2): A flaw was found in grub2 in versions prior to 2.06. Setparam_prefix() in the menu rendering code performs a length…
- CVE-2020-25632 — High (CVSS 8.2): A flaw was found in grub2 in versions prior to 2.06. The rmmod implementation allows the unloading of a module used as…
- CVE-2020-10713 — High (CVSS 8.2): A flaw was found in grub2, prior to version 2.06. An attacker may use the GRUB 2 flaw to hijack and tamper the GRUB…
- CVE-2022-28734 — High (CVSS 8.1): Out-of-bounds write when handling split HTTP headers; When handling split HTTP headers, GRUB2 HTTP code accidentally…
All CVEs affecting Gnu Grub2 →
Other CWE-787 (Out-of-bounds Write) vulnerabilities
- CVE-2026-42369 — Critical (CVSS 10.0): GV-VMS V20 is a Video Monitoring Software used to gather the feeds of many surveillance cameras and manage other…
- CVE-2026-4746 — Critical (CVSS 10.0): Out-of-bounds Write vulnerability in timeplus-io proton (base/poco/Foundation/src modules). This vulnerability is…
- CVE-2025-43300 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved bounds checking. This issue is fixed in iOS 15.8.5 and iPadOS…
- CVE-2025-24201 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved checks to prevent unauthorized actions. This issue is fixed in…
- CVE-2024-42479 — Critical (CVSS 10.0): llama.cpp provides LLM inference in C/C++. The unsafe `data` pointer member in the `rpc_tensor` structure can cause…
- CVE-2024-39791 — Critical (CVSS 10.0): Stack-based buffer overflow vulnerabilities affecting Vonets industrial wifi bridge relays and wifi bridge…