Bug 1852030 (CVE-2020-14310) - CVE-2020-14310 grub2: Integer overflow read_section_as_string may lead to heap-based buffer overflow
Summary: CVE-2020-14310 grub2: Integer overflow read_section_as_string may lead to hea...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2020-14310
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1854574 1854578 1863020 1854568 1854569 1854570 1854571 1854572 1854573 1854575 1854576 1854577
Blocks: 1852004
TreeView+ depends on / blocked
 
Reported: 2020-06-29 15:36 UTC by Marco Benatto
Modified: 2020-08-03 13:45 UTC (History)
5 users (show)

Fixed In Version: grub 2.06
Doc Type: If docs needed, set a value
Doc Text:
There is an issue on grub2 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.
Clone Of:
Environment:
Last Closed: 2020-07-29 19:27:54 UTC


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:3216 None None None 2020-07-29 18:30:51 UTC
Red Hat Product Errata RHSA-2020:3217 None None None 2020-07-29 19:34:08 UTC
Red Hat Product Errata RHSA-2020:3223 None None None 2020-07-29 19:38:12 UTC
Red Hat Product Errata RHSA-2020:3227 None None None 2020-07-29 20:14:51 UTC
Red Hat Product Errata RHSA-2020:3271 None None None 2020-08-03 11:52:47 UTC
Red Hat Product Errata RHSA-2020:3273 None None None 2020-08-03 10:57:10 UTC
Red Hat Product Errata RHSA-2020:3274 None None None 2020-08-03 12:06:06 UTC
Red Hat Product Errata RHSA-2020:3275 None None None 2020-08-03 11:14:13 UTC
Red Hat Product Errata RHSA-2020:3276 None None None 2020-08-03 12:02:41 UTC

Description Marco Benatto 2020-06-29 15:36:32 UTC
Integer overflow in read_section_as_string triggered by a specially crafted font file containing a NAME section with a length of UINT32_MAX, which leads to a zero-sized allocation and subsequent heap buffer overflow with attacker controlled data.

Comment 2 Marco Benatto 2020-07-07 17:32:20 UTC
Acknowledgments:

Name: Chris Coulson (Ubuntu Security Team)

Comment 6 errata-xmlrpc 2020-07-29 18:30:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:3216 https://access.redhat.com/errata/RHSA-2020:3216

Comment 7 Product Security DevOps Team 2020-07-29 19:27:54 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-14310

Comment 8 errata-xmlrpc 2020-07-29 19:34:06 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:3217 https://access.redhat.com/errata/RHSA-2020:3217

Comment 9 errata-xmlrpc 2020-07-29 19:38:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.1 Extended Update Support

Via RHSA-2020:3223 https://access.redhat.com/errata/RHSA-2020:3223

Comment 10 errata-xmlrpc 2020-07-29 20:14:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.0 Update Services for SAP Solutions

Via RHSA-2020:3227 https://access.redhat.com/errata/RHSA-2020:3227

Comment 11 errata-xmlrpc 2020-08-03 10:57:06 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.2 Advanced Update Support

Via RHSA-2020:3273 https://access.redhat.com/errata/RHSA-2020:3273

Comment 12 errata-xmlrpc 2020-08-03 11:14:10 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.4 Advanced Update Support
  Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions
  Red Hat Enterprise Linux 7.4 Telco Extended Update Support

Via RHSA-2020:3275 https://access.redhat.com/errata/RHSA-2020:3275

Comment 13 errata-xmlrpc 2020-08-03 11:52:45 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.6 Extended Update Support

Via RHSA-2020:3271 https://access.redhat.com/errata/RHSA-2020:3271

Comment 14 errata-xmlrpc 2020-08-03 12:02:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.3 Advanced Update Support
  Red Hat Enterprise Linux 7.3 Update Services for SAP Solutions
  Red Hat Enterprise Linux 7.3 Telco Extended Update Support

Via RHSA-2020:3276 https://access.redhat.com/errata/RHSA-2020:3276

Comment 15 errata-xmlrpc 2020-08-03 12:06:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.7 Extended Update Support

Via RHSA-2020:3274 https://access.redhat.com/errata/RHSA-2020:3274

Comment 16 Marco Benatto 2020-08-03 13:45:47 UTC
Created grub2 tracking bugs for this issue:

Affects: fedora-all [bug 1863020]


Note You need to log in before you can comment on or make changes to this bug.