CVE-2020-14310
JSON

5.7medium

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

Severity
5.7medium CVSS:3.1 by redhat
Exploit likelihood
0.46% (higher than 41% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat

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

Product or packageVersionsReported by
The Grub2 Project grub22.06CVE List
gnu grub2before 2.06NVD
redhat enterprise_linux7.0, 8.0NVD
redhat enterprise_linux_eus8.1, 8.2NVD
redhat enterprise_linux_server_aus8.2NVD
redhat enterprise_linux_server_tus8.2NVD
opensuse leap15.1, 15.2NVD
canonical ubuntu_linux14.04, 16.04, 18.04, 20.04NVD

All scores

redhat5.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:H
NVD6.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
NVD3.6low CVSS:2.0AV:L/AC:L/Au:N/C:N/I:P/A:P

Classification

What each source says

CVE List

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.

NVD (es)

Se presenta un problema en grub2 versiones anteriores a 2.06, en la función read_section_as_string(). Se espera que el nombre de la fuente sea una longitud máxima UINT32_MAX - 1 en bytes, pero no lo verifica antes de proceder con la asignación del búfer para leer el valor desde el valor de la fuente. Un atacante puede aprovechar esto mediante el diseño de un archivo de fuente malicioso que tenga un nombre con UINT32_MAX, conduciendo a la función read_section_as_string () a un desbordamiento aritmético, asignación de tamaño cero y un nuevo desbordamiento de búfer en la región heap de la memoria

References

https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-14310issue-tracking, vendor-advisory
https://usn.ubuntu.com/4432-1/third-party-advisory, vendor-advisory
http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00017.htmlmailing-list, third-party-advisory, vendor-advisory
http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00016.htmlmailing-list, third-party-advisory, vendor-advisory
https://security.gentoo.org/glsa/202104-05third-party-advisory, vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2020-14310 changed 2024-08-04CVE Terms of Use
NVDCVE-2020-14310 changed 2026-06-17Public domain