Bug 2511440

Summary: CVE-2026-16524 pcp: PCP linux_sockets PMDA: Arbitrary Command Execution via Command Injection [fedora-all]
Product: [Fedora] Fedora Reporter: Srikanth Balasubramanian <sbalasub>
Component: pcpAssignee: William Cohen <wcohen>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: agerstmayr, jcgutierrez0102, jkurik, lchilton, nathans, sfeifer, wcohen
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["cb5c65ac-25f3-4815-b645-8f17fba3c2c0"]}
Fixed In Version: pcp-7.2.0-1.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-08-07 20:32:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2506023    

Description Srikanth Balasubramanian 2026-08-05 11:10:43 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

A command injection vulnerability exists in the linux_sockets PMDA through the
writable metric network.persocket.filter. The validation helper sockets_check_filter() returns
1 for safe input and 0 for unsafe input, but the store handler uses an inverted condition: safe
expressions are rejected while malicious ones containing shell metacharacters are silently
accepted. The attacker-controlled filter value is later incorporated into a shell command
executed via popen() whenever socket metrics are refreshed, enabling arbitrary command
execution as the PMDA process user.
Prerequisites:
• linux_sockets PMDA loaded;
• ss binary present (/usr/sbin/ss or /usr/bin/ss);
• no [access] section restricting pmstore in pmcd.conf (default behavior).

Comment 1 William Cohen 2026-08-07 20:32:21 UTC
This CVE has been addressed in the new pcp-7.2.0-1 RPM builds available for Fedora Rawhide, Fedora 44, and Fedora 43.