# CVE-2025-0685: grub2: A flaw was found in grub2

CVE-2025-0685 is fixed in 25 products on 1 platform, first by SUSE-SU-2025:0586-1, released February 19, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-0685
- Priority: Routine
- CVSS: 6.4 (medium)
- EPSS: 0.0029
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 19, 2025

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | grub2 Debian 12.15 (bookworm) | 2.06-13+deb12u2 | [DEBIAN-CVE-2025-0685](https://patchblox.com/security/data/fix/linux/debian-cve-2025-0685.md) | Mar 3, 2025 |
| Linux | grub2 Debian 13.5 (trixie) | 2.12-6 | [DEBIAN-CVE-2025-0685](https://patchblox.com/security/data/fix/linux/debian-cve-2025-0685.md) | Mar 3, 2025 |
| Linux | grub2 Debian 14 | 2.12-6 | [DEBIAN-CVE-2025-0685](https://patchblox.com/security/data/fix/linux/debian-cve-2025-0685.md) | Mar 3, 2025 |
| Linux | grub2 opensuse-leap 15.6 | 2.12-150600.8.18.2 | [SUSE-SU-2025:0586-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0586-1.md) | Feb 19, 2025 |
| Linux | grub2 sles 15.6 | 2.12-150600.8.18.2 | [SUSE-SU-2025:0586-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0586-1.md) | Feb 19, 2025 |
| Linux | grub2-common amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-debuginfo amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-debugsource amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-efi-aa64 amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-efi-aa64-cdboot amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-efi-aa64-ec2 amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-efi-aa64-modules amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-efi-x64 amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-efi-x64-cdboot amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-efi-x64-ec2 amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-efi-x64-modules amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-emu amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-emu-debuginfo amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-emu-modules amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-pc amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-pc-modules amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-tools amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-tools-debuginfo amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-tools-efi amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-tools-efi-debuginfo amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-tools-extra amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-tools-extra-debuginfo amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-tools-minimal amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |
| Linux | grub2-tools-minimal-debuginfo amzn 2023 | 1:2.06-61.amzn2023.0.16 | [ALAS2023-2025-937](https://patchblox.com/security/data/fix/linux/alas2023-2025-937.md) | Apr 9, 2025 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
