Out-of-bounds read in OpenSC - CVE-2023-4535
Published: November 10, 2023
Vulnerability details
The vulnerability allows an attacker to gain access to potentially sensitive information.
The vulnerability exists due to a boundary condition within the MyEID driver when handling symmetric key encryption. An attacker with physical access to the system can use a specially crafted USB device to trigger an out-of-bounds read error and gain access to potentially sensitive information.
Affected software
Gentoo Linux
Amazon Linux AMI
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Fedora
opensc
opensc (Red Hat package)
dev-libs/opensc
How to mitigate CVE-2023-4535
opensc - update to 0.23.0-3
opensc (Red Hat package) - update to 0.23.0-3.el9_3
dev-libs/opensc - update to 0.24.0
opensc - addressed in versions 0.24.0-1.fc38, 0.24.0-1.fc39
External References
- https://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1
- https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisories
- https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651
- https://bugzilla.redhat.com/show_bug.cgi?id=2240914
- https://access.redhat.com/security/cve/CVE-2023-4535
- https://github.com/OpenSC/OpenSC/commit/f1993dc4e0b33050b8f72a3558ee88b24c4063b2