Vulnerability Description
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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Libcap Project | Libcap | - |
| Redhat | Openshift Container Platform | 4.0 |
| Redhat | Enterprise Linux | 8.0 |
Related Weaknesses (CWE)
References
- https://access.redhat.com/errata/RHSA-2026:12423
- https://access.redhat.com/errata/RHSA-2026:12441
- https://access.redhat.com/errata/RHSA-2026:13285
- https://access.redhat.com/errata/RHSA-2026:14162
- https://access.redhat.com/errata/RHSA-2026:14937
- https://access.redhat.com/errata/RHSA-2026:19130
- https://access.redhat.com/errata/RHSA-2026:19346
- https://access.redhat.com/errata/RHSA-2026:19456
- https://access.redhat.com/errata/RHSA-2026:19458
- https://access.redhat.com/errata/RHSA-2026:7473Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-4878Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2447554Permissions Required
- https://bugzilla.redhat.com/show_bug.cgi?id=2451615Issue TrackingVendor Advisory
- http://www.openwall.com/lists/oss-security/2026/04/07/14Mailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2026/04/07/4Mailing ListThird Party Advisory
FAQ
What is CVE-2026-4878?
CVE-2026-4878 is a vulnerability with a CVSS score of 6.7 (MEDIUM). 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 ...
How severe is CVE-2026-4878?
CVE-2026-4878 has been rated MEDIUM with a CVSS base score of 6.7/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-4878?
Check the references section above for vendor advisories and patch information. Affected products include: Libcap Project Libcap, Redhat Openshift Container Platform, Redhat Enterprise Linux.