cve.bz

CVE-2025-0677 Out-of-bounds Write

6.4 mediumEPSS 0.3%Fix available

Medium (6.4). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.4 medium
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 26th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-02-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 10: fixed in 1:2.12-15.el10_0
  • Red Hat Red Hat Enterprise Linux 9: fixed in 1:2.06-104.el9_6
  • Debian, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Azure Linux, Alpaquita: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2025-0677 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-0677?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-0677?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-0677 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 101:2.12-15.el10_0
Red Hat Enterprise Linux 91:2.06-104.el9_6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11grub22.06-3~deb11u7DLA-4685-1
Debian12grub22.06-13+deb12u2DEBIAN-CVE-2025-0677
Debian13, 14grub22.12-6DEBIAN-CVE-2025-0677
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 moregrub2-signed, grub2-unsignedno fix listedUBUNTU-CVE-2025-0677
UbuntuPro:14.04:LTSgrub2, grub2-signedno fix listedUBUNTU-CVE-2025-0677
Red Hatenterprise_linux:9::baseosgrub2, grub2-pc, grub2-tools and 20 more1:2.06-104.el9_6RHSA-2025:6990
Red Hatenterprise_linux:10.0grub2, grub2-pc, grub2-tools and 20 more1:2.12-15.el10_0RHSA-2025:16154
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.2 and 2 moregrub22.04-150300.22.52.3SUSE-SU-2025:0607-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 7 moregrub22.06-150400.11.55.2SUSE-SU-2025:0588-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 2 moregrub22.06-150500.29.43.2SUSE-SU-2025:0587-1
SUSELinux Enterprise Micro 5.1grub22.04-150300.3.11.1SUSE-SU-2025:01961-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Server Applications 15 SP6grub22.12-150600.8.18.2SUSE-SU-2025:0586-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5grub22.02-181.2SUSE-SU-2025:0629-1
SUSELinux Micro 6.0grub22.12~rc1-6.1SUSE-SU-2025:20511-1
SUSELinux Micro 6.1grub22.12-slfo.1.1_2.1SUSE-SU-2025:20863-1
openSUSELeap 15.6grub22.12-150600.8.18.2SUSE-SU-2025:0586-1
openSUSETumbleweedgrub22.12-35.1openSUSE-SU-2025:14822-1
AlmaLinux9grub2-pc, grub2-tools, grub2-common and 12 more1:2.06-104.el9_6.alma.1ALSA-2025:6990
AlmaLinux10grub2-common, grub2-pc-modules, grub2-efi-x64-modules and 2 more1:2.12-15.el10_0.alma.1ALSA-2025:16154
Rocky Linux9grub21:2.06-104.el9_6RLSA-2025:6990
Rocky Linux10grub21:2.12-15.el10_0RLSA-2025:16154
Azure Linux2grub22.06-15AZL-56919
Azure Linux3grub22.06-25AZL-57007
Alpaquita23grub2.12-r8BELL-CVE-2025-0677
Alpaquitastreamgrub2.12-r10BELL-CVE-2025-0677

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Product Security has rated this vulnerability with Moderate severity, as it requires high privileges to exploit.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10grub2-1:2.12-15.el10_0Fixed 2025-09-18RHSA-2025:16154
Red Hat Enterprise Linux 9grub2-1:2.06-104.el9_6Fixed 2025-05-13RHSA-2025:6990
Red Hat Enterprise Linux 7grub2Out of support scope
Red Hat Enterprise Linux 8grub2Out of support scope
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-0677.

References

Check your stackJSON