Vulnerability · Published Jul 29, 2020 · Assigned by canonical

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

Medium 5.7

In plain English

A medium-severity race condition in grub2 in Ubuntu from Ubuntu. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.7Medium
Exploit odds (30 days)1.6%top 24.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20grub2.06-r0ALPINE-CVE-2020-15707
Alpine:v3.21grub2.06-r0ALPINE-CVE-2020-15707
Alpine:v3.22grub2.06-r0ALPINE-CVE-2020-15707
Alpine:v3.23grub2.06-r0ALPINE-CVE-2020-15707
Alpine:v3.24grub2.06-r0ALPINE-CVE-2020-15707
Debian:12grub22.04-9DEBIAN-CVE-2020-15707
Debian:13grub22.04-9DEBIAN-CVE-2020-15707
Debian:14grub22.04-9DEBIAN-CVE-2020-15707

Affected products (as reported)

VendorProductVersions
Ubuntu grub2 in Ubuntu 20.04 LTS – before 2.04-1ubuntu26.118.04 LTS – before 2.02-2ubuntu8.1616.04 LTS – before 2.02~beta2-36ubuntu3.2614.04 ESM – before 2.02~beta2-9ubuntu1.20

Weakness: CWE-362 · Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:H

References