CVE Database
/

CVE-2025-0677

Back to search

CVE-2025-0677

Published: Feb 19, 2025

Modified: Mar 24, 2026

PUBLISHED

CVSS v3.1

6.4

MEDIUM

Description

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.

VendorProductVersions

Unknown

grub2

affected
0 - <= 2.12

Red Hat

Red Hat Enterprise Linux 10

unaffected
1:2.12-15.el10_0 - < *

Red Hat

Red Hat Enterprise Linux 9

unaffected
1:2.06-104.el9_6 - < *

Red Hat

Red Hat Enterprise Linux 7

All versions

Red Hat

Red Hat Enterprise Linux 8

All versions

Red Hat

Red Hat OpenShift Container Platform 4

All versions

Weaknesses (CWE)

CVSS v3.1 Details

CVSS v3.1 Vector

CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

Attack Vector

Local

Attack Complexity

High

Privileges Required

High

User Interaction

None

Scope

Unchanged

Confidentiality

High

Integrity

High

Availability

High

References

RHSA-2025:16154
vendor-advisory
x_refsource_REDHAT
RHSA-2025:6990
vendor-advisory
x_refsource_REDHAT
RHBZ#2346116
issue-tracking
x_refsource_REDHAT

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now