OESA-2026-2163

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2026-2163
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2026-2163.json
JSON Data
https://api.osv.dev/v1/vulns/OESA-2026-2163
Upstream
  • CVE-2026-40253
Published
2026-05-03T09:56:51Z
Modified
2026-05-03T10:17:10.437102Z
Summary
opencryptoki security update
Details

openCryptoki is an implementation of the PKCS #11 API that allows interfacing to devices that hold cryptographic information and perform cryptographic functions. openCryptoki provides application portability by isolating the application from the details of the cryptographic device. Isolating the application also provides an added level of security. The openCryptoki API provides a standard programming interface between applications and all kinds of portable cryptographic devices.

Security Fix(es):

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: berdecodeINTEGER, berdecodeSEQUENCE, berdecodeOCTETSTRING, berdecodeBITSTRING, and berdecodeCHOICE. Additionally, berdecodeINTEGER 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 CCreateObject or CUnwrapKey, 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.(CVE-2026-40253)

Database specific
{
    "severity": "Medium"
}
References

Affected packages

openEuler:24.03-LTS-SP3 / opencryptoki

Package

Name
opencryptoki
Purl
pkg:rpm/openEuler/opencryptoki&distro=openEuler-24.03-LTS-SP3

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.26.0-2.oe2403sp3

Ecosystem specific

{
    "x86_64": [
        "opencryptoki-3.26.0-2.oe2403sp3.x86_64.rpm",
        "opencryptoki-debuginfo-3.26.0-2.oe2403sp3.x86_64.rpm",
        "opencryptoki-debugsource-3.26.0-2.oe2403sp3.x86_64.rpm",
        "opencryptoki-devel-3.26.0-2.oe2403sp3.x86_64.rpm"
    ],
    "src": [
        "opencryptoki-3.26.0-2.oe2403sp3.src.rpm"
    ],
    "noarch": [
        "opencryptoki-help-3.26.0-2.oe2403sp3.noarch.rpm"
    ],
    "aarch64": [
        "opencryptoki-3.26.0-2.oe2403sp3.aarch64.rpm",
        "opencryptoki-debuginfo-3.26.0-2.oe2403sp3.aarch64.rpm",
        "opencryptoki-debugsource-3.26.0-2.oe2403sp3.aarch64.rpm",
        "opencryptoki-devel-3.26.0-2.oe2403sp3.aarch64.rpm"
    ]
}

Database specific

source
"https://repo.openeuler.org/security/data/osv/OESA-2026-2163.json"