CVE-2026-40253

EUVD-2026-23318
openCryptoki is a PKCS#11 library and provides tooling for Linux and AIX. In versions 3.26.0 and below, the BER/DER decoding functions in the shared common library (asn1.c) accept a raw pointer but no buffer length parameter, and trust attacker-controlled BER length fields without validating them against actual buffer boundaries. All primitive decoders are affected: ber_decode_INTEGER, ber_decode_SEQUENCE, ber_decode_OCTET_STRING, ber_decode_BIT_STRING, and ber_decode_CHOICE. Additionally, ber_decode_INTEGER can produce integer underflows when the encoded length is zero. An attacker supplying a malformed BER-encoded cryptographic object through PKCS#11 operations such as C_CreateObject or C_UnwrapKey, token loading from disk, or remote backend communication can trigger out-of-bounds reads. This affects all token backends (Soft, ICA, CCA, TPM, EP11, ICSF) since the vulnerable code is in the shared common library. A patch is available thorugh commit ed378f463ef73364c89feb0fc923f4dc867332a3.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
6.8 MEDIUM
LOCAL
LOW
NONE
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 5%
Affected Products (NVD)
VendorProductVersion
opencryptoki_projectopencryptoki
𝑥
≤ 3.26.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
opencryptoki
bookworm
no-dsa
bullseye
postponed
forky
3.27.0-1
fixed
sid
3.27.0-1
fixed
trixie
no-dsa
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
opencryptoki
bionic
needs-triage
focal
needs-triage
jammy
needs-triage
noble
needs-triage
questing
ignored
resolute
needs-triage
xenial
ignored
openSUSE logo
openSUSE / SLES Releases
openSUSE Product
Release
openCryptoki
suse enterprise sap 15 SP7
3.26.0-150700.5.17.1
fixed
suse enterprise server 15 SP4
3.17.0-150400.4.16.1
fixed
suse enterprise server 15 SP7
3.26.0-150700.5.17.1
fixed
openCryptoki-64bit
suse enterprise sap 15 SP7
3.26.0-150700.5.17.1
fixed
suse enterprise server 15 SP7
3.26.0-150700.5.17.1
fixed
openCryptoki-devel
suse enterprise sap 15 SP7
3.26.0-150700.5.17.1
fixed
suse enterprise server 15 SP4
3.17.0-150400.4.16.1
fixed
suse enterprise server 15 SP7
3.26.0-150700.5.17.1
fixed
Red Hat logo
Red Hat Enterprise Linux Releases
Red Hat Product
Release
opencryptoki
RHEL 8
0:3.22.0-3.el8_10.3
fixed
RHEL 9
0:3.26.0-2.el9_8.2
fixed
opencryptoki-ccatok
RHEL 8
0:3.22.0-3.el8_10.3
fixed
RHEL 9
0:3.26.0-2.el9_8.2
fixed
opencryptoki-devel
RHEL 8
0:3.22.0-3.el8_10.3
fixed
RHEL 9
0:3.26.0-2.el9_8.2
fixed
opencryptoki-ep11tok
RHEL 8
0:3.22.0-3.el8_10.3
fixed
RHEL 9
0:3.26.0-2.el9_8.2
fixed
opencryptoki-icatok
RHEL 8
0:3.22.0-3.el8_10.3
fixed
RHEL 9
0:3.26.0-2.el9_8.2
fixed
opencryptoki-icsftok
RHEL 8
0:3.22.0-3.el8_10.3
fixed
RHEL 9
0:3.26.0-2.el9_8.2
fixed
opencryptoki-libs
RHEL 8
0:3.22.0-3.el8_10.3
fixed
RHEL 9
0:3.26.0-2.el9_8.2
fixed
opencryptoki-swtok
RHEL 8
0:3.22.0-3.el8_10.3
fixed
RHEL 9
0:3.26.0-2.el9_8.2
fixed
opencryptoki-tpmtok
RHEL 8
0:3.22.0-3.el8_10.3
fixed