CVE-2025-0677
published medium CVSS 3.1 · 6.4Grub2: ufs: integer overflow may lead to heap based out-of-bounds write when handling symlinks
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | grub20 through 2.12 · Other versions: unaffected | Affected | Not stated | redhat |
| Red Hat Enterprise Linux | 10 | grub21:2.12-15.el10_0 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat Enterprise Linux | 9 | grub21:2.06-104.el9_6 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat Enterprise Linux | 7, 8 | grub2 | Unknown | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-937 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | grub2 | Advisory build | 2.06-3~deb11u7 | DLA-4685-1 |
| Red Hat Enterprise Linux | RHEL-10 | grub2src | Advisory build | 1:2.12-15.el10_0 | RHSA-2025:16154 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | openshift/ose-rhel-coreos-9Red Hat OpenShift Container Platform 4 | Affected | Not stated | redhat |
| SUSE / openSUSE | SLE-12-SP5 | grub2aarch64 | Advisory build | 2.02-181.2 | SUSE-SU-2025:0629-1 |
| AlmaLinux | 10 | grub2-common | Advisory build | 1:2.12-15.el10_0.alma.1 | ALSA-2025:16154 |
| Oracle Linux | 10 | grub2-commonaarch64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Red Hat Enterprise Linux | RHEL-9 | grub2src | Advisory build | 1:2.06-104.el9_6 | RHSA-2025:6990 |
| SUSE / openSUSE | SLE-12-SP5 | grub2ppc64le | Advisory build | 2.02-181.2 | SUSE-SU-2025:0629-1 |
| SUSE / openSUSE | SLE-12-SP5 | grub2s390x | Advisory build | 2.02-181.2 | SUSE-SU-2025:0629-1 |
| SUSE / openSUSE | SLE-12-SP5 | grub2x86_64 | Advisory build | 2.02-181.2 | SUSE-SU-2025:0629-1 |
| SUSE / openSUSE | SLE-15-SP3 | grub2aarch64 | Advisory build | 2.04-150300.22.52.3 | SUSE-SU-2025:0607-1 |
| SUSE / openSUSE | SLE-15-SP3 | grub2ppc64le | Advisory build | 2.04-150300.22.52.3 | SUSE-SU-2025:0607-1 |
| SUSE / openSUSE | SLE-15-SP3 | grub2s390x | Advisory build | 2.04-150300.22.52.3 | SUSE-SU-2025:0607-1 |
| SUSE / openSUSE | SLE-15-SP3 | grub2x86_64 | Advisory build | 2.04-150300.22.52.3 | SUSE-SU-2025:0607-1 |
| SUSE / openSUSE | SLE-15-SP4 | grub2aarch64 | Advisory build | 2.06-150400.11.55.2 | SUSE-SU-2025:0588-1 |
| SUSE / openSUSE | SLE-15-SP4 | grub2ppc64le | Advisory build | 2.06-150400.11.55.2 | SUSE-SU-2025:0588-1 |
| SUSE / openSUSE | SLE-15-SP4 | grub2s390x | Advisory build | 2.06-150400.11.55.2 | SUSE-SU-2025:0588-1 |
| SUSE / openSUSE | SLE-15-SP4 | grub2x86_64 | Advisory build | 2.06-150400.11.55.2 | SUSE-SU-2025:0588-1 |
| SUSE / openSUSE | SLE-15-SP5 | grub2aarch64 | Advisory build | 2.06-150500.29.43.2 | SUSE-SU-2025:0587-1 |
| SUSE / openSUSE | SLE-15-SP5 | grub2ppc64le | Advisory build | 2.06-150500.29.43.2 | SUSE-SU-2025:0587-1 |
| SUSE / openSUSE | SLE-15-SP5 | grub2s390x | Advisory build | 2.06-150500.29.43.2 | SUSE-SU-2025:0587-1 |
| SUSE / openSUSE | SLE-15-SP5 | grub2x86_64 | Advisory build | 2.06-150500.29.43.2 | SUSE-SU-2025:0587-1 |
| SUSE / openSUSE | SLE-15-SP6 | grub2aarch64 | Advisory build | 2.12-150600.8.18.2 | SUSE-SU-2025:0586-1 |
| SUSE / openSUSE | SLE-15-SP6 | grub2ppc64le | Advisory build | 2.12-150600.8.18.2 | SUSE-SU-2025:0586-1 |
| SUSE / openSUSE | SLE-15-SP6 | grub2s390x | Advisory build | 2.12-150600.8.18.2 | SUSE-SU-2025:0586-1 |
| SUSE / openSUSE | SLE-15-SP6 | grub2x86_64 | Advisory build | 2.12-150600.8.18.2 | SUSE-SU-2025:0586-1 |
| SUSE / openSUSE | SLE-5 | grub2aarch64 | Advisory build | 2.04-150300.22.52.3 | SUSE-SU-2025:0607-1 |
| SUSE / openSUSE | SLE-5 | grub2aarch64 | Advisory build | 2.04-150300.3.11.1 | SUSE-SU-2025:01961-1 |
| SUSE / openSUSE | SLE-5 | grub2aarch64 | Advisory build | 2.06-150400.11.55.2 | SUSE-SU-2025:0588-1 |
| SUSE / openSUSE | SLE-5 | grub2aarch64 | Advisory build | 2.06-150500.29.43.2 | SUSE-SU-2025:0587-1 |
| SUSE / openSUSE | SLE-5 | grub2ppc64le | Advisory build | 2.06-150500.29.43.2 | SUSE-SU-2025:0587-1 |
| SUSE / openSUSE | SLE-5 | grub2s390x | Advisory build | 2.04-150300.22.52.3 | SUSE-SU-2025:0607-1 |
| SUSE / openSUSE | SLE-5 | grub2s390x | Advisory build | 2.04-150300.3.11.1 | SUSE-SU-2025:01961-1 |
| SUSE / openSUSE | SLE-5 | grub2s390x | Advisory build | 2.06-150400.11.55.2 | SUSE-SU-2025:0588-1 |
| SUSE / openSUSE | SLE-5 | grub2s390x | Advisory build | 2.06-150500.29.43.2 | SUSE-SU-2025:0587-1 |
| SUSE / openSUSE | SLE-5 | grub2x86_64 | Advisory build | 2.04-150300.22.52.3 | SUSE-SU-2025:0607-1 |
| SUSE / openSUSE | SLE-5 | grub2x86_64 | Advisory build | 2.04-150300.3.11.1 | SUSE-SU-2025:01961-1 |
| SUSE / openSUSE | SLE-5 | grub2x86_64 | Advisory build | 2.06-150400.11.55.2 | SUSE-SU-2025:0588-1 |
| SUSE / openSUSE | SLE-5 | grub2x86_64 | Advisory build | 2.06-150500.29.43.2 | SUSE-SU-2025:0587-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | grub2aarch64 | Advisory build | 2.12-150600.8.18.2 | SUSE-SU-2025:0586-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | grub2ppc64le | Advisory build | 2.12-150600.8.18.2 | SUSE-SU-2025:0586-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | grub2s390x | Advisory build | 2.12-150600.8.18.2 | SUSE-SU-2025:0586-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | grub2x86_64 | Advisory build | 2.12-150600.8.18.2 | SUSE-SU-2025:0586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | grub2aarch64 | Advisory build | 2.12-35.1 | OPENSUSE-SU-2025:14822-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | grub2ppc64le | Advisory build | 2.12-35.1 | OPENSUSE-SU-2025:14822-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | grub2s390x | Advisory build | 2.12-35.1 | OPENSUSE-SU-2025:14822-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | grub2x86_64 | Advisory build | 2.12-35.1 | OPENSUSE-SU-2025:14822-1 |
| AlmaLinux | 10 | grub2-efi-aa64-modules | Advisory build | 1:2.12-15.el10_0.alma.1 | ALSA-2025:16154 |
| AlmaLinux | 10 | grub2-efi-x64-modules | Advisory build | 1:2.12-15.el10_0.alma.1 | ALSA-2025:16154 |
| AlmaLinux | 10 | grub2-pc-modules | Advisory build | 1:2.12-15.el10_0.alma.1 | ALSA-2025:16154 |
| AlmaLinux | 10 | grub2-ppc64le-modules | Advisory build | 1:2.12-15.el10_0.alma.1 | ALSA-2025:16154 |
| AlmaLinux | 9 | grub2-common | Advisory build | 1:2.06-104.el9_6.alma.1 | ALSA-2025:6990 |
| AlmaLinux | 9 | grub2-efi-aa64 | Advisory build | 1:2.06-104.el9_6.alma.1 | ALSA-2025:6990 |
| AlmaLinux | 9 | grub2-efi-aa64-cdboot | Advisory build | 1:2.06-104.el9_6.alma.1 | ALSA-2025:6990 |
| AlmaLinux | 9 | grub2-efi-aa64-modules | Advisory build | 1:2.06-104.el9_6.alma.1 | ALSA-2025:6990 |
| AlmaLinux | 9 | grub2-efi-x64 | Advisory build | 1:2.06-104.el9_6.alma.1 | ALSA-2025:6990 |
| AlmaLinux | 9 | grub2-efi-x64-cdboot | Advisory build | 1:2.06-104.el9_6.alma.1 | ALSA-2025:6990 |
| AlmaLinux | 9 | grub2-efi-x64-modules | Advisory build | 1:2.06-104.el9_6.alma.1 | ALSA-2025:6990 |
| AlmaLinux | 9 | grub2-pc | Advisory build | 1:2.06-104.el9_6.alma.1 | ALSA-2025:6990 |
| AlmaLinux | 9 | grub2-pc-modules | Advisory build | 1:2.06-104.el9_6.alma.1 | ALSA-2025:6990 |
| AlmaLinux | 9 | grub2-ppc64le | Advisory build | 1:2.06-104.el9_6.alma.1 | ALSA-2025:6990 |
| AlmaLinux | 9 | grub2-ppc64le-modules | Advisory build | 1:2.06-104.el9_6.alma.1 | ALSA-2025:6990 |
| AlmaLinux | 9 | grub2-tools | Advisory build | 1:2.06-104.el9_6.alma.1 | ALSA-2025:6990 |
| AlmaLinux | 9 | grub2-tools-efi | Advisory build | 1:2.06-104.el9_6.alma.1 | ALSA-2025:6990 |
| AlmaLinux | 9 | grub2-tools-extra | Advisory build | 1:2.06-104.el9_6.alma.1 | ALSA-2025:6990 |
| AlmaLinux | 9 | grub2-tools-minimal | Advisory build | 1:2.06-104.el9_6.alma.1 | ALSA-2025:6990 |
| Oracle Linux | 10 | grub2-commonx86_64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-efi-aa64aarch64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-efi-aa64-cdbootaarch64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-efi-aa64-modulesaarch64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-efi-aa64-modulesx86_64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-efi-x64x86_64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-efi-x64-cdbootx86_64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-efi-x64-modulesaarch64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-efi-x64-modulesx86_64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-pcx86_64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-pc-modulesx86_64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-toolsaarch64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-toolsx86_64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-tools-efix86_64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-tools-extraaarch64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-tools-extrax86_64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-tools-minimalaarch64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 10 | grub2-tools-minimalx86_64 | Advisory build | 1:2.12-15.0.1.el10_0 | ELSA-2025-16154 |
| Oracle Linux | 9 | grub2-commonaarch64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-commonx86_64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-efi-aa64aarch64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-efi-aa64-cdbootaarch64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-efi-aa64-modulesaarch64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-efi-aa64-modulesx86_64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-efi-x64x86_64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-efi-x64-cdbootx86_64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-efi-x64-modulesaarch64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-efi-x64-modulesx86_64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-pcx86_64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-pc-modulesx86_64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-toolsaarch64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-toolsx86_64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-tools-efix86_64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-tools-extraaarch64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
| Oracle Linux | 9 | grub2-tools-extrax86_64 | Advisory build | 1:2.06-104.0.1.el9_6 | ELSA-2025-6990 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.4 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| grub2 | 0 through 2.12 (affected · semver)Default: unaffected | redhat · cna | |
| Red Hat | Red Hat Enterprise Linux 10 | 1:2.12-15.el10_0 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 9 | 1:2.06-104.el9_6 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 7 | Default: unknown | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unknown | redhat · cna |
| Red Hat | Red Hat OpenShift Container Platform 4 | Default: affected | redhat · cna |
Weaknesses
1- CWE-787 Out-of-bounds Write
References
5- RHSA-2025:16154 https://access.redhat.com/errata/RHSA-2025:16154
- RHSA-2025:6990 https://access.redhat.com/errata/RHSA-2025:6990
- https://access.redhat.com/security/cve/CVE-2025-0677
- RHBZ#2346116 https://bugzilla.redhat.com/show_bug.cgi?id=2346116
- https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html
Provider assertions
2redhat · cna
Grub2: ufs: integer overflow may lead to heap based out-of-bounds write when handling symlinks
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d9d659c60ea81b1f62d74b6e95b21768849cd8495036dadbd090abcaf81572bc
- Ingested
- 24 Nov 2026, 06:38:35 UTC
- Source record
- Official CVE record