{"vuln_id":"CVE-2025-0685","aliases":[],"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.","published_at":"2025-03-03T18:15:30.733000Z","modified_at":"2026-11-24T07:17:17.440000Z","first_seen_at":"2026-11-24T08:34:54.106289Z","severity":"medium","severity_source":"nvd","cvss_score":6.4,"cvss_vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-787"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00325,"epss_percentile":0.25788,"nvd_status":"Modified","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-0685"},"matched_alias":null,"items":[{"id":17760,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"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 t…","summary":"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.\n\nReferences:\nhttps://access.redhat.com/security/cve/CVE-2025-0685\nhttps://bugzilla.redhat.com/show_bug.cgi?id=2346120\nhttps://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-0685","published_at":"2025-03-03T18:15:30.733000Z","updated_at":"2026-11-24T07:17:17.440000Z","fetched_at":"2026-11-24T08:34:54.052313Z","severity":"medium","cvss_score":6.4,"epss":0.00325,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2025-0685","vuln_ids":["CVE-2025-0685"],"tags":["CWE-787"],"cluster_id":15677,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/17760","html":"https://vulnwatch.ve1ve2.com/item/17760"}}]}