CVE-2019-16058

NameCVE-2019-16058
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, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, 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)bullseye0.3.1-1fixed
bookworm0.3.1-1.2fixed
sid, trixie0.6.0-2fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pam-p11source(unstable)0.3.1-1939664

Notes

[buster] - pam-p11 <no-dsa> (Minor issue)
[stretch] - pam-p11 <no-dsa> (Minor issue)
[jessie] - pam-p11 <no-dsa> (Minor issue)
https://github.com/OpenSC/pam_p11/commit/d150b60e1e14c261b113f55681419ad1dfa8a76c
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