Bug 1677048 (CVE-2019-3829)

Summary: CVE-2019-3829 gnutls: use-after-free/double-free in certificate verification
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: ahardin, bleanhar, ccoleman, cfergeau, crypto-team, dedgar, eparis, erik-fedora, jgoulding, jokerman, jv+fedora, mchappel, mike, pemensik, petr.spacek, rh-spice-bugs, rjones, tmraz
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20190327,reported=20190213,source=upstream,cvss3=5.3/CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L,cwe=CWE-416,fedora-all/gnutls=affected,epel-6/gnutls30=notaffected,rhel-5/gnutls=notaffected,rhel-6/gnutls=notaffected,rhel-7/gnutls=notaffected,rhel-8/gnutls=affected,rhel-8/mingw-gnutls=affected,fedora-all/mingw-gnutls=affected,epel-7/mingw-gnutls=notaffected,openshift-online-3/gnutls=notaffected,openshift-enterprise-3/gnutls=notaffected
Fixed In Version: gnutls 3.6.7 Doc Type: If docs needed, set a value
Doc Text:
A double free flaw was found in the way the certificate verification API was implemented for gnutls. An attacker could cause a client or server application compiled against gnutls to crash by parsing a specially-crafted certificate.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-05 06:42:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 1693211, 1693285, 1693286, 1693210    
Bug Blocks: 1677050    

Description Laura Pardo 2019-02-13 21:01:56 UTC
A flaw was found in gnutls 3.5.8 or later. A use-after-free in multi-threaded-clients and a double-free vulnerability in single-threaded clients because _gnutls_x509_get_signature does not clear signature->data in the cleanup path.

Upstream bug:

Comment 1 Laura Pardo 2019-02-15 16:58:08 UTC

Name: Tavis Ormandy (Google Project Zero)

Comment 2 Dhananjay Arunesh 2019-03-27 11:15:57 UTC
Created gnutls tracking bugs for this issue:

Affects: fedora-all [bug 1693210]

Created mingw-gnutls tracking bugs for this issue:

Affects: fedora-all [bug 1693211]

Comment 4 Laura Pardo 2019-03-27 14:50:02 UTC
External References:


Comment 5 Huzaifa S. Sidhpurwala 2019-04-05 06:42:27 UTC
Upstream patch: https://gitlab.com/gnutls/gnutls/commit/ad27713bef613e6c4600a0fb83ae48c6d390ff5b