Bug 664831 (CVE-2010-4523)

Summary: CVE-2010-4523 OpenSC: Three stack-based buffer overflows, when processing crafted serial numbers of certain cards
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: kalevlember, tmraz
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: public=20101213,reported=20101218,source=debian,impact=moderate,cvss2=4.6/AV:L/AC:L/Au:N/C:P/I:P/A:P,fedora-all/opensc=affected,cwe=CWE-121[auto]
Fixed In Version: Doc Type: Bug Fix
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: ---
Bug Depends On: 664834    
Bug Blocks:    

Description Jan Lieskovsky 2010-12-21 19:45:46 UTC
Three stack-based buffer overflow flaws were found in the way
OpenSC device drivers for A-Trust ACOS, ACS ACOS5 and 
STARCOS SPK 2.3 based smart cards processed certain
values of card serial number. A local attacker could use this
flaw to execute arbitrary code, with the privileges of the
user running the opesc-tool or opensc-explorer binaries via
a malicious smart card, with specially-crafted value of its
serial number, inserted to the system.

[1] http://labs.mwrinfosecurity.com/files/Advisories/mwri_opensc-get-serial-buffer-overflow_2010-12-13.pdf
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=607732
[3] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=607427
[4] http://www.h-online.com/open/news/item/When-a-smart-card-can-root-your-computer-1154829.html
[5] https://bugs.launchpad.net/ubuntu/+source/opensc/+bug/692483

Upstream changesets:
[6] https://www.opensc-project.org/opensc/changeset/4913
[7] https://www.opensc-project.org/opensc/changeset/4912

Comment 1 Jan Lieskovsky 2010-12-21 19:47:55 UTC
CVE Request:
[8] http://www.openwall.com/lists/oss-security/2010/12/21/2

Comment 2 Jan Lieskovsky 2010-12-21 19:49:13 UTC
These issues affect the versions of the opensc package, as shipped
with Fedora release of 13 and 14.

Please schedule an update.

Comment 3 Jan Lieskovsky 2010-12-21 19:50:03 UTC
Created opensc tracking bugs for this issue

Affects: fedora-all [bug 664834]