CVE-2026-4878
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.
How to fix
- access.redhat.com/errata/RHSA-2026:7473
- access.redhat.com/security/cve/CVE-2026-4878
- bugzilla.redhat.com/show_bug.cgi?id=2451615
- access.redhat.com/errata/RHSA-2026:12423
- access.redhat.com/errata/RHSA-2026:12441
- access.redhat.com/errata/RHSA-2026:13285
- access.redhat.com/errata/RHSA-2026:14162
- access.redhat.com/errata/RHSA-2026:14937
- access.redhat.com/errata/RHSA-2026:19130
- access.redhat.com/errata/RHSA-2026:19346
- access.redhat.com/errata/RHSA-2026:19456
- access.redhat.com/errata/RHSA-2026:19458
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| libcap_project libcap | No range specified | — |
| redhat openshift_container_platform | 4.0 | — |
| redhat enterprise_linux | 8.0, 9.0, 10.0 | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.