Skip to content

RUSTSEC-2026-0286 Out-of-bounds read when decoding CKA_ALLOWED_MECHANISMS

Unknown
Published
Updated
Exploit status
No public exploit known

Description

cryptoki treated the CKA_ALLOWED_MECHANISMS ulValueLen byte count as a
CK_MECHANISM_TYPE element count. A valid nonempty attribute returned through
the safe Session::get_attributes API could cause construction of an
out-of-bounds slice and undefined behavior.

Possible consequences include a process crash or denial of service and
potential disclosure of adjacent heap words. Upgrade to the fixed patch release
for the cryptoki 0.10, 0.11, or 0.12 line.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
crates.io cryptoki(crates.io) >= 0.0.0-0, < 0.10.1; >= 0.11.0, < 0.11.1; >= 0.12.0, < 0.12.1 0.10.1, 0.11.1, 0.12.1 Fixed

Affected products

ProductAffected versionsFixed in
crates.io cryptoki(crates.io) >= 0.0.0-0, < 0.10.1 0.10.1
crates.io cryptoki(crates.io) >= 0.11.0, < 0.11.1 0.11.1
crates.io cryptoki(crates.io) >= 0.12.0, < 0.12.1 0.12.1

References