DescriptionAn issue was discovered in the pam_p11 component 0.2.0 and 0.3.0 for OpenSC. If a smart card creates a signature with a length longer than 256 bytes, this triggers a buffer overflow. This may be the case for RSA keys with 4096 bits depending on the signature scheme.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub advisories/code/issues, web search, more)
Debian Bugs939664

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pam-p11 (PTS)buster0.2.0-2vulnerable
bookworm, sid0.3.1-1.1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs


[buster] - pam-p11 <no-dsa> (Minor issue)
[stretch] - pam-p11 <no-dsa> (Minor issue)
[jessie] - pam-p11 <no-dsa> (Minor issue)
PKCS11_sign() is used in Jessie and Stretch and has a similar problem as EVP_SignFinal() everywhere else

Search for package or bug name: Reporting problems