CVE-2026-4878
A flaw was found in libcap. A local unprivileged user can exploit a Time-of-check-to-time-of-use (TOCTOU) race condition in the `cap_set_file()` function. This allows an attacker with write access to a parent directory to redirect file capability updates to an attacker-controlled file. By doing so, capabilities can be injected into or stripped from unintended executables, leading to privilege escalation.
Published:Apr 6, 2026
Last Modified:Sep 3, 2026
EPS:Apr 9, 2026
EPSS Score:0.00206
CVSS Score:6.7
Affected Products
Vendor
Product
Action
Vendor
Libcap Project
Product
Libcap
Libcap Project
Libcap
Vendor
Redhat
Product
Ai Inference Server
Redhat
Ai Inference Server
Vendor
Redhat
Product
Cost Management
Redhat
Cost Management
Vendor
Redhat
Product
Discovery
Redhat
Discovery
Vendor
Redhat
Product
Enterprise Linux
Redhat
Enterprise Linux
Vendor
Redhat
Product
Enterprise Linux Eus
Redhat
Enterprise Linux Eus
Vendor
Redhat
Product
Hardened Images
Redhat
Hardened Images
Vendor
Redhat
Product
Hummingbird
Redhat
Hummingbird
Vendor
Redhat
Product
Insights Proxy
Redhat
Insights Proxy
Vendor
Redhat
Product
Openshift
Redhat
Openshift
Vendor
Redhat
Product
Openshift Container Platform
Redhat
Openshift Container Platform
Vendor
Redhat
Product
Openshift Distributed Tracing
Redhat
Openshift Distributed Tracing
Vendor
Redhat
Product
Rhel Aus
Redhat
Rhel Aus
Vendor
Redhat
Product
Rhel E4s
Redhat
Rhel E4s
Vendor
Redhat
Product
Rhel Eus
Redhat
Rhel Eus
Vendor
Redhat
Product
Rhel Eus Long Life
Redhat
Rhel Eus Long Life
Vendor
Redhat
Product
Rhel Tus
Redhat
Rhel Tus
Vendor
Redhat
Product
Rhui
Redhat
Rhui
Exploits
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Related CVEs
References
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
