6.7medium
Grub2: fs/tar: integer overflow causes heap oob write
- Severity
- 6.7medium CVSS:3.1 by redhat
- Exploit likelihood
- 0.32% (higher than 26% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
Description
A flaw was found in grub2. When reading tar files, grub2 allocates an internal buffer for the file name. However, it fails to properly verify the allocation against possible integer overflows. It's possible to cause the allocation length to overflow with a crafted tar file, leading to a heap out-of-bounds write. This flaw eventually allows an attacker to circumvent secure boot protections.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| grub2 | up to 2.12 | CVE List |
| openshift/ose-rhel-coreos-9 | Not specified | CVE List |
| gnu grub2 | up to 2.12 | NVD |
All scores
| redhat | 6.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
A flaw was found in grub2. When reading tar files, grub2 allocates an internal buffer for the file name. However, it fails to properly verify the allocation against possible integer overflows. It's possible to cause the allocation length to overflow with a crafted tar file, leading to a heap out-of-bounds write. This flaw eventually allows an attacker to circumvent secure boot protections.
NVD (es)
Se encontró una falla en grub2. Al leer archivos tar, grub2 asigna un búfer interno para el nombre del archivo. Sin embargo, no verifica correctamente la asignación contra posibles desbordamientos de números enteros. Es posible provocar que la longitud de la asignación se desborde con un archivo tar manipulado, lo que lleva a una escritura fuera de los límites en el montón. Esta falla finalmente permite a un atacante eludir las protecciones de arranque seguro.
References
| https://access.redhat.com/security/cve/CVE-2024-45780 | third-party-advisory, vdb-entry | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2345856 | issue-tracking | |
| https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html | mailing-list | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-45780 changed 2026-11-24 | CVE Terms of Use |
| NVD | CVE-2024-45780 changed 2026-11-24 | Public domain |