CVE-2020-14310CWE-122CWE-190

There is an issue on grub2 before version 2.06 at function read_section_as_string()

Medium · published July 31, 2020

CVSS v3.1
5.7
EPSS
0%
Percentile
40.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.7 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00478 · 40.3th percentile
Weaknesses
CWE-122 · Heap-based Buffer Overflow; CWE-190 · Integer Overflow or Wraparound
Published
2020-07-31T20:55Z
EPSS history
Timeline
  • 31 JUL 20:55Z
    There is an issue on grub2 before version 2.06 at function read_section_as_string()
    cvelistv5