CVEfocus › CVE database › CVE-2026-13757

CVE-2026-13757P11-kit: stack exhaustion via unbounded recursion in rpc attribute parsing

CVSS 6.2 MediumEPSS 0.2% (higher than 6% of CVEs)Published 2026-06-29Updated 2026-11-24Assigner: redhat

A flaw was found in p11-kit. The RPC message attribute parsing functions p11_rpc_message_get_attribute() and p11_rpc_message_get_attribute_array_value() form a mutually-recursive call chain with no recursion depth limit when processing nested CKA_WRAP_TEMPLATE, CKA_UNWRAP_TEMPLATE, and CKA_DERIVE_TEMPLATE attributes. An unauthenticated attacker with local access to the p11-kit RPC Unix domain socket can send a specially crafted request with deeply nested template attributes, causing stack exhaustion and crashing the p11-kit server process and its dependent services.

CWE-674

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have 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

25Fixed
16Fix pending
1Will not fix

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.04p11-kitFix pendingUBUNTU-CVE-2026-13757
Ubuntu 25.10p11-kitWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-13757
Ubuntu 24.04p11-kitFixed0.25.3-4ubuntu2.2UBUNTU-CVE-2026-13757
Ubuntu 22.04p11-kitFixed0.24.0-6ubuntu0.1UBUNTU-CVE-2026-13757
Ubuntu 20.04p11-kitFix pending0.23.20-1ubuntu0.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-13757
Ubuntu 18.04p11-kitFix pending0.23.9-2ubuntu0.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-13757
Debian 14p11-kitFixed0.26.4-1DEBIAN-CVE-2026-13757
Debian 13p11-kitFix pendingDEBIAN-CVE-2026-13757
Debian 12p11-kitFix pendingDEBIAN-CVE-2026-13757
Red Hat Enterprise Linux 10p11-kitFixed0:0.26.4-1.el10_2RHSA-2026:49668
Red Hat Enterprise Linux 10p11-kit-clientFixed0:0.26.4-1.el10_2RHSA-2026:49668
Red Hat Enterprise Linux 10p11-kit-develFixed0:0.26.4-1.el10_2RHSA-2026:49668
Red Hat Enterprise Linux 10p11-kit-serverFixed0:0.26.4-1.el10_2RHSA-2026:49668
Red Hat Enterprise Linux 10p11-kit-trustFixed0:0.26.4-1.el10_2RHSA-2026:49668
Red Hat Enterprise Linux 9p11-kitFixed0:0.26.4-1.el9_8RHSA-2026:49667
Red Hat Enterprise Linux 9p11-kit-clientFixed0:0.26.4-1.el9_8RHSA-2026:49667
Red Hat Enterprise Linux 9p11-kit-develFixed0:0.26.4-1.el9_8RHSA-2026:49667
Red Hat Enterprise Linux 9p11-kit-serverFixed0:0.26.4-1.el9_8RHSA-2026:49667
Red Hat Enterprise Linux 9p11-kit-trustFixed0:0.26.4-1.el9_8RHSA-2026:49667
Red Hat Enterprise Linux 8p11-kitFix pending
Fix deferred
Red Hat Enterprise Linux 8p11-kit-develFix pending
Fix deferred
Red Hat Enterprise Linux 8p11-kit-serverFix pending
Fix deferred
Red Hat Enterprise Linux 8p11-kit-trustFix pending
Fix deferred
Red Hat Enterprise Linux 7p11-kitFix pending
Fix deferred
Red Hat Enterprise Linux 7p11-kit-develFix pending
Fix deferred
Red Hat Enterprise Linux 7p11-kit-docFix pending
Fix deferred
Red Hat Enterprise Linux 7p11-kit-trustFix pending
Fix deferred
Red Hat Enterprise Linux 6p11-kitFix pending
Fix deferred
Red Hat Enterprise Linux 6p11-kit-develFix pending
Fix deferred
Red Hat Enterprise Linux 6p11-kit-trustFix pending
Fix deferred
AlmaLinux 10p11-kitFixed0.26.4-1.el10_2ALSA-2026:49668
AlmaLinux 10p11-kit-clientFixed0.26.4-1.el10_2ALSA-2026:49668
AlmaLinux 10p11-kit-develFixed0.26.4-1.el10_2ALSA-2026:49668
AlmaLinux 10p11-kit-serverFixed0.26.4-1.el10_2ALSA-2026:49668
AlmaLinux 10p11-kit-trustFixed0.26.4-1.el10_2ALSA-2026:49668
AlmaLinux 9p11-kitFixed0.26.4-1.el9_8ALSA-2026:49667
AlmaLinux 9p11-kit-clientFixed0.26.4-1.el9_8ALSA-2026:49667
AlmaLinux 9p11-kit-develFixed0.26.4-1.el9_8ALSA-2026:49667
AlmaLinux 9p11-kit-serverFixed0.26.4-1.el9_8ALSA-2026:49667
AlmaLinux 9p11-kit-trustFixed0.26.4-1.el9_8ALSA-2026:49667
Rocky Linux 10p11-kitFixed0:0.26.4-1.el10_2RLSA-2026:49668
Rocky Linux 9p11-kitFixed0:0.26.4-1.el9_8RLSA-2026:49667

What the vendor says

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

Workaround: This CVE requires same-user access to the p11-kit RPC Unix domain socket (/run/user/<uid>/p11-kit/pkcs11-*). Any process running as the socket-owning user can trigger the crash without further authentication. If p11-kit is managed via systemd --user, ensure `Restart=on-failure` is set in the unit file so that a crash is automatically recovered without manual intervention. Red Hat recommends updating p11-kit to version 0.26.3 or later, which introduces a recursion depth limit in the RPC attribute parsing and fully addresses this flaw.

Vendor advisories:

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.