CVE-2021-42778

NameCVE-2021-42778
DescriptionA heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
opensc (PTS)buster0.19.0-1+deb10u1fixed
buster (security)0.19.0-1+deb10u3fixed
bullseye0.21.0-1vulnerable
bookworm0.23.0-0.3+deb12u1fixed
trixie, sid0.25.0~rc1-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
openscsourcestretch(not affected)
openscsourcebuster(not affected)
openscsource(unstable)0.22.0-1

Notes

[bullseye] - opensc <no-dsa> (Minor issue)
[buster] - opensc <not-affected> (Vulnerable code introduced later)
[stretch] - opensc <not-affected> (Vulnerable code introduced later)
https://github.com/OpenSC/OpenSC/commit/f015746d22d249642c19674298a18ad824db0ed7 (0.22.0-rc1)
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28185
https://bugzilla.redhat.com/show_bug.cgi?id=2016083

Search for package or bug name: Reporting problems