CVE-2026-4878
Fixed in a distro release EPSS <1%CVSS 6.7
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.
Products: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 10.0 Extended Update Support, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support, Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On, Red Hat Enterprise Linux 8.8 Telecommunications Update Service, Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions, Red Hat Enterprise Linux 9, Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions, Red Hat Enterprise Linux 9.4 Extended Update Support, Red Hat Enterprise Linux 9.6 Extended Update Support, Red Hat OpenShift Container Platform 4.12, Red Hat OpenShift Container Platform 4.13, Red Hat OpenShift Container Platform 4.14, Red Hat OpenShift Container Platform 4.15, Red Hat OpenShift Container Platform 4.16, Red Hat OpenShift Container Platform 4.17, Red Hat OpenShift Container Platform 4.18, Red Hat OpenShift Container Platform 4.19, Cert Manager support for Red Hat OpenShift release 1.17, Cert Manager support for Red Hat OpenShift release 1.18, Cert Manager support for Red Hat OpenShift release 1.20, Red Hat Cost Management 4, Red Hat AI Inference Server 3.2, Red Hat AI Inference Server 3.3, Red Hat Discovery 2, Red Hat Hardened Images, Red Hat Insights proxy 1.5, Red Hat OpenShift AI 3.4, Red Hat OpenShift distributed tracing 3.9.3, Red Hat Update Infrastructure 5, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat OpenShift Container Platform 4
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux 10 | libcap | 2.69-7.el10_2.1 |
| AlmaLinux 10 | libcap | 2.69-7.el10_1.1 |
| AlmaLinux 10 | libcap-devel | 2.69-7.el10_1.1 |
| AlmaLinux 10 | libcap-devel | 2.69-7.el10_2.1 |
| AlmaLinux 8 | libcap | 2.48-6.el8_10.1 |
| AlmaLinux 8 | libcap-devel | 2.48-6.el8_10.1 |
| AlmaLinux 9 | libcap | 2.48-10.el9_8.1 |
| AlmaLinux 9 | libcap | 2.48-10.el9_7.1 |
| AlmaLinux 9 | libcap-devel | 2.48-10.el9_7.1 |
| AlmaLinux 9 | libcap-devel | 2.48-10.el9_8.1 |
| Alpine 3.20 | libcap | 2.78-r0 |
| Alpine 3.21 | libcap | 2.78-r0 |
| Alpine 3.22 | libcap | 2.78-r0 |
| Alpine 3.23 | libcap | 2.78-r0 |
| Alpine 3.24 | libcap | 2.78-r0 |
| Debian 12 | libcap2 | 1:2.66-4+deb12u3 |
| Debian 13 | libcap2 | 1:2.75-10+deb13u1 |
| Debian 14 | libcap2 | 1:2.78-1 |
| Red Hat Enterprise Linux 10.1 | libcap | 0:2.69-7.el10_1.1 |
| Red Hat Enterprise Linux 10.1 | libcap-debuginfo | 0:2.69-7.el10_1.1 |
| Red Hat Enterprise Linux 10.1 | libcap-debugsource | 0:2.69-7.el10_1.1 |
| Red Hat Enterprise Linux 10.1 | libcap-devel | 0:2.69-7.el10_1.1 |
| Red Hat Enterprise Linux 10.2 | libcap | 0:2.69-7.el10_2.1 |
| Red Hat Enterprise Linux 10.2 | libcap-debuginfo | 0:2.69-7.el10_2.1 |
| Red Hat Enterprise Linux 10.2 | libcap-debugsource | 0:2.69-7.el10_2.1 |
| Red Hat Enterprise Linux 10.2 | libcap-devel | 0:2.69-7.el10_2.1 |
| Red Hat Enterprise Linux 8 | libcap | 0:2.48-6.el8_10.1 |
| Red Hat Enterprise Linux 8 | libcap-debuginfo | 0:2.48-6.el8_10.1 |
| Red Hat Enterprise Linux 8 | libcap-debugsource | 0:2.48-6.el8_10.1 |
| Red Hat Enterprise Linux 8 | libcap-devel | 0:2.48-6.el8_10.1 |
| Red Hat Enterprise Linux 9 | libcap | 0:2.48-10.el9_7.1 |
| Red Hat Enterprise Linux 9 | libcap | 0:2.48-10.el9_8.1 |
| Red Hat Enterprise Linux 9 | libcap-debuginfo | 0:2.48-10.el9_8.1 |
| Red Hat Enterprise Linux 9 | libcap-debuginfo | 0:2.48-10.el9_7.1 |
| Red Hat Enterprise Linux 9 | libcap-debugsource | 0:2.48-10.el9_7.1 |
| Red Hat Enterprise Linux 9 | libcap-debugsource | 0:2.48-10.el9_8.1 |
| Red Hat Enterprise Linux 9 | libcap-devel | 0:2.48-10.el9_7.1 |
| Red Hat Enterprise Linux 9 | libcap-devel | 0:2.48-10.el9_8.1 |
| Red Hat Enterprise Linux eus 10.0 | libcap | 0:2.69-7.el10_0.1 |
| Red Hat Enterprise Linux eus 10.0 | libcap-debuginfo | 0:2.69-7.el10_0.1 |
| Red Hat Enterprise Linux eus 10.0 | libcap-debugsource | 0:2.69-7.el10_0.1 |
| Red Hat Enterprise Linux eus 10.0 | libcap-devel | 0:2.69-7.el10_0.1 |
| Red Hat hummingbird 1 | libcap | 0:2.78-1.1.hum1 |
| Red Hat hummingbird 1 | libcap-devel | 0:2.78-1.1.hum1 |
| Red Hat hummingbird 1 | libcap-static | 0:2.78-1.1.hum1 |
| Red Hat rhel aus 8.6 | libcap | 0:2.48-4.el8_6.1 |
| Red Hat rhel aus 8.6 | libcap-debuginfo | 0:2.48-4.el8_6.1 |
| Red Hat rhel aus 8.6 | libcap-debugsource | 0:2.48-4.el8_6.1 |
| Red Hat rhel aus 8.6 | libcap-devel | 0:2.48-4.el8_6.1 |
| Red Hat rhel e4s 8.8 | libcap | 0:2.48-5.el8_8.1 |
| Red Hat rhel e4s 8.8 | libcap-debuginfo | 0:2.48-5.el8_8.1 |
| Red Hat rhel e4s 8.8 | libcap-debugsource | 0:2.48-5.el8_8.1 |
| Red Hat rhel e4s 8.8 | libcap-devel | 0:2.48-5.el8_8.1 |
| Red Hat rhel e4s 9.2 | libcap | 0:2.48-9.el9_2.1 |
| Red Hat rhel e4s 9.2 | libcap-debuginfo | 0:2.48-9.el9_2.1 |
| Red Hat rhel e4s 9.2 | libcap-debugsource | 0:2.48-9.el9_2.1 |
| Red Hat rhel e4s 9.2 | libcap-devel | 0:2.48-9.el9_2.1 |
| Red Hat rhel eus 9.4 | libcap | 0:2.48-9.el9_4.1 |
| Red Hat rhel eus 9.4 | libcap-debuginfo | 0:2.48-9.el9_4.1 |
| Red Hat rhel eus 9.4 | libcap-debugsource | 0:2.48-9.el9_4.1 |
| Red Hat rhel eus 9.4 | libcap-devel | 0:2.48-9.el9_4.1 |
| Red Hat rhel eus 9.6 | libcap | 0:2.48-9.el9_6.1 |
| Red Hat rhel eus 9.6 | libcap-debuginfo | 0:2.48-9.el9_6.1 |
| Red Hat rhel eus 9.6 | libcap-debugsource | 0:2.48-9.el9_6.1 |
| Red Hat rhel eus 9.6 | libcap-devel | 0:2.48-9.el9_6.1 |
| Red Hat rhel eus long life 8.6 | libcap | 0:2.48-4.el8_6.1 |
| Red Hat rhel eus long life 8.6 | libcap-debuginfo | 0:2.48-4.el8_6.1 |
| Red Hat rhel eus long life 8.6 | libcap-debugsource | 0:2.48-4.el8_6.1 |
| Red Hat rhel eus long life 8.6 | libcap-devel | 0:2.48-4.el8_6.1 |
| Red Hat rhel tus 8.8 | libcap | 0:2.48-5.el8_8.1 |
| Red Hat rhel tus 8.8 | libcap-debuginfo | 0:2.48-5.el8_8.1 |
| Red Hat rhel tus 8.8 | libcap-debugsource | 0:2.48-5.el8_8.1 |
| Red Hat rhel tus 8.8 | libcap-devel | 0:2.48-5.el8_8.1 |
| Rocky Linux 10 | libcap | 0:2.69-7.el10_1.1 |
| Rocky Linux 8 | libcap | 0:2.48-6.el8_10.1 |
| Rocky Linux 9 | libcap | 0:2.48-10.el9_7.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | libcap | 2.63-150400.3.6.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | libcap | 2.63-150400.3.6.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | libcap | 2.63-150400.3.6.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | libcap | 2.63-150400.3.6.1 |
| SUSE Linux Enterprise Micro 5.3 | libcap | 2.63-150400.3.6.1 |
| SUSE Linux Enterprise Micro 5.4 | libcap | 2.63-150400.3.6.1 |
| SUSE Linux Enterprise Micro 5.5 | libcap | 2.63-150400.3.6.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | libcap | 2.63-150400.3.6.1 |
| SUSE Linux Enterprise Server 12 SP5-LTSS | libcap | 2.26-14.12.1 |
| SUSE Linux Enterprise Server 15 SP4-LTSS | libcap | 2.63-150400.3.6.1 |
| SUSE Linux Enterprise Server 15 SP5-LTSS | libcap | 2.63-150400.3.6.1 |
| SUSE Linux Enterprise Server 15 SP6-LTSS | libcap | 2.63-150400.3.6.1 |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | libcap | 2.26-14.12.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | libcap | 2.63-150400.3.6.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | libcap | 2.63-150400.3.6.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | libcap | 2.63-150400.3.6.1 |
| SUSE Linux Micro 6.0 | libcap | 2.69-3.1 |
| SUSE Linux Micro 6.1 | libcap | 2.69-slfo.1.1_2.1 |
| SUSE Linux Micro 6.2 | libcap | 2.73-160000.3.1 |
| Ubuntu 22.04 LTS | libcap2 | 1:2.44-1ubuntu0.22.04.3 |
| Ubuntu 24.04 LTS | libcap2 | 1:2.66-5ubuntu2.4 |
| Ubuntu 25.10 | libcap2 | 1:2.75-7ubuntu2.2 |
| Ubuntu Pro 14.04 LTS | libcap2 | 1:2.24-0ubuntu2+esm2 |
| Ubuntu Pro 16.04 LTS | libcap2 | 1:2.24-12ubuntu0.1~esm2 |
| Ubuntu Pro 18.04 LTS | libcap2 | 1:2.25-1.2ubuntu0.1~esm2 |
| Ubuntu Pro 20.04 LTS | libcap2 | 1:2.32-1ubuntu0.2+esm1 |
| openSUSE Leap 16.0 | libcap | 2.73-160000.3.1 |
| openSUSE Tumbleweed | libcap | 2.78-1.1 |