6.7
Medium
CVE-2026-4878 Libcap: libcap: privilege escalation via toctou race condition in cap_set_file()
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 3.1 detail
Vector CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:HExploitable with local access to the machine, with an ordinary account and if a user takes an action; an attacker can seriously compromise confidentiality, integrity or availability.
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- Low
- Interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Affected products and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Red Hat Enterprise Linux 10 | Versions not published | |
| Red Hat Enterprise Linux 6 | Versions not published | |
| Red Hat Enterprise Linux 7 | Versions not published | |
| Red Hat Enterprise Linux 8 | Versions not published | |
| Red Hat Enterprise Linux 9 | Versions not published | |
| Red Hat OpenShift Container Platform 4 | Versions not published | |
| Red Hat Hardened Images 2.78 | earliest → < 2.78-1.1.hum1 | 2.78-1.1.hum1 |
| Red Hat OpenShift distributed tracing 3.9.3 1778056245 | earliest → < 1778056245 | 1778056245 |
| Red Hat Discovery 2 1782166952 | earliest → < 1782166952 | 1782166952 |
Show the 47 other branches Hide the 47 other branches
References
- RHSA-2026:12423 access.redhat.com
- RHSA-2026:12441 access.redhat.com
- RHSA-2026:13285 access.redhat.com
- RHSA-2026:14162 access.redhat.com
- RHSA-2026:14937 access.redhat.com
- RHSA-2026:19130 access.redhat.com
- RHSA-2026:19346 access.redhat.com
- RHSA-2026:19456 access.redhat.com
- RHSA-2026:19458 access.redhat.com
- RHSA-2026:20595 access.redhat.com
- RHSA-2026:21254 access.redhat.com
- RHSA-2026:21275 access.redhat.com
- RHSA-2026:22634 access.redhat.com
- RHSA-2026:22957 access.redhat.com
- RHSA-2026:23233 access.redhat.com
- RHSA-2026:23245 access.redhat.com
- RHSA-2026:24346 access.redhat.com
- RHSA-2026:25044 access.redhat.com
- RHSA-2026:25096 access.redhat.com
- RHSA-2026:25181 access.redhat.com
- RHSA-2026:26542 access.redhat.com
- RHSA-2026:27998 access.redhat.com
- RHSA-2026:28887 access.redhat.com
- RHSA-2026:29197 access.redhat.com
- RHSA-2026:30078 access.redhat.com
- RHSA-2026:30087 access.redhat.com
- RHSA-2026:30088 access.redhat.com
- RHSA-2026:30089 access.redhat.com
- RHSA-2026:34098 access.redhat.com
- RHSA-2026:39981 access.redhat.com
- RHSA-2026:58981 access.redhat.com
- RHSA-2026:59831 access.redhat.com
- RHSA-2026:72502 access.redhat.com
- RHSA-2026:74674 access.redhat.com
- RHSA-2026:7473 access.redhat.com
- RHSA-2026:82304 access.redhat.com
- RHSA-2026:82322 access.redhat.com
- RHSA-2026:82347 access.redhat.com
- RHSA-2026:82354 access.redhat.com
- RHSA-2026:82372 access.redhat.com
- RHSA-2026:82857 access.redhat.com
- RHSA-2026:82888 access.redhat.com
- access.redhat.com access.redhat.com
- bugzilla.redhat.com bugzilla.redhat.com
- RHBZ#2451615 bugzilla.redhat.com
Timeline
- Published
- Last modified
Other CVEs of Red Hat Enterprise Linux 10
The 1454 CVEs of Red Hat Enterprise Linux 10 →
CVE-2026-123151
Gdb: gdb: stack buffer overflow in parse_tsv_definition via stale rs->buf tail
Not rated
CVE-2026-121997
Gdb: gdbserver: heap buffer overflow in cmd_qtdpsrc via qtdpsrc declared/actual length mismatch
8.1
High
CVE-2026-121996
Gdb: gdbserver: heap disclosure and wild pointer in gdb_parse_agent_expr via untrusted agent-expression length
8.2
High
CVE-2026-121995
Gdb: gdb: stack buffer overflow in parse_tracepoint_definition via stale rs->buf tail
7.5
High