Logo
vulnerabilityCVE-2023-40661
Name
CVE-2023-40661
Source
NVD ( link)Debian ( link)
Description
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.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
opensc
Patched

Vulnerability Ratings#


5.4
CVSSv31
6.4
CVSSv31

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
0.27.1
Not Affected
buildroot
master
0.27.1
Not Affected
openwrt
master
0.27.1-r1
Not Affected
openwrt
openwrt-25.12
0.26.1-r1
Not Affected
yocto
master
0.27.1
Not Affected
yocto
scarthgap
0.25.1
Not Affected

Resolved with patches#


opensc (yocto:kirkstone)

#
Title
Author
Resolve
1
sc_pkcs15init_rmdir: prevent out of bounds write
Frank Morgner <frankmorgner@gmail.com>
CVE-2023-40661
2
Check array bounds
Veronika Hanulikova <xhanulik@fi.muni.cz>
CVE-2023-40661
3
pkcs15: Avoid buffer overflow when getting last update
Jakub Jelen <jjelen@redhat.com>
CVE-2023-40661
4
setcos: Avoid buffer underflow
Jakub Jelen <jjelen@redhat.com>
CVE-2023-40661
5
Check length of string before making copy
Veronika Hanulikova <xhanulik@fi.muni.cz>
CVE-2023-40661
6
oberthur: Avoid buffer overflow
Jakub Jelen <jjelen@redhat.com>
CVE-2023-40661
7
pkcs15-cflex: check path length to prevent underflow
=?UTF-8?q?Veronika=20Hanul=C3=ADkov=C3=A1?= <vhanulik@redhat.com>
CVE-2023-40661