Bug 1875675 (CVE-2020-25125)

Summary: CVE-2020-25125 gnupg: AEAD preference list overflow
Product: [Other] Security Response Reporter: Huzaifa S. Sidhpurwala <huzaifas>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bcl, crypto-team, extras-orphan, rdieter, security-response-team, tmraz
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gnupg 2.2.23 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-04 14:37:17 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:    
Bug Blocks: 1875676    

Description Huzaifa S. Sidhpurwala 2020-09-04 03:41:53 UTC
As per upstream report:

Importing a key with AEAD preferences with GnuPG 2.2 can lead to an array overflow. This is not trivial to exploit because the attacker can control only each second byte with the first byte being fixed at 0x04. But it can be exploited.

Affected versions are GnuPG 2.2.21 and 2.2.22. GnuPG 2.3 and versions before 2.2.21 are not affected.

Comment 2 Huzaifa S. Sidhpurwala 2020-09-04 14:32:03 UTC
Upstream patch: https://dev.gnupg.org/rGaeb8272ca8aad403a4baac33b8d5673719cfd8f0

Comment 3 Huzaifa S. Sidhpurwala 2020-09-04 14:32:08 UTC
Acknowledgments:

Name: the GnuPG project