Bug 1412235 (CVE-2017-5335)

Summary: CVE-2017-5335 gnutls: Out of memory while parsing crafted OpenPGP certificate
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: hkario, jv+fedora, nmavrogi, sardella, slawomir, tmraz, yozone
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gnutls 3.3.26, gnutls 3.5.8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-13 06:46:07 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: 1411838, 1411845, 1413836, 1413874    
Bug Blocks: 1386080, 1411837, 1415638    

Description Andrej Nemec 2017-01-11 15:21:16 UTC
A vulnerability was found in gnutls. There was an insufficient error checking in the stream reading functions. While parsing a maliciously crafted OpenPGP certificate an out of memory error could occur.

References:

http://seclists.org/oss-sec/2017/q1/51
https://gnutls.org/security.html#GNUTLS-SA-2017-2

Upstream patch:

https://gitlab.com/gnutls/gnutls/commit/49be4f7b82eba2363bb8d4090950dad976a77a3a

Comment 1 Andrej Nemec 2017-01-11 15:31:32 UTC
Created gnutls tracking bugs for this issue:

Affects: fedora-all [bug 1411838]

Comment 2 Andrej Nemec 2017-01-11 15:31:37 UTC
Created gnutls30 tracking bugs for this issue:

Affects: epel-6 [bug 1411845]

Comment 7 Nikos Mavrogiannopoulos 2017-01-17 12:15:25 UTC
Reproducer at: https://gitlab.com/gnutls/gnutls/commit/65ee81db857d3b44cec76aa94361abe5427430d8

Comment 8 Nikos Mavrogiannopoulos 2017-02-13 14:46:34 UTC
Maps to: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=337

Comment 9 errata-xmlrpc 2017-03-21 09:05:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2017:0574 https://rhn.redhat.com/errata/RHSA-2017-0574.html

Comment 10 errata-xmlrpc 2017-08-01 08:50:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:2292 https://access.redhat.com/errata/RHSA-2017:2292