CVE-2021-3798

NameCVE-2021-3798
DescriptionA flaw was found in openCryptoki. The openCryptoki Soft token does not check if an EC key is valid when an EC key is created via C_CreateObject, nor when C_DeriveKey is used with ECDH public data. This may allow a malicious user to extract the private key by performing an invalid curve attack.
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
opencryptoki (PTS)bookworm, bullseye3.8.1+dfsg-3.2fixed
sid, trixie3.23.0+dfsg-0.3fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
opencryptokisource(unstable)(not affected)

Notes

- opencryptoki <not-affected> (Vulnerable code introduced later)
https://bugs.launchpad.net/ubuntu/+source/opencryptoki/+bug/1928780
Introduced with: https://github.com/opencryptoki/opencryptoki/commit/a179fd01a265a98194d9c06ec5958da1dd2ecae3 (v3.15.0)
Fixed by: https://github.com/opencryptoki/opencryptoki/commit/4e3b43c3d8844402c04a66b55c6c940f965109f0 (v3.17.0)

Search for package or bug name: Reporting problems