Out-of-bounds read in Opencryptoki - CVE-2026-40253

 

Out-of-bounds read in Opencryptoki - CVE-2026-40253

Published: April 14, 2026


Vulnerability identifier: #VU125982
CSH Severity: Low
CVSS v4: 6.9 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-40253
CWE-ID: CWE-125
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose sensitive information and cause a denial of service.

The vulnerability exists due to out-of-bounds read in BER/DER decoding functions in usr/lib/common/asn1.c when parsing malformed BER-encoded cryptographic objects with attacker-controlled length fields. A remote attacker can supply a specially crafted key or certificate to disclose sensitive information and cause a denial of service.

The issue affects the shared common library and impacts all token backends, including Soft, ICA, CCA, TPM, EP11, and ICSF.


Affected software

Opencryptoki
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Micro
SUSE Linux Enterprise Micro for Rancher
Red Hat CodeReady Linux Builder for IBM z Systems
Anolis OS
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux Server - AUS
Red Hat CodeReady Linux Builder for ARM 64 - Extended Update Support
Red Hat CodeReady Linux Builder for IBM z Systems - Extended Update Support
Red Hat CodeReady Linux Builder for Power, little endian - Extended Update Support
Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Server Applications Module
openSUSE Leap
openEuler
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
openCryptoki-debuginfo
openCryptoki-devel
openCryptoki-64bit
openCryptoki
openCryptoki-debugsource
openCryptoki-64bit-debuginfo
openCryptoki-32bit
openCryptoki-32bit-debuginfo
opencryptoki-tpmtok
opencryptoki-swtok
opencryptoki-libs
opencryptoki-icsftok
opencryptoki-devel
opencryptoki
opencryptoki (Red Hat package)
openCryptoki-devel-debuginfo
opencryptoki-help
opencryptoki-debuginfo
opencryptoki-debugsource

How to mitigate CVE-2026-40253

Install security update from vendor's website.

openCryptoki-debuginfo - addressed in versions 3.17.0-5.24.1, 3.17.0-150400.4.16.1, 3.23.0-150500.3.15.1, 3.23.0-150500.3.18.1, 3.26.0-150700.5.17.1
openCryptoki-devel - addressed in versions 3.17.0-5.24.1, 3.17.0-150400.4.16.1, 3.23.0-150500.3.15.1, 3.23.0-150500.3.18.1, 3.26.0-150700.5.17.1
openCryptoki-64bit - addressed in versions 3.17.0-5.24.1, 3.17.0-150400.4.16.1, 3.23.0-150500.3.15.1, 3.23.0-150500.3.18.1, 3.26.0-150700.5.17.1
openCryptoki - addressed in versions 3.17.0-5.24.1, 3.17.0-150400.4.16.1, 3.23.0-150500.3.15.1, 3.23.0-150500.3.18.1, 3.26.0-150700.5.17.1
openCryptoki-debugsource - addressed in versions 3.17.0-5.24.1, 3.17.0-150400.4.16.1, 3.23.0-150500.3.15.1, 3.23.0-150500.3.18.1, 3.26.0-150700.5.17.1
openCryptoki-64bit-debuginfo - addressed in versions 3.17.0-150400.4.16.1, 3.23.0-150500.3.15.1, 3.23.0-150500.3.18.1, 3.26.0-150700.5.17.1
openCryptoki-32bit - addressed in versions 3.17.0-150400.4.16.1, 3.23.0-150500.3.15.1, 3.23.0-150500.3.18.1
openCryptoki-32bit-debuginfo - addressed in versions 3.17.0-150400.4.16.1, 3.23.0-150500.3.15.1, 3.23.0-150500.3.18.1
opencryptoki-tpmtok - update to 3.22.0-3
opencryptoki-swtok - update to 3.22.0-3
opencryptoki-libs - update to 3.22.0-3
opencryptoki-icsftok - update to 3.22.0-3
opencryptoki-devel - update to 3.22.0-3
opencryptoki - update to 3.22.0-3
opencryptoki (Red Hat package) - addressed in versions 3.22.0-3.el8_10.3, 3.22.0-3.el9_4.3, 3.24.0-6.el10_0.2
openCryptoki-devel-debuginfo - addressed in versions 3.23.0-150500.3.15.1, 3.23.0-150500.3.18.1
opencryptoki - update to 3.26.0-2
opencryptoki-help - update to 3.26.0-2
opencryptoki-debuginfo - update to 3.26.0-2
opencryptoki-debugsource - update to 3.26.0-2
opencryptoki-devel - update to 3.26.0-2

External References

Related Security Bulletins