CVE-2026-13757

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

Published Jun 29, 2026 CVSS 3.1 · 6.2 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A flaw in p11-kit allows an unauthenticated local attacker who can reach the p11-kit RPC Unix domain socket to send a request with deeply nested template attributes. The RPC message attribute parsing functions call each other recursively without a depth limit, leading to stack exhaustion. When the stack overflows, the p11-kit server process crashes, which can also bring down services that depend on it, effectively causing a denial of service. The weakness is a classic case of unchecked recursion, classified as CWE‑674.

Affected Systems

The vulnerability affects Red Hat’s p11-kit component as deployed in Red Hat Enterprise Linux 6, 7, 8, 9 and 10, as well as in Red Hat Hardened Images and Red Hat OpenShift Container Platform 4. No specific affected versions of p11-kit are listed, so any installation of the component on the affected distributions may be vulnerable until patched.

Risk and Exploitability

The CVSS score of 6.2 indicates moderate severity; the EPSS score is not available, and the issue is not listed in CISA KEV. Exploitation requires only local access to the RPC Unix domain socket, meaning any user with file system access to that socket could trigger the crash. The attack does not require network access or elevated privileges, so the risk is significant in environments where local users can reach the socket. Because the vulnerability causes a crash rather than data disclosure, its immediate consequence is service disruption and potential availability impact.

Remediation

Vendor 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.


OpenCVE Recommended Actions

  • Apply the Red Hat-published patch for p11-kit or upgrade to a Red Hat Enterprise Linux release that includes the fix
  • Configure the system to limit access to the p11-kit RPC Unix domain socket, for example by applying file system permissions or disabling the socket in configurations that are not needed
  • Monitor for unexpected p11-kit process terminations or related service crashes and verify that the patch or configuration change prevents recurrence

Generated by OpenCVE AI on June 29, 2026 at 20:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8687-1 p11-kit vulnerabilities
History
Type Values Removed Values Added
First Time appeared Redhat openshift Ai
CPEs cpe:/a:redhat:openshift_ai
Vendors & Products Redhat openshift Ai
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:openshift:5
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
First Time appeared Redhat cost Management
CPEs cpe:/a:redhat:cost_management:4::el9
Vendors & Products Redhat cost Management
References
Type Values Removed Values Added
First Time appeared Redhat cert Manager
CPEs cpe:/a:redhat:cert_manager:1.20::el9
Vendors & Products Redhat cert Manager
References
Type Values Removed Values Added
First Time appeared Redhat discovery
CPEs cpe:/a:redhat:discovery:2::el9
Vendors & Products Redhat discovery
References
Type Values Removed Values Added
First Time appeared Redhat rhui
CPEs cpe:/a:redhat:rhui:5::el9
Vendors & Products Redhat rhui
References
Type Values Removed Values Added
First Time appeared Redhat insights Proxy
CPEs cpe:/a:redhat:insights_proxy:1.5::el9
Vendors & Products Redhat insights Proxy
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:9 cpe:/a:redhat:enterprise_linux:9::appstream
cpe:/o:redhat:enterprise_linux:9::baseos
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10 cpe:/o:redhat:enterprise_linux:10.2
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared P11-kit Project
P11-kit Project p11-kit
Redhat hardened Images
Redhat openshift Container Platform
Vendors & Products P11-kit Project
P11-kit Project p11-kit
Redhat hardened Images
Redhat openshift Container Platform
Type Values Removed Values Added
Description 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.
Title P11-kit: stack exhaustion via unbounded recursion in rpc attribute parsing
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
Weaknesses CWE-674
CPEs cpe:/a:redhat:hummingbird:1
cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
References
Metrics cvssV3_1

{'score': 6.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}