Bug 2016139 (CVE-2021-42780)

Summary: CVE-2021-42780 opensc: Use after return in insert_pin function
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: crypto-team, jjelen, tm
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: opensc 0.22.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2018909, 2022291    
Bug Blocks: 2001773, 2016521    

Description Pedro Sampaio 2021-10-20 18:46:47 UTC
A use after return issue was found in Opensc before version 0.22.0 in insert_pin function that could potentially crash programs using the library.

Upstream commit:

https://github.com/OpenSC/OpenSC/commit/5df913b7

References:

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