CVE catalog

CVE-2026-40253

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

[CVE catalog]

Severity
Medium · CVSS 6.8CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.16% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianopencryptokisid3.27.0-1fixed
Debianopencryptokiforky3.27.0-1fixed
Debianopencryptokitrixie3.23.0+dfsg-0.3+deb13u1fixed
Debianopencryptokibookworm3.8.1+dfsg-3.2vulnerable
CpeopencryptokiNot reportedNot reportedvulnerable
CpeopencryptokiNot reportedNot reportedunknown
Ubuntuopencryptokinoble3.23.0+dfsg-0ubuntu3.1fixed
Ubuntulibopencryptoki-devnoble3.23.0+dfsg-0ubuntu3.1fixed
Ubuntulibopencryptoki0noble3.23.0+dfsg-0ubuntu3.1fixed
SuseopenCryptokilinux enterprise server 12 sp5-ltss3.17.0-5.24.1fixed
Ubuntuopencryptoki16.042.3.1+dfsg-3ubuntu5vulnerable
Ubuntuopencryptoki16.043.4.1+dfsg-1ubuntu1vulnerable
Ubuntuopencryptoki16.043.4.1+dfsg-1ubuntu2vulnerable
Ubuntuopencryptoki16.043.4.1+dfsg-1ubuntu3vulnerable
Ubuntuopencryptoki16.043.4.1+dfsg-1ubuntu4vulnerable
Ubuntuopencryptoki16.043.4.1+dfsg-1ubuntu4.1vulnerable
Ubuntuopencryptoki18.043.7.0+dfsg-4vulnerable
Ubuntuopencryptoki18.043.8.1+dfsg-2vulnerable
Ubuntuopencryptoki18.043.8.1+dfsg-3vulnerable
Ubuntuopencryptoki18.043.8.2+dfsg-0ubuntu1vulnerable
Ubuntuopencryptoki18.043.9.0+dfsg-0ubuntu1vulnerable
Ubuntuopencryptoki18.043.9.0+dfsg-0ubuntu1.1vulnerable
Ubuntuopencryptoki18.043.9.0+dfsg-0ubuntu1.2vulnerable
Ubuntuopencryptoki18.043.9.0+dfsg-0ubuntu1.3vulnerable
Ubuntuopencryptoki18.043.9.0+dfsg-0ubuntu1.4vulnerable
Ubuntuopencryptoki20.043.11.1+dfsg-0ubuntu2vulnerable
Ubuntuopencryptoki20.043.11.1+dfsg-0ubuntu3vulnerable
Ubuntuopencryptoki20.043.12.1+dfsg-0ubuntu1vulnerable
Ubuntuopencryptoki20.043.13.0+dfsg-0ubuntu4vulnerable
Ubuntuopencryptoki20.043.13.0+dfsg-0ubuntu5vulnerable
Ubuntuopencryptoki20.043.13.0+dfsg-0ubuntu5.1vulnerable
Ubuntuopencryptoki20.043.13.0+dfsg-0ubuntu5.2vulnerable
Ubuntuopencryptoki22.043.16.0+dfsg-0ubuntu1vulnerable
Ubuntuopencryptoki22.043.16.0+dfsg-0ubuntu2vulnerable
Ubuntuopencryptoki22.043.16.0+dfsg-0ubuntu3vulnerable
Ubuntuopencryptoki22.043.17.0+dfsg+20220202.b40982e-0ubuntu1vulnerable
Ubuntuopencryptoki22.043.17.0+dfsg+20220202.b40982e-0ubuntu1.1vulnerable
Ubuntuopencryptoki22.043.17.0+dfsg+20220202.b40982e-0ubuntu1.2vulnerable
Ubuntuopencryptoki22.043.17.0+dfsg+20220202.b40982e-0ubuntu1.3fixed
Ubuntuopencryptoki24.043.21.0+dfsg-0ubuntu1vulnerable
Ubuntuopencryptoki24.043.21.0+dfsg-0ubuntu2vulnerable
Ubuntuopencryptoki24.043.22.0+dfsg-0ubuntu1vulnerable
Ubuntuopencryptoki24.043.23.0+dfsg-0ubuntu1vulnerable
Ubuntuopencryptoki24.043.23.0+dfsg-0ubuntu2vulnerable
Ubuntuopencryptoki24.043.23.0+dfsg-0ubuntu3vulnerable
Ubuntuopencryptoki24.043.23.0+dfsg-0ubuntu3.1fixed
Ubuntuopencryptoki25.103.24.0+git20250128.0462717+dfsg-0ubuntu1vulnerable
Ubuntuopencryptoki25.103.25.0+dfsg-0ubuntu1vulnerable
Ubuntuopencryptoki26.043.25.0+dfsg-0ubuntu1vulnerable
Ubuntuopencryptoki26.043.26.0+dfsg-0ubuntu1vulnerable
Ubuntuopencryptoki26.043.26.0+dfsg-0ubuntu1.1fixed
SuseopenCryptokilinux enterprise module for server applications 15 sp73.26.0-150700.5.17.1fixed
SuseopenCryptokilinux enterprise server ltss extended security 12 sp53.17.0-5.24.1fixed
SuseopenCryptokilinux enterprise micro 5.43.17.0-150400.4.16.1fixed
OpensuseopenCryptokitumbleweed3.26.0-6.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianopencryptokisourcesid3.27.0-1not yet assignedNot reported[1136019]
Debianopencryptokisourceforky3.27.0-1not yet assignedNot reported[1136019]
Debianopencryptokisourcetrixie3.23.0+dfsg-0.3+deb13u1not yet assignedNot reported[1136019]
Debianopencryptokisourcebookworm(unfixed)not yet assignedNot reported[1136019]
Ubuntuopencryptokidebnoble3.23.0+dfsg-0ubuntu3.1Not reportedNot reportedNot reported
Ubuntulibopencryptoki-devdebnoble3.23.0+dfsg-0ubuntu3.1Not reportedNot reportedNot reported
Ubuntulibopencryptoki0debnoble3.23.0+dfsg-0ubuntu3.1Not reportedNot reportedNot reported
SuseopenCryptokirpmlinux enterprise server 12 sp5-ltss3.17.0-5.24.1Not reportedSUSE-SU-2026:2685-2Not reported
Ubuntuopencryptokideb22.043.17.0+dfsg+20220202.b40982e-0ubuntu1.3Not reportedUBUNTU-CVE-2026-40253Not reported
Ubuntuopencryptokideb24.043.23.0+dfsg-0ubuntu3.1Not reportedUBUNTU-CVE-2026-40253Not reported
Ubuntuopencryptokideb26.043.26.0+dfsg-0ubuntu1.1Not reportedUBUNTU-CVE-2026-40253Not reported
SuseopenCryptokirpmlinux enterprise module for server applications 15 sp73.26.0-150700.5.17.1Not reportedSUSE-SU-2026:2757-1Not reported
SuseopenCryptokirpmlinux enterprise server ltss extended security 12 sp53.17.0-5.24.1Not reportedSUSE-SU-2026:2685-1Not reported
SuseopenCryptokirpmlinux enterprise micro 5.43.17.0-150400.4.16.1Not reportedSUSE-SU-2026:2355-1Not reported
OpensuseopenCryptokirpmtumbleweed3.26.0-6.1Not reportedOPENSUSE-SU-2026:10593-1Not reported

[Debian bug #1136019]

Notes

[bookworm] opencryptoki: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [opencryptoki]

    Details (2)
    • 3.8.1+dfsg-3.2+b3 · amd64 · bookworm

      Affected

      nvd · opencryptoki · debian · bookworm; nvd · opencryptoki · debian · 12

    • 3.8.1+dfsg-3.2+b3 · arm64 · bookworm

      Affected

      nvd · opencryptoki · debian · bookworm; nvd · opencryptoki · debian · 12

  • Source package: [opencryptoki]

    Details (2)
    • 3.8.1+dfsg-3.2+b3 · amd64 · bookworm

      Affected

      nvd · opencryptoki · debian · bookworm; nvd · opencryptoki · debian · 12

    • 3.8.1+dfsg-3.2+b3 · arm64 · bookworm

      Affected

      nvd · opencryptoki · debian · bookworm; nvd · opencryptoki · debian · 12

  • [opencryptoki]Affected

    Source package: [opencryptoki]

    Details (2)
    • 3.8.1+dfsg-3.2+b3 · amd64 · bookworm

      Affected

      nvd · opencryptoki · debian · bookworm; nvd · opencryptoki · debian · 12

    • 3.8.1+dfsg-3.2+b3 · arm64 · bookworm

      Affected

      nvd · opencryptoki · debian · bookworm; nvd · opencryptoki · debian · 12

[Debian 13 (Trixie)]

  • Source package: [opencryptoki]

    Details (2)
    • 3.23.0+dfsg-0.3+b2 · amd64 · trixie

      Affected · Fixed: 3.23.0+dfsg-0.3+deb13u1

      nvd · opencryptoki · debian · 13

    • 3.23.0+dfsg-0.3+b2 · arm64 · trixie

      Affected · Fixed: 3.23.0+dfsg-0.3+deb13u1

      nvd · opencryptoki · debian · 13

  • Source package: [opencryptoki]

    Details (2)
    • 3.23.0+dfsg-0.3+b2 · amd64 · trixie

      Affected · Fixed: 3.23.0+dfsg-0.3+deb13u1

      nvd · opencryptoki · debian · 13

    • 3.23.0+dfsg-0.3+b2 · arm64 · trixie

      Affected · Fixed: 3.23.0+dfsg-0.3+deb13u1

      nvd · opencryptoki · debian · 13

  • [opencryptoki]Affected

    Source package: [opencryptoki]

    Details (2)
    • 3.23.0+dfsg-0.3+b2 · amd64 · trixie

      Affected · Fixed: 3.23.0+dfsg-0.3+deb13u1

      nvd · opencryptoki · debian · 13

    • 3.23.0+dfsg-0.3+b2 · arm64 · trixie

      Affected · Fixed: 3.23.0+dfsg-0.3+deb13u1

      nvd · opencryptoki · debian · 13

[openSUSE Tumbleweed]

  • Source package: [openCryptoki]

    Details (1)
    • 3.27.0-3.2 · x86_64 · tumbleweed

      Unknown · Fixed: 3.26.0-6.1

      Version impact unknown

      nvd · openCryptoki · opensuse · tumbleweed

  • Source package: [openCryptoki]

    Details (1)
    • 3.27.0-3.2 · x86_64 · tumbleweed

      Unknown · Fixed: 3.26.0-6.1

      Version impact unknown

      nvd · openCryptoki · opensuse · tumbleweed

  • Source package: [openCryptoki]

    Details (1)
    • 3.27.0-3.2 · x86_64 · tumbleweed

      Fixed · Fixed: 3.26.0-6.1

      nvd · openCryptoki · opensuse · tumbleweed

Observed:

References