Buffer Over-read in OpenSC - CVE-2025-66038
Published: April 2, 2026
Vulnerability details
The vulnerability allows an attacker with physical access to disclose sensitive information, modify memory, or cause a denial of service.
The vulnerability exists due to out-of-bounds pointer return in sc_compacttlv_find_tag when parsing crafted compact-TLV data from untrusted cards or files. An attacker with physical access can provide a specially crafted compact-TLV buffer to disclose sensitive information, modify memory, or cause a denial of service.
The issue occurs because the function can return a pointer past the end of the buffer together with an unchecked length value, which may lead to downstream memory corruption when subsequent code dereferences the returned pointer.
Affected software
SUSE Linux Enterprise Micro
SUSE Linux Enterprise Micro for Rancher
Anolis OS
Fedora
opensc-debugsource
opensc-debuginfo
opensc
opensc-libs
opensc-doc
How to mitigate CVE-2025-66038
opensc-debugsource - update to 0.19.0-150100.3.34.1
opensc-debuginfo - update to 0.19.0-150100.3.34.1
opensc - update to 0.19.0-150100.3.34.1
opensc - update to 0.26.1-2
opensc-libs - update to 0.26.1-2
opensc-doc - update to 0.26.1-2
opensc - addressed in versions 0.27.1-1.fc42, 0.27.1-1.fc43, 0.27.1-1.fc44