CVE-2025-0685 Details
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.
An integer overflow vulnerability has been identified in the GRUB2 JFS filesystem module. When the module reads data from a JFS filesystem, it uses user-controlled parameters from the filesystem geometry to calculate the internal buffer size. However, it fails to properly validate these parameters, allowing a maliciously crafted filesystem to manipulate the buffer size calculations. This oversight can cause the buffer size to be smaller than expected, leading to a buffer overflow when the 'grub_jfs_lookup_symlink()' function writes past the internal buffer length during 'grub_jfs_read_file()'. This vulnerability could corrupt GRUB's critical internal data and potentially allow for arbitrary code execution, bypassing Secure Boot protections.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 4, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gnu grub2 | <= 2.12 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 30, 2026 | CVE Modified | [email protected] |
| Jun 26, 2026 | CVE Modified | [email protected] |
| Jun 25, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 28, 2025 | Initial Analysis | [email protected] |
| Mar 3, 2025 | New CVE Received | [email protected] |