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 package | Versions | Reported by |
|---|---|---|
| The Grub2 Project grub2 | 2.06 | CVE List |
| gnu grub2 | before 2.06 | NVD |
| redhat enterprise_linux | 7.0, 8.0 | NVD |
| redhat enterprise_linux_eus | 8.1, 8.2 | NVD |
| redhat enterprise_linux_server_aus | 8.2 | NVD |
| redhat enterprise_linux_server_tus | 8.2 | NVD |
| opensuse leap | 15.1, 15.2 | NVD |
| canonical ubuntu_linux | 14.04, 16.04, 18.04, 20.04 | NVD |
All scores
| redhat | 5.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:H |
| NVD | 6.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H |
| NVD | 3.6low CVSS:2.0 | AV: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-14310 | issue-tracking, vendor-advisory | |
| https://usn.ubuntu.com/4432-1/ | third-party-advisory, vendor-advisory | |
| http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00017.html | mailing-list, third-party-advisory, vendor-advisory | |
| http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00016.html | mailing-list, third-party-advisory, vendor-advisory | |
| https://security.gentoo.org/glsa/202104-05 | third-party-advisory, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-14310 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2020-14310 changed 2026-06-17 | Public domain |