CVE-2026-13757P11-kit: stack exhaustion via unbounded recursion in rpc attribute parsing
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | p11-kit | Fix pending | UBUNTU-CVE-2026-13757 | |
| Ubuntu 25.10 | p11-kit | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-13757 | |
| Ubuntu 24.04 | p11-kit | Fixed | 0.25.3-4ubuntu2.2 | UBUNTU-CVE-2026-13757 |
| Ubuntu 22.04 | p11-kit | Fixed | 0.24.0-6ubuntu0.1 | UBUNTU-CVE-2026-13757 |
| Ubuntu 20.04 | p11-kit | Fix pending | 0.23.20-1ubuntu0.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-13757 |
| Ubuntu 18.04 | p11-kit | Fix pending | 0.23.9-2ubuntu0.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-13757 |
| Debian 14 | p11-kit | Fixed | 0.26.4-1 | DEBIAN-CVE-2026-13757 |
| Debian 13 | p11-kit | Fix pending | DEBIAN-CVE-2026-13757 | |
| Debian 12 | p11-kit | Fix pending | DEBIAN-CVE-2026-13757 | |
| Red Hat Enterprise Linux 10 | p11-kit | Fixed | 0:0.26.4-1.el10_2 | RHSA-2026:49668 |
| Red Hat Enterprise Linux 10 | p11-kit-client | Fixed | 0:0.26.4-1.el10_2 | RHSA-2026:49668 |
| Red Hat Enterprise Linux 10 | p11-kit-devel | Fixed | 0:0.26.4-1.el10_2 | RHSA-2026:49668 |
| Red Hat Enterprise Linux 10 | p11-kit-server | Fixed | 0:0.26.4-1.el10_2 | RHSA-2026:49668 |
| Red Hat Enterprise Linux 10 | p11-kit-trust | Fixed | 0:0.26.4-1.el10_2 | RHSA-2026:49668 |
| Red Hat Enterprise Linux 9 | p11-kit | Fixed | 0:0.26.4-1.el9_8 | RHSA-2026:49667 |
| Red Hat Enterprise Linux 9 | p11-kit-client | Fixed | 0:0.26.4-1.el9_8 | RHSA-2026:49667 |
| Red Hat Enterprise Linux 9 | p11-kit-devel | Fixed | 0:0.26.4-1.el9_8 | RHSA-2026:49667 |
| Red Hat Enterprise Linux 9 | p11-kit-server | Fixed | 0:0.26.4-1.el9_8 | RHSA-2026:49667 |
| Red Hat Enterprise Linux 9 | p11-kit-trust | Fixed | 0:0.26.4-1.el9_8 | RHSA-2026:49667 |
| Red Hat Enterprise Linux 8 | p11-kit | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | p11-kit-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | p11-kit-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | p11-kit-trust | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | p11-kit | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | p11-kit-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | p11-kit-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | p11-kit-trust | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | p11-kit | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | p11-kit-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | p11-kit-trust | Fix pending Fix deferred | ||
| AlmaLinux 10 | p11-kit | Fixed | 0.26.4-1.el10_2 | ALSA-2026:49668 |
| AlmaLinux 10 | p11-kit-client | Fixed | 0.26.4-1.el10_2 | ALSA-2026:49668 |
| AlmaLinux 10 | p11-kit-devel | Fixed | 0.26.4-1.el10_2 | ALSA-2026:49668 |
| AlmaLinux 10 | p11-kit-server | Fixed | 0.26.4-1.el10_2 | ALSA-2026:49668 |
| AlmaLinux 10 | p11-kit-trust | Fixed | 0.26.4-1.el10_2 | ALSA-2026:49668 |
| AlmaLinux 9 | p11-kit | Fixed | 0.26.4-1.el9_8 | ALSA-2026:49667 |
| AlmaLinux 9 | p11-kit-client | Fixed | 0.26.4-1.el9_8 | ALSA-2026:49667 |
| AlmaLinux 9 | p11-kit-devel | Fixed | 0.26.4-1.el9_8 | ALSA-2026:49667 |
| AlmaLinux 9 | p11-kit-server | Fixed | 0.26.4-1.el9_8 | ALSA-2026:49667 |
| AlmaLinux 9 | p11-kit-trust | Fixed | 0.26.4-1.el9_8 | ALSA-2026:49667 |
| Rocky Linux 10 | p11-kit | Fixed | 0:0.26.4-1.el10_2 | RLSA-2026:49668 |
| Rocky Linux 9 | p11-kit | Fixed | 0:0.26.4-1.el9_8 | RLSA-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.
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 9
- Red Hat Cert Manager support for Red Hat OpenShift release 1.17
- Red Hat Cert Manager support for Red Hat OpenShift release 1.18
- Red Hat Cert Manager support for Red Hat OpenShift release 1.20
- Red Hat Cost Management 4
- Red Hat Discovery 2
- Red Hat Hardened Images
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:
- https://access.redhat.com/errata/RHSA-2026:37469 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:38342 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:49667 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:49668 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:53371 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:54387 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2026:37469
- https://access.redhat.com/errata/RHSA-2026:38342
- https://access.redhat.com/errata/RHSA-2026:49667
- https://access.redhat.com/errata/RHSA-2026:49668
- https://access.redhat.com/errata/RHSA-2026:53371
- https://access.redhat.com/errata/RHSA-2026:54387
- https://access.redhat.com/errata/RHSA-2026:54760
- https://access.redhat.com/errata/RHSA-2026:58981
- https://access.redhat.com/errata/RHSA-2026:72394
- https://access.redhat.com/errata/RHSA-2026:72395
- https://access.redhat.com/errata/RHSA-2026:72399
- https://access.redhat.com/errata/RHSA-2026:72470
- https://access.redhat.com/errata/RHSA-2026:72475
- https://access.redhat.com/errata/RHSA-2026:72476
- https://access.redhat.com/errata/RHSA-2026:72502
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.