Heap-based buffer overflow in OpenSC - CVE-2021-42781

 

Heap-based buffer overflow in OpenSC - CVE-2021-42781

Published: August 5, 2022 / Updated: August 5, 2022


Vulnerability identifier: #VU66141
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:P/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2021-42781
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: OpenSC
Affected software:
OpenSC

Detailed vulnerability description

The vulnerability allows an attacker with physical access to perform denial of service attack.

The vulnerability exists due to a boundary error in Opensc before in pkcs15-oberthur.c. An attacker with physical access can pass specially crafted data to the application, trigger a heap-based buffer overflow and perform denial of service attack.


How to mitigate CVE-2021-42781

Install updates from vendor's website.

Sources