Bug 2051943 (CVE-2021-0308)

Summary: CVE-2021-0308 gdisk: possible out-of-bounds-write in ReadLogicalParts of basicmbr.cc
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: hhorak, jburrell, nforro, terje.rosten
Target Milestone: ---Keywords: EasyFix, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
An out-of-bounds write flaw was found in gdisks' ReadLogicalParts() function of 'basicmbr.cc'. The exploitation of this flaw requires the use of a malicious storage device (for example, a USB Stick) that can cause a crash when physically inserted into the system and possible local privilege escalation. This flaw allows an attacker to compromise confidentiality, integrity, and data availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-03 22:20:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2052364    
Bug Blocks: 2051949    

Description TEJ RATHI 2022-02-08 11:21:38 UTC
The potential out of bounds write in ReadLogicalParts of basicmbr.cc due to missing bounds check in gdisk utility. Exploitation requires the use of a malicious storage (such as: USB) device that could cause a crash and possibly allows local privilege escalation.

References:
https://packetstormsecurity.com/files/165869/USN-5262-1
https://sourceforge.net/p/gptfdisk/code/ci/f523bbc0c2437fe259aa3aff5e819e24101aee29

Comment 1 juneau 2022-02-08 12:52:37 UTC
Marking openshift-hosted-osd4 notaffected as "Exploitation requires the use of a malicious storage deviceā€¦"

Comment 4 errata-xmlrpc 2022-11-08 10:13:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7700 https://access.redhat.com/errata/RHSA-2022:7700

Comment 5 Product Security DevOps Team 2022-12-03 22:20:11 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-2021-0308