CVE-2026-4878
Libcap: libcap: privilege escalation via toctou race condition in cap_set_file()
- State
- Published
- Severity
- 6.7 Medium
- Published
- Apr 9, 2026
- Updated
- Oct 14, 2026
- Reserved
- Mar 26, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 6.7 Medium | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H | redhat |
| 3.1 | 6.7 Medium | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H | redhat-SADP |
Weaknesses
- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Affected Products
| Product | Versions |
|---|---|
Red Hat Enterprise Linux 10Red Hat |
|
Red Hat Enterprise Linux 10Red Hat |
|
Red Hat Enterprise Linux 10.0 Extended Update SupportRed Hat |
|
Red Hat Enterprise Linux 8Red Hat |
|
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportRed Hat |
|
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-OnRed Hat |
|
Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceRed Hat |
|
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsRed Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRed Hat |
|
Red Hat Enterprise Linux 9.4 Extended Update SupportRed Hat |
|
Red Hat Enterprise Linux 9.6 Extended Update SupportRed Hat |
|
Red Hat OpenShift Container Platform 4.12Red Hat |
|
Red Hat OpenShift Container Platform 4.13Red Hat |
|
Red Hat OpenShift Container Platform 4.14Red Hat |
|
Red Hat OpenShift Container Platform 4.15Red Hat |
|
Red Hat OpenShift Container Platform 4.16Red Hat |
|
Red Hat OpenShift Container Platform 4.17Red Hat |
|
Red Hat OpenShift Container Platform 4.18Red Hat |
|
Red Hat OpenShift Container Platform 4.19Red Hat |
|
Cert Manager support for Red Hat OpenShift release 1.17Red Hat |
|
Cert Manager support for Red Hat OpenShift release 1.17Red Hat |
|
Cert Manager support for Red Hat OpenShift release 1.17Red Hat |
|
Cert Manager support for Red Hat OpenShift release 1.17Red Hat |
|
Cert Manager support for Red Hat OpenShift release 1.18Red Hat |
|
Cert Manager support for Red Hat OpenShift release 1.18Red Hat |
|
Cert Manager support for Red Hat OpenShift release 1.18Red Hat |
|
Cert Manager support for Red Hat OpenShift release 1.18Red Hat |
|
Cert Manager support for Red Hat OpenShift release 1.18Red Hat |
|
Cert Manager support for Red Hat OpenShift release 1.20Red Hat |
|
Cost Management 4Red Hat |
|
Cost Management 4Red Hat |
|
Red Hat AI Inference Server 3.2Red Hat |
|
Red Hat AI Inference Server 3.3Red Hat |
|
Red Hat AI Inference Server 3.3Red Hat |
|
Red Hat AI Inference Server 3.3Red Hat |
|
Red Hat AI Inference Server 3.3Red Hat |
|
Red Hat Discovery 2Red Hat |
|
Red Hat Discovery 2Red Hat |
|
Red Hat Discovery 2Red Hat |
|
Red Hat Discovery 2Red Hat |
|
Red Hat Hardened ImagesRed Hat |
|
Red Hat Insights proxy 1.5Red Hat |
|
Red Hat OpenShift AI 3.4Red Hat |
|
Red Hat OpenShift distributed tracing 3.9.3Red Hat |
|
Red Hat OpenShift distributed tracing 3.9.3Red Hat |
|
Red Hat OpenShift distributed tracing 3.9.3Red Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Enterprise Linux 6Red Hat | |
Red Hat Enterprise Linux 6Red Hat | |
Red Hat Enterprise Linux 7Red Hat | |
Red Hat Enterprise Linux 7Red Hat | |
Red Hat OpenShift Container Platform 4Red Hat |
References
- RHSA-2026:12423vendor-advisory
- RHSA-2026:12441vendor-advisory
- RHSA-2026:13285vendor-advisory
- RHSA-2026:14162vendor-advisory
- RHSA-2026:14937vendor-advisory
- RHSA-2026:19130vendor-advisory
- RHSA-2026:19346vendor-advisory
- RHSA-2026:19456vendor-advisory
- RHSA-2026:19458vendor-advisory
- RHSA-2026:20595vendor-advisory
- RHSA-2026:21254vendor-advisory
- RHSA-2026:21275vendor-advisory
- RHSA-2026:22634vendor-advisory
- RHSA-2026:22957vendor-advisory
- RHSA-2026:23233vendor-advisory
- RHSA-2026:23245vendor-advisory
- RHSA-2026:24346vendor-advisory
- RHSA-2026:25044vendor-advisory
- RHSA-2026:25096vendor-advisory
- RHSA-2026:25181vendor-advisory
- RHSA-2026:26542vendor-advisory
- RHSA-2026:27998vendor-advisory
- RHSA-2026:28887vendor-advisory
- RHSA-2026:29197vendor-advisory
- RHSA-2026:30078vendor-advisory
- RHSA-2026:30087vendor-advisory
- RHSA-2026:30088vendor-advisory
- RHSA-2026:30089vendor-advisory
- RHSA-2026:34098vendor-advisory
- RHSA-2026:39981vendor-advisory
- RHSA-2026:58981vendor-advisory
- RHSA-2026:59831vendor-advisory
- RHSA-2026:72502vendor-advisory
- RHSA-2026:74674vendor-advisory
- RHSA-2026:7473vendor-advisory
- RHSA-2026:82304vendor-advisory
- RHSA-2026:82322vendor-advisory
- RHSA-2026:82347vendor-advisory
- RHSA-2026:82354vendor-advisory
- RHSA-2026:82372vendor-advisory
- RHSA-2026:82857vendor-advisory
- RHSA-2026:82888vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-4878vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2447554
- RHBZ#2451615issue-tracking
- http://www.openwall.com/lists/oss-security/2026/04/07/4
- http://www.openwall.com/lists/oss-security/2026/04/07/14
- http://www.openwall.com/lists/oss-security/2026/04/08/9
- http://www.openwall.com/lists/oss-security/2026/04/09/5
- http://www.openwall.com/lists/oss-security/2026/04/09/6
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4878.json
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.