CVE-2020-15707

GRUB2 contained integer overflows when handling the initrd command, leading to a heap-based buffer overflow.

State
Published
Severity
5.7 Medium
Published
Jul 29, 2020
Updated
Sep 17, 2024
Reserved
Jul 14, 2020

Read the record on cve.org

Description

Integer overflows were discovered in the functions grub_cmd_initrd and grub_initrd_init in the efilinux component of GRUB2, as shipped in Debian, Red Hat, and Ubuntu (the functionality is not included in GRUB2 upstream), leading to a heap-based buffer overflow. These could be triggered by an extremely large number of arguments to the initrd command on 32-bit architectures, or a crafted filesystem with very large files on any architecture. An attacker could use this to execute arbitrary code and bypass UEFI Secure Boot restrictions. This issue affects GRUB2 version 2.04 and prior versions.

Scores

CVSSScoreVectorSource
3.15.7 MediumCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:Hcanonical

Weaknesses

  • CWE-362 Race Condition (Concurrent Execution using Shared Resource with Improper Synchronization)

Affected Products

ProductVersions
grub2 in UbuntuUbuntu
  • 20.04 LTS to before 2.04-1ubuntu26.1Affected
  • 18.04 LTS to before 2.02-2ubuntu8.16Affected
  • 16.04 LTS to before 2.02~beta2-36ubuntu3.26Affected
  • 14.04 ESM to before 2.02~beta2-9ubuntu1.20Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.