Stack-based buffer overflow in OpenSC - CVE-2021-42782
Published: August 5, 2022 / Updated: August 5, 2022
Vulnerability identifier: #VU66137
CSH Severity: Low
CVSS v4: 2.4 [CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-42782
CWE-ID: CWE-121
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows an attacker with physical access to perform a denial of service attack.
The vulnerability exists due to a boundary error in Opensc in various places. An attacker with physical access can trigger stack-based buffer overflow and perform a denial of service attack.
Affected software
OpenSC
Gentoo Linux
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing 12
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro
SUSE Enterprise Storage
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
HPE Helion Openstack
SUSE Linux Enterprise Point of Sale
SUSE Linux Enterprise Debuginfo
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Desktop
openSUSE Leap
Ubuntu
openEuler
opensc-pkcs11 (Ubuntu package)
opensc (Ubuntu package)
libopensc2
opensc
libopensc2-32bit
opensc-32bit
opensc-debuginfo
opensc-debugsource
opensc-debuginfo-32bit
opensc-32bit-debuginfo
opensc-help
dev-libs/opensc
Gentoo Linux
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing 12
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro
SUSE Enterprise Storage
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
HPE Helion Openstack
SUSE Linux Enterprise Point of Sale
SUSE Linux Enterprise Debuginfo
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Desktop
openSUSE Leap
Ubuntu
openEuler
opensc-pkcs11 (Ubuntu package)
opensc (Ubuntu package)
libopensc2
opensc
libopensc2-32bit
opensc-32bit
opensc-debuginfo
opensc-debugsource
opensc-debuginfo-32bit
opensc-32bit-debuginfo
opensc-help
dev-libs/opensc
How to mitigate CVE-2021-42782
Install updates from vendor's website.
OpenSC - update to 0.22.0
opensc-pkcs11 (Ubuntu package) - addressed in versions Ubuntu Pro, 0.25.1-2ubuntu1.1
opensc (Ubuntu package) - addressed in versions Ubuntu Pro, 0.25.1-2ubuntu1.1
libopensc2 - update to 0.11.6-5.27.14.1
opensc - addressed in versions 0.11.6-5.27.14.1, 0.13.0-3.19.1, 0.13.0-3.25.1, 0.18.0-150000.3.23.1, 0.19.0-150100.3.16.1
libopensc2-32bit - update to 0.11.6-5.27.14.1
opensc-32bit - addressed in versions 0.11.6-5.27.14.1, 0.19.0-150100.3.16.1
opensc-debuginfo - addressed in versions 0.11.6-5.27.14.1, 0.13.0-3.19.1, 0.13.0-3.25.1, 0.18.0-150000.3.23.1, 0.19.0-150100.3.16.1
opensc-debugsource - addressed in versions 0.11.6-5.27.14.1, 0.13.0-3.19.1, 0.13.0-3.25.1, 0.18.0-150000.3.23.1, 0.19.0-150100.3.16.1
opensc-debuginfo-32bit - update to 0.11.6-5.27.14.1
opensc-32bit-debuginfo - update to 0.19.0-150100.3.16.1
opensc-debugsource - update to 0.20.0-10
opensc-help - update to 0.20.0-10
opensc-debuginfo - update to 0.20.0-10
opensc - update to 0.20.0-10
dev-libs/opensc - update to 0.22.0
opensc-pkcs11 (Ubuntu package) - addressed in versions Ubuntu Pro, 0.25.1-2ubuntu1.1
opensc (Ubuntu package) - addressed in versions Ubuntu Pro, 0.25.1-2ubuntu1.1
libopensc2 - update to 0.11.6-5.27.14.1
opensc - addressed in versions 0.11.6-5.27.14.1, 0.13.0-3.19.1, 0.13.0-3.25.1, 0.18.0-150000.3.23.1, 0.19.0-150100.3.16.1
libopensc2-32bit - update to 0.11.6-5.27.14.1
opensc-32bit - addressed in versions 0.11.6-5.27.14.1, 0.19.0-150100.3.16.1
opensc-debuginfo - addressed in versions 0.11.6-5.27.14.1, 0.13.0-3.19.1, 0.13.0-3.25.1, 0.18.0-150000.3.23.1, 0.19.0-150100.3.16.1
opensc-debugsource - addressed in versions 0.11.6-5.27.14.1, 0.13.0-3.19.1, 0.13.0-3.25.1, 0.18.0-150000.3.23.1, 0.19.0-150100.3.16.1
opensc-debuginfo-32bit - update to 0.11.6-5.27.14.1
opensc-32bit-debuginfo - update to 0.19.0-150100.3.16.1
opensc-debugsource - update to 0.20.0-10
opensc-help - update to 0.20.0-10
opensc-debuginfo - update to 0.20.0-10
opensc - update to 0.20.0-10
dev-libs/opensc - update to 0.22.0