Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 917651 (CVE-2023-40660, CVE-2023-40661, CVE-2023-4535)

Summary: <dev-libs/opensc-0.24.0: multiple vulnerabilities
Product: Gentoo Security Reporter: John Helmert III <ajak>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: CONFIRMED ---    
Severity: normal CC: soap
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisories
Whiteboard: B2 [glsa?]
Package list:
Runtime testing required: ---

Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-11-21 01:25:00 UTC
CVE-2023-4535:

An out-of-bounds read vulnerability was found in OpenSC packages within the MyEID driver when handling symmetric key encryption. Exploiting this flaw requires an attacker to have physical access to the computer and a specially crafted USB device or smart card. This flaw allows the attacker to manipulate APDU responses and potentially gain unauthorized access to sensitive data, compromising the system's security.

CVE-2023-40660:

A flaw was found in OpenSC packages that allow a potential PIN bypass. When a token/card is authenticated by one process, it can perform cryptographic operations in other processes when an empty zero-length pin is passed. This issue poses a security risk, particularly for OS logon/screen unlock and for small, permanently connected tokens to computers. Additionally, the token can internally track login status. This flaw allows an attacker to gain unauthorized access, carry out malicious actions, or compromise the system without the user's awareness.

CVE-2023-40661:

Several memory vulnerabilities were identified within the OpenSC packages, particularly in the card enrollment process using pkcs15-init when a user or administrator enrolls cards. To take advantage of these flaws, an attacker must have physical access to the computer system and employ a custom-crafted USB device or smart card to manipulate responses to APDUs. This manipulation can potentially allow 
compromise key generation, certificate loading, and other card management operations during enrollment.

Some details for all of these in
https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651.

Seems these are fixed in the 0.24.0 RCs.
Comment 1 Larry the Git Cow gentoo-dev 2024-05-27 08:16:53 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09bf61ced9f91e8460b2227f15b2256618ffaf29

commit 09bf61ced9f91e8460b2227f15b2256618ffaf29
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2024-05-27 08:16:39 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2024-05-27 08:16:39 +0000

    dev-libs/opensc: drop 0.24.0, 0.25.0, 0.25.0-r1
    
    Bug: https://bugs.gentoo.org/907930
    Bug: https://bugs.gentoo.org/917651
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-libs/opensc/Manifest                |  2 -
 dev-libs/opensc/opensc-0.24.0.ebuild    | 76 ----------------------------
 dev-libs/opensc/opensc-0.25.0-r1.ebuild | 87 ---------------------------------
 dev-libs/opensc/opensc-0.25.0.ebuild    | 76 ----------------------------
 4 files changed, 241 deletions(-)