Vulnerability · Published Jul 31, 2020 · Assigned by redhat

CVE-2020-14310

Medium 5.7

In plain English

A medium-severity integer overflow in grub2 from The Grub2 Project. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

There is an issue on grub2 before version 2.06 at function read_section_as_string(). It expects a font name to be at max UINT32_MAX - 1 length in bytes but it doesn't verify it before proceed with buffer allocation to read the value from the font value. An attacker may leverage that by crafting a malicious font file which has a name with UINT32_MAX, leading to read_section_as_string() to an arithmetic overflow, zero-sized allocation and further heap-based buffer overflow.

Affected packages & fixed versions

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

Affected products (as reported)

VendorProductVersions
The Grub2 Project grub2 2.06

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

References