Out-of-bounds Write Affecting grub2-efi-x64 package, versions *


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

Exploit Maturity
Not Defined

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL8-GRUB2EFIX64-8737462
  • published19 Feb 2025
  • disclosed18 Feb 2025

Introduced: 18 Feb 2025

NewCVE-2025-0677  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:8 grub2-efi-x64.

NVD Description

Note: Versions mentioned in the description apply only to the upstream grub2-efi-x64 package and not the grub2-efi-x64 package as distributed by RHEL. See How to fix? for RHEL:8 relevant fixed versions and status.

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, grub_malloc() may be called with a smaller value than needed. When further reading the data from the disk into the buffer, the grub_ufs_lookup_symlink() 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.

CVSS Scores

version 3.1