title: Opensc: multiple memory issues with pkcs15-init (enrollment tool)
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.
problem types: Improper Restriction of Operations within the Bounds of a Memory Buffer
affected:
{
product: OpenSC
vendor: n/a
versions:
version: 0.24.0-rc1, status: unaffected
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: opensc
defaultStatus: affected
versions:
version: 0:0.20.0-7.el8_9, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/o:redhat:enterprise_linux:8::baseos
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 9
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: opensc
defaultStatus: affected
versions:
version: 0:0.23.0-3.el9_3, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/o:redhat:enterprise_linux:9::baseos
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 7
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: opensc
defaultStatus: unknown
cpes: cpe:/o:redhat:enterprise_linux:7
}
{
product: Fedora
vendor: Fedora
collectionURL: https://packages.fedoraproject.org/
packageName: opensc
defaultStatus: affected
}
metrics:
other: [
content: {'value': 'Moderate', 'namespace': 'https://access.redhat.com/security/updates/classification/'}
type: Red Hat severity rating
]