CVEfocus › CVE database › CVE-2026-22791

CVE-2026-22791openCryptoki incorrectly calculates the buffer size in C_WrapKey with…

CVSS 6.6 MediumEPSS 0.2% (higher than 7% of CVEs)Published 2026-01-13Updated 2026-01-13Assigner: GitHub_M

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.

CWE-131

What to do

Fixed builds are available from Ubuntu: see the table below for the fixed version per release.

Red Hat has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
16Fix pending
1Will not fix
23Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04opencryptokiFixed3.26.0+dfsg-0ubuntu1.1UBUNTU-CVE-2026-22791
Ubuntu 25.10opencryptokiWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-22791
Ubuntu 24.04opencryptokiNot affected
vulnerable_code_not_present
Ubuntu 22.04opencryptokiNot affected
vulnerable_code_not_present
Red Hat Enterprise Linux 10opencryptokiFix pending
Fix deferred
Red Hat Enterprise Linux 10opencryptoki-ccatokFix pending
Fix deferred
Red Hat Enterprise Linux 10opencryptoki-develFix pending
Fix deferred
Red Hat Enterprise Linux 10opencryptoki-ep11tokFix pending
Fix deferred
Red Hat Enterprise Linux 10opencryptoki-icatokFix pending
Fix deferred
Red Hat Enterprise Linux 10opencryptoki-icsftokFix pending
Fix deferred
Red Hat Enterprise Linux 10opencryptoki-libsFix pending
Fix deferred
Red Hat Enterprise Linux 10opencryptoki-swtokFix pending
Fix deferred
Red Hat Enterprise Linux 9opencryptokiFix pending
Fix deferred
Red Hat Enterprise Linux 9opencryptoki-ccatokFix pending
Fix deferred
Red Hat Enterprise Linux 9opencryptoki-develFix pending
Fix deferred
Red Hat Enterprise Linux 9opencryptoki-ep11tokFix pending
Fix deferred
Red Hat Enterprise Linux 9opencryptoki-icatokFix pending
Fix deferred
Red Hat Enterprise Linux 9opencryptoki-icsftokFix pending
Fix deferred
Red Hat Enterprise Linux 9opencryptoki-libsFix pending
Fix deferred
Red Hat Enterprise Linux 9opencryptoki-swtokFix pending
Fix deferred
Red Hat Enterprise Linux 8opencryptokiNot affected
Red Hat Enterprise Linux 8opencryptoki-ccatokNot affected
Red Hat Enterprise Linux 8opencryptoki-develNot affected
Red Hat Enterprise Linux 8opencryptoki-ep11tokNot affected
Red Hat Enterprise Linux 8opencryptoki-icatokNot affected
Red Hat Enterprise Linux 8opencryptoki-icsftokNot affected
Red Hat Enterprise Linux 8opencryptoki-libsNot affected
Red Hat Enterprise Linux 8opencryptoki-swtokNot affected
Red Hat Enterprise Linux 8opencryptoki-tpmtokNot affected
Red Hat Enterprise Linux 7opencryptokiNot affected
Red Hat Enterprise Linux 7opencryptoki-ccatokNot affected
Red Hat Enterprise Linux 7opencryptoki-develNot affected
Red Hat Enterprise Linux 7opencryptoki-ep11tokNot affected
Red Hat Enterprise Linux 7opencryptoki-icatokNot affected
Red Hat Enterprise Linux 7opencryptoki-icsftokNot affected
Red Hat Enterprise Linux 7opencryptoki-libsNot affected
Red Hat Enterprise Linux 7opencryptoki-swtokNot affected
Red Hat Enterprise Linux 7opencryptoki-tpmtokNot affected
Red Hat Enterprise Linux 6opencryptokiNot affected
Red Hat Enterprise Linux 6opencryptoki-develNot affected
Red Hat Enterprise Linux 6opencryptoki-libsNot affected

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.