Libcap: libcap: privilege escalation via toctou race condition in cap_set_file()
2 public exploits exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Red Hat | AI Inference Server | ||
| Red Hat | Cert Manager support for Red Hat OpenShift | ||
| Red Hat | Cost Management | ||
| Red Hat | Discovery | ||
| Red Hat | Enterprise Linux | ||
| Red Hat | Hardened Images | ||
| Red Hat | Insights proxy | ||
| Red Hat | OpenShift AI | ||
| Red Hat | OpenShift Container Platform | ||
| Red Hat | OpenShift distributed tracing | ||
| Red Hat | Update Infrastructure | ||
| libcap_project | libcap | ||
| redhat | enterprise_linux | =9.0, =8.0, =10.0 | |
| redhat | openshift_container_platform | =4.0 |
Exploit evidence
2 public sources
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Red Hat, strongest first
Embed
A live severity badge for an advisory, README or ticket