Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-40253

published medium CVSS 3.1 · 6.8

openCryptoki: Memory safety vulnerabilities in BER/DER decoders in asn1.c

Published
16 Apr 2026, 22:04:44 UTC
Updated
17 Apr 2026, 12:27:41 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
opencryptoki — opencryptoki<= 3.26.0 Affected Not stated GitHub_M
Amazon Linux AL2 Release evaluation No Fix Planned Not stated Amazon Linux assessment
AlmaLinux 10 opencryptoki Advisory build 3.26.0-3.el10_2.1 ALSA-2026:28231
Oracle Linux 10 opencryptokiaarch64 Advisory build 0:3.26.0-3.el10_2.1 ELSA-2026-28231
Red Hat Enterprise Linux RHEL-10 opencryptokiaarch64 Advisory build 3.24.0-6.el10_0.2 RHSA-2026:36697
Ubuntu jammy opencryptoki Advisory build 3.17.0+dfsg+20220202.b40982e-0ubuntu1.3 USN-8686-1
AlmaLinux 8 opencryptoki Advisory build 3.22.0-3.el8_10.3 ALSA-2026:26352
AlmaLinux 9 opencryptoki Advisory build 3.26.0-2.el9_8.2 ALSA-2026:28256
Show 94 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 10 opencryptokix86_64 Advisory build 0:3.26.0-3.el10_2.1 ELSA-2026-28231
Oracle Linux 8 opencryptokiaarch64 Advisory build 0:3.22.0-3.el8_10.3 ELSA-2026-26352
Oracle Linux 8 opencryptokix86_64 Advisory build 0:3.22.0-3.el8_10.3 ELSA-2026-26352
Oracle Linux 9 opencryptokiaarch64 Advisory build 0:3.26.0-2.el9_8.2 ELSA-2026-28256
Oracle Linux 9 opencryptokix86_64 Advisory build 0:3.26.0-2.el9_8.2 ELSA-2026-28256
Red Hat Enterprise Linux RHEL-10 opencryptokiaarch64 Advisory build 3.26.0-3.el10_2.1 RHSA-2026:28231
Red Hat Enterprise Linux RHEL-10 opencryptokippc64le Advisory build 3.24.0-6.el10_0.2 RHSA-2026:36697
Red Hat Enterprise Linux RHEL-10 opencryptokippc64le Advisory build 3.26.0-3.el10_2.1 RHSA-2026:28231
Red Hat Enterprise Linux RHEL-10 opencryptokis390x Advisory build 3.24.0-6.el10_0.2 RHSA-2026:36697
Red Hat Enterprise Linux RHEL-10 opencryptokis390x Advisory build 3.26.0-3.el10_2.1 RHSA-2026:28231
Red Hat Enterprise Linux RHEL-10 opencryptokisrc Advisory build 3.24.0-6.el10_0.2 RHSA-2026:36697
Red Hat Enterprise Linux RHEL-10 opencryptokisrc Advisory build 3.26.0-3.el10_2.1 RHSA-2026:28231
Red Hat Enterprise Linux RHEL-10 opencryptokix86_64 Advisory build 3.24.0-6.el10_0.2 RHSA-2026:36697
Red Hat Enterprise Linux RHEL-10 opencryptokix86_64 Advisory build 3.26.0-3.el10_2.1 RHSA-2026:28231
Red Hat Enterprise Linux RHEL-8 opencryptokiaarch64 Advisory build 3.22.0-3.el8_10.3 RHSA-2026:26352
Red Hat Enterprise Linux RHEL-8 opencryptokippc64le Advisory build 3.22.0-3.el8_10.3 RHSA-2026:26352
Red Hat Enterprise Linux RHEL-8 opencryptokis390x Advisory build 3.22.0-3.el8_10.3 RHSA-2026:26352
Red Hat Enterprise Linux RHEL-8 opencryptokisrc Advisory build 3.22.0-3.el8_10.3 RHSA-2026:26352
Red Hat Enterprise Linux RHEL-8 opencryptokix86_64 Advisory build 3.22.0-3.el8_10.3 RHSA-2026:26352
Red Hat Enterprise Linux RHEL-9 opencryptokiaarch64 Advisory build 3.22.0-3.el9_4.3 RHSA-2026:33519
Red Hat Enterprise Linux RHEL-9 opencryptokiaarch64 Advisory build 3.24.0-5.el9_6.2 RHSA-2026:36717
Red Hat Enterprise Linux RHEL-9 opencryptokiaarch64 Advisory build 3.26.0-2.el9_8.2 RHSA-2026:28256
Red Hat Enterprise Linux RHEL-9 opencryptokippc64le Advisory build 3.22.0-3.el9_4.3 RHSA-2026:33519
Red Hat Enterprise Linux RHEL-9 opencryptokippc64le Advisory build 3.24.0-5.el9_6.2 RHSA-2026:36717
Red Hat Enterprise Linux RHEL-9 opencryptokippc64le Advisory build 3.26.0-2.el9_8.2 RHSA-2026:28256
Red Hat Enterprise Linux RHEL-9 opencryptokis390x Advisory build 3.22.0-3.el9_4.3 RHSA-2026:33519
Red Hat Enterprise Linux RHEL-9 opencryptokis390x Advisory build 3.24.0-5.el9_6.2 RHSA-2026:36717
Red Hat Enterprise Linux RHEL-9 opencryptokis390x Advisory build 3.26.0-2.el9_8.2 RHSA-2026:28256
Red Hat Enterprise Linux RHEL-9 opencryptokisrc Advisory build 3.22.0-3.el9_4.3 RHSA-2026:33519
Red Hat Enterprise Linux RHEL-9 opencryptokisrc Advisory build 3.24.0-5.el9_6.2 RHSA-2026:36717
Red Hat Enterprise Linux RHEL-9 opencryptokisrc Advisory build 3.26.0-2.el9_8.2 RHSA-2026:28256
Red Hat Enterprise Linux RHEL-9 opencryptokix86_64 Advisory build 3.22.0-3.el9_4.3 RHSA-2026:33519
Red Hat Enterprise Linux RHEL-9 opencryptokix86_64 Advisory build 3.24.0-5.el9_6.2 RHSA-2026:36717
Red Hat Enterprise Linux RHEL-9 opencryptokix86_64 Advisory build 3.26.0-2.el9_8.2 RHSA-2026:28256
Ubuntu noble opencryptoki Advisory build 3.23.0+dfsg-0ubuntu3.1 USN-8686-1
Ubuntu resolute opencryptoki Advisory build 3.26.0+dfsg-0ubuntu1.1 USN-8707-1
AlmaLinux 10 opencryptoki-ccatok Advisory build 3.26.0-3.el10_2.1 ALSA-2026:28231
AlmaLinux 10 opencryptoki-devel Advisory build 3.26.0-3.el10_2.1 ALSA-2026:28231
AlmaLinux 10 opencryptoki-ep11tok Advisory build 3.26.0-3.el10_2.1 ALSA-2026:28231
AlmaLinux 10 opencryptoki-icatok Advisory build 3.26.0-3.el10_2.1 ALSA-2026:28231
AlmaLinux 10 opencryptoki-icsftok Advisory build 3.26.0-3.el10_2.1 ALSA-2026:28231
AlmaLinux 10 opencryptoki-libs Advisory build 3.26.0-3.el10_2.1 ALSA-2026:28231
AlmaLinux 10 opencryptoki-swtok Advisory build 3.26.0-3.el10_2.1 ALSA-2026:28231
AlmaLinux 8 opencryptoki-ccatok Advisory build 3.22.0-3.el8_10.3 ALSA-2026:26352
AlmaLinux 8 opencryptoki-devel Advisory build 3.22.0-3.el8_10.3 ALSA-2026:26352
AlmaLinux 8 opencryptoki-ep11tok Advisory build 3.22.0-3.el8_10.3 ALSA-2026:26352
AlmaLinux 8 opencryptoki-icatok Advisory build 3.22.0-3.el8_10.3 ALSA-2026:26352
AlmaLinux 8 opencryptoki-icsftok Advisory build 3.22.0-3.el8_10.3 ALSA-2026:26352
AlmaLinux 8 opencryptoki-libs Advisory build 3.22.0-3.el8_10.3 ALSA-2026:26352
AlmaLinux 8 opencryptoki-swtok Advisory build 3.22.0-3.el8_10.3 ALSA-2026:26352
AlmaLinux 8 opencryptoki-tpmtok Advisory build 3.22.0-3.el8_10.3 ALSA-2026:26352
AlmaLinux 9 opencryptoki-ccatok Advisory build 3.26.0-2.el9_8.2 ALSA-2026:28256
AlmaLinux 9 opencryptoki-devel Advisory build 3.26.0-2.el9_8.2 ALSA-2026:28256
AlmaLinux 9 opencryptoki-ep11tok Advisory build 3.26.0-2.el9_8.2 ALSA-2026:28256
AlmaLinux 9 opencryptoki-icatok Advisory build 3.26.0-2.el9_8.2 ALSA-2026:28256
AlmaLinux 9 opencryptoki-icsftok Advisory build 3.26.0-2.el9_8.2 ALSA-2026:28256
AlmaLinux 9 opencryptoki-libs Advisory build 3.26.0-2.el9_8.2 ALSA-2026:28256
AlmaLinux 9 opencryptoki-swtok Advisory build 3.26.0-2.el9_8.2 ALSA-2026:28256
Oracle Linux 10 opencryptoki-ccatokx86_64 Advisory build 0:3.26.0-3.el10_2.1 ELSA-2026-28231
Oracle Linux 10 opencryptoki-develaarch64 Advisory build 0:3.26.0-3.el10_2.1 ELSA-2026-28231
Oracle Linux 10 opencryptoki-develx86_64 Advisory build 0:3.26.0-3.el10_2.1 ELSA-2026-28231
Oracle Linux 10 opencryptoki-icsftokaarch64 Advisory build 0:3.26.0-3.el10_2.1 ELSA-2026-28231
Oracle Linux 10 opencryptoki-icsftokx86_64 Advisory build 0:3.26.0-3.el10_2.1 ELSA-2026-28231
Oracle Linux 10 opencryptoki-libsaarch64 Advisory build 0:3.26.0-3.el10_2.1 ELSA-2026-28231
Oracle Linux 10 opencryptoki-libsx86_64 Advisory build 0:3.26.0-3.el10_2.1 ELSA-2026-28231
Oracle Linux 10 opencryptoki-swtokaarch64 Advisory build 0:3.26.0-3.el10_2.1 ELSA-2026-28231
Oracle Linux 10 opencryptoki-swtokx86_64 Advisory build 0:3.26.0-3.el10_2.1 ELSA-2026-28231
Oracle Linux 8 opencryptoki-develaarch64 Advisory build 0:3.22.0-3.el8_10.3 ELSA-2026-26352
Oracle Linux 8 opencryptoki-develx86_64 Advisory build 0:3.22.0-3.el8_10.3 ELSA-2026-26352
Oracle Linux 8 opencryptoki-icsftokaarch64 Advisory build 0:3.22.0-3.el8_10.3 ELSA-2026-26352
Oracle Linux 8 opencryptoki-icsftokx86_64 Advisory build 0:3.22.0-3.el8_10.3 ELSA-2026-26352
Oracle Linux 8 opencryptoki-libsaarch64 Advisory build 0:3.22.0-3.el8_10.3 ELSA-2026-26352
Oracle Linux 8 opencryptoki-libsx86_64 Advisory build 0:3.22.0-3.el8_10.3 ELSA-2026-26352
Oracle Linux 8 opencryptoki-swtokaarch64 Advisory build 0:3.22.0-3.el8_10.3 ELSA-2026-26352
Oracle Linux 8 opencryptoki-swtokx86_64 Advisory build 0:3.22.0-3.el8_10.3 ELSA-2026-26352
Oracle Linux 8 opencryptoki-tpmtokaarch64 Advisory build 0:3.22.0-3.el8_10.3 ELSA-2026-26352
Oracle Linux 8 opencryptoki-tpmtokx86_64 Advisory build 0:3.22.0-3.el8_10.3 ELSA-2026-26352
Oracle Linux 9 opencryptoki-ccatokx86_64 Advisory build 0:3.26.0-2.el9_8.2 ELSA-2026-28256
Oracle Linux 9 opencryptoki-develaarch64 Advisory build 0:3.26.0-2.el9_8.2 ELSA-2026-28256
Oracle Linux 9 opencryptoki-develx86_64 Advisory build 0:3.26.0-2.el9_8.2 ELSA-2026-28256
Oracle Linux 9 opencryptoki-icsftokaarch64 Advisory build 0:3.26.0-2.el9_8.2 ELSA-2026-28256
Oracle Linux 9 opencryptoki-icsftokx86_64 Advisory build 0:3.26.0-2.el9_8.2 ELSA-2026-28256
Oracle Linux 9 opencryptoki-libsaarch64 Advisory build 0:3.26.0-2.el9_8.2 ELSA-2026-28256
Oracle Linux 9 opencryptoki-libsx86_64 Advisory build 0:3.26.0-2.el9_8.2 ELSA-2026-28256
Oracle Linux 9 opencryptoki-swtokaarch64 Advisory build 0:3.26.0-2.el9_8.2 ELSA-2026-28256
Oracle Linux 9 opencryptoki-swtokx86_64 Advisory build 0:3.26.0-2.el9_8.2 ELSA-2026-28256
Red Hat Enterprise Linux RHEL-10 opencryptoki-ccatokppc64le Advisory build 3.24.0-6.el10_0.2 RHSA-2026:36697
Red Hat Enterprise Linux RHEL-10 opencryptoki-ccatokppc64le Advisory build 3.26.0-3.el10_2.1 RHSA-2026:28231
Red Hat Enterprise Linux RHEL-10 opencryptoki-ccatoks390x Advisory build 3.24.0-6.el10_0.2 RHSA-2026:36697
Red Hat Enterprise Linux RHEL-10 opencryptoki-ccatoks390x Advisory build 3.26.0-3.el10_2.1 RHSA-2026:28231
Red Hat Enterprise Linux RHEL-10 opencryptoki-ccatokx86_64 Advisory build 3.24.0-6.el10_0.2 RHSA-2026:36697
Red Hat Enterprise Linux RHEL-10 opencryptoki-ccatokx86_64 Advisory build 3.26.0-3.el10_2.1 RHSA-2026:28231
Red Hat Enterprise Linux RHEL-10 opencryptoki-ccatok-debuginfoppc64le Advisory build 3.24.0-6.el10_0.2 RHSA-2026:36697
Red Hat Enterprise Linux RHEL-10 opencryptoki-ccatok-debuginfoppc64le Advisory build 3.26.0-3.el10_2.1 RHSA-2026:28231

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

29

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
6.8 / 10
Severity
medium
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
opencryptoki opencryptoki <= 3.26.0 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-125 CWE-125: Out-of-bounds Read (GitHub_M · cna)

References

2

Provider assertions

2

GitHub_M · cna

openCryptoki: Memory safety vulnerabilities in BER/DER decoders in asn1.c

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
d1a2ab57d55ac1010cf91216696dd47270fdde84f676af117363af82b60c59e6
Ingested
23 Sep 2026, 09:13:02 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected