Bug 1782955 (CVE-2019-19481)

Summary: CVE-2019-19481 opensc: Improper handling of buffer limits for CAC certificates
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: crypto-team, gmazyland, jjelen, klember, nmavrogi, tmraz
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: opensc 0.20.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 02:23:42 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: 1782956, 1782957, 1791807, 1791808    
Bug Blocks: 1782958    

Description Guilherme de Almeida Suckevicz 2019-12-12 17:15:22 UTC
An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3. libopensc/card-cac1.c mishandles buffer limits for CAC certificates.

Reference:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18618

Upstream commit:
https://github.com/OpenSC/OpenSC/commit/b75c002cfb1fd61cd20ec938ff4937d7b1a94278

Comment 1 Guilherme de Almeida Suckevicz 2019-12-12 17:15:43 UTC
Created opensc tracking bugs for this issue:

Affects: epel-6 [bug 1782957]
Affects: fedora-all [bug 1782956]

Comment 3 errata-xmlrpc 2020-11-04 01:23:07 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 4 Product Security DevOps Team 2020-11-04 02:23:42 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-2019-19481