CVE-2025-0677: Grub2: ufs: integer overflow may lead to heap based out-of-bounds write when handling symlinks

Published Feb 17, 2025
·
Updated

A flaw was found in grub2. When performing a symlink lookup, the grub's UFS module checks the inode's data size to allocate the internal buffer to read the file content, however, it fails to check if the symlink data size has overflown. When this occurs, grubmalloc() may be called with a smaller value than needed. When further reading the data from the disk into the buffer, the grubufslookupsymlink() function will write past the end of the allocated size. An attack can leverage this by crafting a malicious filesystem, and as a result, it will corrupt data stored in the heap, allowing for arbitrary code execution used to by-pass secure boot mechanisms.

Other sources

When performing a symlink lookup the grub's UFS module check the inode's data size to allocate the internal buffer for reading the file content however it misses to check if the symlink data size has overflown. If that happens grubmalloc() may be called with a smaller value than needed, as consequence when further reading the data from disk into the buffer grubufslookupsymlink() function will write past the end of the allocated size. An attack may leverage that by crafting a malicious filesystem and as a result it will corrupt data stored in the heap, it's possible that arbitrary code execution may be achieved through it and to be used to by-pass secure boot mechanisms.

Red Hat

Affected Software

1 affected component
GNU GRUB 2

Event History

Feb 17, 2025
Data Sourced
via Red Hat·03:07 PM
DescriptionSeverityAffected Software
Feb 19, 2025
CVE Published
via MITRE·06:23 PM
Data Sourced
via MITRE·06:23 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-0677?

The severity of CVE-2025-0677 is classified as high due to the potential for buffer overflows.

2

How do I fix CVE-2025-0677?

To fix CVE-2025-0677, update the GRUB 2 software to the latest version provided by the vendor.

3

What are the potential exploits of CVE-2025-0677?

CVE-2025-0677 can potentially be exploited to cause denial-of-service attacks or arbitrary code execution.

4

What software is affected by CVE-2025-0677?

CVE-2025-0677 specifically affects the GRUB 2 software developed by GNU.

5

How does CVE-2025-0677 impact system security?

CVE-2025-0677 impacts system security by allowing attackers to exploit buffer management flaws to manipulate GRUB operations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203