CVE-2026-40510
opensc: OpenSC: Memory corruption via crafted PIV smart card
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · May 29, 2026
Updated · July 3, 2026
Description
A flaw was found in OpenSC. A physically present attacker can exploit a stack buffer overflow vulnerability in the piv_process_history() function by presenting a specially crafted Personal Identity Verification (PIV) smart card or USB device. This can lead to memory corruption within the system, potentially causing instability or unexpected behavior.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 6.3CVSS:3.1/AV:P/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')