ID CVE-2010-4531
Summary Stack-based buffer overflow in the ATRDecodeAtr function in the Answer-to-Reset (ATR) Handler (atrhandler.c) for pcscd in PCSC-Lite 1.5.3, and possibly other 1.5.x and 1.6.x versions, allows physically proximate attackers to cause a denial of service (crash) and possibly execute arbitrary code via a smart card with an ATR message containing a long attribute value.
References
Vulnerable Configurations
  • cpe:2.3:a:muscle:pcsc-lite:1.5.3
    cpe:2.3:a:muscle:pcsc-lite:1.5.3
CVSS
Base: 4.4 (as of 18-01-2011 - 14:34)
Impact:
Exploitability:
CWE CWE-119
CAPEC
  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
Access
VectorComplexityAuthentication
LOCAL MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
nessus via4
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_PCSC-CCID-110121.NASL
    description An integer overflow in pcsc-ccid and a buffer overflow in pcsc-lite while handling smart card responses have been fixed. CVE-2010-4530 / CVE-2010-4531 have been assigned to these issues. Additionally a new device ID for card readers was added.
    last seen 2019-02-21
    modified 2013-10-25
    plugin id 51844
    published 2011-02-02
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=51844
    title SuSE 11.1 Security Update : pcsc-lite (SAT Patch Number 3889)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-2156.NASL
    description MWR InfoSecurity identified a buffer overflow in pcscd, middleware to access a smart card via PC/SC, which could lead to the execution of arbitrary code.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 51829
    published 2011-02-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=51829
    title Debian DSA-2156-1 : pcscd - buffer overflow
  • NASL family SuSE Local Security Checks
    NASL id SUSE_PCSC-LITE-7298.NASL
    description A buffer overflow in pcsc-lite while handling smart card responses has been fixed. CVE-2010-4531 has been assigned to this issues.
    last seen 2019-02-21
    modified 2012-05-17
    plugin id 51845
    published 2011-02-02
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=51845
    title SuSE 10 Security Update : pcsc-lite (ZYPP Patch Number 7298)
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2013-0525.NASL
    description From Red Hat Security Advisory 2013:0525 : Updated pcsc-lite packages that fix one security issue and three bugs are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. PC/SC Lite provides a Windows SCard compatible interface for communicating with smart cards, smart card readers, and other security tokens. A stack-based buffer overflow flaw was found in the way pcsc-lite decoded certain attribute values of Answer-to-Reset (ATR) messages. A local attacker could use this flaw to execute arbitrary code with the privileges of the user running the pcscd daemon (root, by default), by inserting a specially crafted smart card. (CVE-2010-4531) This update also fixes the following bugs : * Due to an error in the init script, the chkconfig utility did not automatically place the pcscd init script after the start of the HAL daemon. Consequently, the pcscd service did not start automatically at boot time. With this update, the pcscd init script has been changed to explicitly start only after HAL is up, thus fixing this bug. (BZ#788474, BZ#814549) * Because the chkconfig settings and the startup files in the /etc/rc.d/ directory were not changed during the update described in the RHBA-2012:0990 advisory, the user had to update the chkconfig settings manually to fix the problem. Now, the chkconfig settings and the startup files in the /etc/rc.d/ directory are automatically updated as expected. (BZ#834803) * Previously, the SCardGetAttrib() function did not work properly and always returned the 'SCARD_E_INSUFFICIENT_BUFFER' error regardless of the actual buffer size. This update applies a patch to fix this bug and the SCardGetAttrib() function now works as expected. (BZ#891852) All users of pcsc-lite are advised to upgrade to these updated packages, which fix these issues. After installing this update, the pcscd daemon will be restarted automatically.
    last seen 2019-02-21
    modified 2018-07-18
    plugin id 68760
    published 2013-07-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=68760
    title Oracle Linux 6 : pcsc-lite (ELSA-2013-0525)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2013-0525.NASL
    description Updated pcsc-lite packages that fix one security issue and three bugs are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. PC/SC Lite provides a Windows SCard compatible interface for communicating with smart cards, smart card readers, and other security tokens. A stack-based buffer overflow flaw was found in the way pcsc-lite decoded certain attribute values of Answer-to-Reset (ATR) messages. A local attacker could use this flaw to execute arbitrary code with the privileges of the user running the pcscd daemon (root, by default), by inserting a specially crafted smart card. (CVE-2010-4531) This update also fixes the following bugs : * Due to an error in the init script, the chkconfig utility did not automatically place the pcscd init script after the start of the HAL daemon. Consequently, the pcscd service did not start automatically at boot time. With this update, the pcscd init script has been changed to explicitly start only after HAL is up, thus fixing this bug. (BZ#788474, BZ#814549) * Because the chkconfig settings and the startup files in the /etc/rc.d/ directory were not changed during the update described in the RHBA-2012:0990 advisory, the user had to update the chkconfig settings manually to fix the problem. Now, the chkconfig settings and the startup files in the /etc/rc.d/ directory are automatically updated as expected. (BZ#834803) * Previously, the SCardGetAttrib() function did not work properly and always returned the 'SCARD_E_INSUFFICIENT_BUFFER' error regardless of the actual buffer size. This update applies a patch to fix this bug and the SCardGetAttrib() function now works as expected. (BZ#891852) All users of pcsc-lite are advised to upgrade to these updated packages, which fix these issues. After installing this update, the pcscd daemon will be restarted automatically.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 64771
    published 2013-02-21
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=64771
    title RHEL 6 : pcsc-lite (RHSA-2013:0525)
  • NASL family Mandriva Local Security Checks
    NASL id MANDRIVA_MDVSA-2011-015.NASL
    description A vulnerability has been found and corrected in pcsc-lite : Stack-based buffer overflow in the ATRDecodeAtr function in the Answer-to-Reset (ATR) Handler (atrhandler.c) for pcscd in PCSC-Lite 1.5.3, and possibly other 1.5.x and 1.6.x versions, allows physically proximate attackers to cause a denial of service (crash) and possibly execute arbitrary code via a smart card with an ATR message containing a long attribute value (CVE-2010-4531). Packages for 2009.0 are provided as of the Extended Maintenance Program. Please visit this link to learn more: http://store.mandriva.com/product_info.php?cPath=149 products_id=490 The updated packages have been patched to correct this issue.
    last seen 2019-02-21
    modified 2018-07-19
    plugin id 51806
    published 2011-01-28
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=51806
    title Mandriva Linux Security Advisory : pcsc-lite (MDVSA-2011:015)
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2013-0525.NASL
    description Updated pcsc-lite packages that fix one security issue and three bugs are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. PC/SC Lite provides a Windows SCard compatible interface for communicating with smart cards, smart card readers, and other security tokens. A stack-based buffer overflow flaw was found in the way pcsc-lite decoded certain attribute values of Answer-to-Reset (ATR) messages. A local attacker could use this flaw to execute arbitrary code with the privileges of the user running the pcscd daemon (root, by default), by inserting a specially crafted smart card. (CVE-2010-4531) This update also fixes the following bugs : * Due to an error in the init script, the chkconfig utility did not automatically place the pcscd init script after the start of the HAL daemon. Consequently, the pcscd service did not start automatically at boot time. With this update, the pcscd init script has been changed to explicitly start only after HAL is up, thus fixing this bug. (BZ#788474, BZ#814549) * Because the chkconfig settings and the startup files in the /etc/rc.d/ directory were not changed during the update described in the RHBA-2012:0990 advisory, the user had to update the chkconfig settings manually to fix the problem. Now, the chkconfig settings and the startup files in the /etc/rc.d/ directory are automatically updated as expected. (BZ#834803) * Previously, the SCardGetAttrib() function did not work properly and always returned the 'SCARD_E_INSUFFICIENT_BUFFER' error regardless of the actual buffer size. This update applies a patch to fix this bug and the SCardGetAttrib() function now works as expected. (BZ#891852) All users of pcsc-lite are advised to upgrade to these updated packages, which fix these issues. After installing this update, the pcscd daemon will be restarted automatically.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 65155
    published 2013-03-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=65155
    title CentOS 6 : pcsc-lite (CESA-2013:0525)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_2_LIBPCSCLITE1-110105.NASL
    description An integer overflow in pcsc-ccid and a buffer overflow in pcsc-lite while handling smart card responses have been fixed. CVE-2010-4530 and CVE-2010-4531 have been assigned to these issues.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 53754
    published 2011-05-05
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=53754
    title openSUSE Security Update : libpcsclite1 (openSUSE-SU-2011:0092-1)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201401-17.NASL
    description The remote host is affected by the vulnerability described in GLSA-201401-17 (PCSC-Lite: Arbitrary code execution) PCSC-Lite contains a stack-based buffer overflow in the ATRDecodeAtr function in the Answer-to-Reset Handler (atrhandler.c). Impact : A physically proximate attacker could execute arbitrary code or cause a Denial of Service condition. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-07-12
    plugin id 72072
    published 2014-01-22
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=72072
    title GLSA-201401-17 : PCSC-Lite: Arbitrary code execution
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-1125-1.NASL
    description Rafael Dominguez Vega discovered that PCSC-Lite incorrectly handled smart cards with malformed ATR messages. An attacker having physical access could exploit this with a special smart card and cause a denial of service or execute arbitrary code. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-12-01
    plugin id 55085
    published 2011-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=55085
    title Ubuntu 9.10 / 10.04 LTS / 10.10 : pcsc-lite vulnerability (USN-1125-1)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_3_LIBPCSCLITE1-110105.NASL
    description An integer overflow in pcsc-ccid and a buffer overflow in pcsc-lite while handling smart card responses have been fixed. CVE-2010-4530 and CVE-2010-4531 have been assigned to these issues.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 75602
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=75602
    title openSUSE Security Update : libpcsclite1 (openSUSE-SU-2011:0092-1)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2011-0123.NASL
    description This update fixes the following security issue : A stack-based buffer overflow flaw was found in the way PC/SC Lite smart card framework decoded certain attribute values of the Answer-to-Reset (ATR) message, received back from the card after connecting. A local attacker could use this flaw to execute arbitrary code with the privileges of the user running the pcscd daemon, via a malicious smart card inserted to the system USB port. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2015-10-20
    plugin id 51514
    published 2011-01-14
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=51514
    title Fedora 13 : pcsc-lite-1.5.5-5.fc13 (2011-0123)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20130221_PCSC_LITE_ON_SL6_X.NASL
    description A stack-based buffer overflow flaw was found in the way pcsc-lite decoded certain attribute values of Answer-to-Reset (ATR) messages. A local attacker could use this flaw to execute arbitrary code with the privileges of the user running the pcscd daemon (root, by default), by inserting a specially crafted smart card. (CVE-2010-4531) This update also fixes the following bugs : - Due to an error in the init script, the chkconfig utility did not automatically place the pcscd init script after the start of the HAL daemon. Consequently, the pcscd service did not start automatically at boot time. With this update, the pcscd init script has been changed to explicitly start only after HAL is up, thus fixing this bug. - Because the chkconfig settings and the startup files in the /etc/rc.d/ directory were not changed during the update described in the SLBA-2012:0990 advisory, the user had to update the chkconfig settings manually to fix the problem. Now, the chkconfig settings and the startup files in the /etc/rc.d/ directory are automatically updated as expected. - Previously, the SCardGetAttrib() function did not work properly and always returned the 'SCARD_E_INSUFFICIENT_BUFFER' error regardless of the actual buffer size. This update applies a patch to fix this bug and the SCardGetAttrib() function now works as expected. After installing this update, the pcscd daemon will be restarted automatically.
    last seen 2019-02-21
    modified 2018-12-31
    plugin id 64956
    published 2013-03-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=64956
    title Scientific Linux Security Update : pcsc-lite on SL6.x i386/x86_64
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2011-0164.NASL
    description This update fixes the following security issue : A stack-based buffer overflow flaw was found in the way PC/SC Lite smart card framework decoded certain attribute values of the Answer-to-Reset (ATR) message, received back from the card after connecting. A local attacker could use this flaw to execute arbitrary code with the privileges of the user running the pcscd daemon, via a malicious smart card inserted to the system USB port. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2015-10-20
    plugin id 51518
    published 2011-01-14
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=51518
    title Fedora 14 : pcsc-lite-1.6.4-3.fc14 (2011-0164)
redhat via4
advisories
bugzilla
id 891852
title pcsc-lite: incorrect check in SCardGetAttrib and SCardSetAttrib handling
oval
AND
  • OR
    • comment Red Hat Enterprise Linux 6 Client is installed
      oval oval:com.redhat.rhba:tst:20111656001
    • comment Red Hat Enterprise Linux 6 Server is installed
      oval oval:com.redhat.rhba:tst:20111656002
    • comment Red Hat Enterprise Linux 6 Workstation is installed
      oval oval:com.redhat.rhba:tst:20111656003
    • comment Red Hat Enterprise Linux 6 ComputeNode is installed
      oval oval:com.redhat.rhba:tst:20111656004
  • OR
    • AND
      • comment pcsc-lite is earlier than 0:1.5.2-11.el6
        oval oval:com.redhat.rhsa:tst:20130525005
      • comment pcsc-lite is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20130525006
    • AND
      • comment pcsc-lite-devel is earlier than 0:1.5.2-11.el6
        oval oval:com.redhat.rhsa:tst:20130525007
      • comment pcsc-lite-devel is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20130525008
    • AND
      • comment pcsc-lite-doc is earlier than 0:1.5.2-11.el6
        oval oval:com.redhat.rhsa:tst:20130525009
      • comment pcsc-lite-doc is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20130525010
    • AND
      • comment pcsc-lite-libs is earlier than 0:1.5.2-11.el6
        oval oval:com.redhat.rhsa:tst:20130525011
      • comment pcsc-lite-libs is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20130525012
rhsa
id RHSA-2013:0525
released 2013-02-21
severity Moderate
title RHSA-2013:0525: pcsc-lite security and bug fix update (Moderate)
rpms
  • pcsc-lite-0:1.5.2-11.el6
  • pcsc-lite-devel-0:1.5.2-11.el6
  • pcsc-lite-doc-0:1.5.2-11.el6
  • pcsc-lite-libs-0:1.5.2-11.el6
refmap via4
bid 45450
confirm
debian DSA-2156
fedora
  • FEDORA-2011-0123
  • FEDORA-2011-0164
mandriva MDVSA-2011:015
misc http://labs.mwrinfosecurity.com/files/Advisories/mwri_pcsc-atr-handler-buffer-overflow_2010-12-13.pdf
mlist
  • [Pcsclite-cvs-commit] 20101103 r5370 - /trunk/PCSC/src/atrhandler.c
  • [oss-security] 20101222 CVE Request -- 1, ccid -- int.overflow leading to array index error 2, pcsc-lite stack-based buffer overflow in ATR decoder [was: CVE request: opensc buffer overflow ]
  • [oss-security] 20110103 Re: CVE Request -- 1, ccid -- int.overflow leading to array index error 2, pcsc-lite stack-based buffer overflow in ATR decoder [was: CVE request: opensc buffer overflow ]
secunia
  • 42912
  • 43112
vupen
  • ADV-2010-3264
  • ADV-2011-0101
  • ADV-2011-0180
  • ADV-2011-0256
Last major update 05-02-2011 - 02:00
Published 18-01-2011 - 13:03
Back to Top