CVE-2026-22791 openCryptoki incorrectly calculates the buffer size in C_WrapKey with CKM_ECDH_AES_KEY_WRAP
MediumCVSS 6.1
EPSS 0.28%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
openCryptoki is a PKCS#11 library and tools for Linux and AIX. In 3.25.0 and 3.26.0, there is a heap buffer overflow vulnerability in the CKM_ECDH_AES_KEY_WRAP implementation allows an attacker with local access to cause out-of-bounds writes in the host process by supplying a compressed EC public key and invoking C_WrapKey. This can lead to heap corruption, or denial-of-service.
Upgrade path
5 packages: 1 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/opencryptoki(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/opencryptoki(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| ubuntu/opencryptoki(Ubuntu 26.04) | < 3.26.0+dfsg-0ubuntu1.1 | 3.26.0+dfsg-0ubuntu1.1 | Fixed |
| opencryptoki | = >= 3.25.0, <= 3.26.0 | No fix listed | Versions listed |
| opencryptoki project opencryptoki | = 3.25.0; = 3.26.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| opencryptoki | = >= 3.25.0, <= 3.26.0 | No fix listed |
| redhat/opencryptoki(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/opencryptoki(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| ubuntu/opencryptoki(Ubuntu:26.04) | < 3.26.0+dfsg-0ubuntu1.1 | 3.26.0+dfsg-0ubuntu1.1 |
| opencryptoki project opencryptoki | = 3.25.0 | No fix listed |
| opencryptoki project opencryptoki | = 3.26.0 | No fix listed |
References
- https://github.com/opencryptoki/opencryptoki/security/advisories/GHSA-26f5-3mwq-4wm7 exploit patch vendor-advisory
- https://github.com/opencryptoki/opencryptoki/commit/785d7577e1477d12fbe235554e7e7b24f2de34b7 patch
- https://github.com/opencryptoki/opencryptoki/commit/e37e9127deeeb7bf3c3c4d852c594256c57ec3a8 patch
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2429335 issue-tracking
- www.cve.org
- nvd.nist.gov
- Ubuntu CVE tracker vendor-advisory
- USN-8707-1 vendor-advisory
- Debian Security Tracker CVE-2026-22791 vendor-advisory