Skip to content
OpenAdvisories
Medium · 6.7 CVE-2026-4878 EUVD-2026-20910

Libcap: libcap: privilege escalation via toctou race condition in cap_set_file()

Published Apr 9, 2026 · Updated Nov 4, 2026 · Assigned by redhat

Vendor: Red Hat Product: Cert Manager support for Red Hat OpenShift release 1.17 Product: Cert Manager support for Red Hat OpenShift release 1.18 Product: Cert Manager support for Red Hat OpenShift release 1.20 Product: Cost Management 4 Product: Red Hat AI Inference Server 3.2 Product: Red Hat AI Inference Server 3.3 Product: Red Hat Discovery 2 Product: Red Hat Enterprise Linux 10 Product: Red Hat Enterprise Linux 10.0 Extended Update Support Product: Red Hat Enterprise Linux 6 Product: Red Hat Enterprise Linux 7 Product: Red Hat Enterprise Linux 8 Product: Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Product: Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On Product: Red Hat Enterprise Linux 8.8 Telecommunications Update Service Product: Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions Product: Red Hat Enterprise Linux 9 Product: Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions Product: Red Hat Enterprise Linux 9.4 Extended Update Support Product: Red Hat Enterprise Linux 9.6 Extended Update Support Product: Red Hat Hardened Images Product: Red Hat Insights proxy 1.5 Product: Red Hat OpenShift AI 3.4 Product: Red Hat OpenShift Container Platform 4 Product: Red Hat OpenShift Container Platform 4.12 Product: Red Hat OpenShift Container Platform 4.13 Product: Red Hat OpenShift Container Platform 4.14 Product: Red Hat OpenShift Container Platform 4.15 Product: Red Hat OpenShift Container Platform 4.16 Product: Red Hat OpenShift Container Platform 4.17 Product: Red Hat OpenShift Container Platform 4.18 Product: Red Hat OpenShift Container Platform 4.19 Product: Red Hat OpenShift distributed tracing 3.9.3 Product: Red Hat Update Infrastructure 5 Package: libcap Package: libcap Package: libcap2 Package: libcap2 Platform: Linux Ecosystem: Alpine Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu

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.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support — —
Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On — —
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service — —
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support — —
Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support — —
Red Hat Red Hat OpenShift Container Platform 4.12 — —
Red Hat Red Hat OpenShift Container Platform 4.13 — —
Red Hat Red Hat OpenShift Container Platform 4.14 — —
Red Hat Red Hat OpenShift Container Platform 4.15 — —
Red Hat Red Hat OpenShift Container Platform 4.16 — —
Red Hat Red Hat OpenShift Container Platform 4.17 — —
Red Hat Red Hat OpenShift Container Platform 4.18 — —
Red Hat Red Hat OpenShift Container Platform 4.19 — —
Red Hat Cert Manager support for Red Hat OpenShift release 1.17 — —
Red Hat Cert Manager support for Red Hat OpenShift release 1.18 — —
Red Hat Cert Manager support for Red Hat OpenShift release 1.20 — —
Red Hat Cost Management 4 — —
Red Hat Red Hat AI Inference Server 3.2 — —
Red Hat Red Hat AI Inference Server 3.3 — —
Red Hat Red Hat Discovery 2 — —
Red Hat Red Hat Hardened Images — —
Red Hat Red Hat Insights proxy 1.5 — —
Red Hat Red Hat OpenShift AI 3.4 — —
Red Hat Red Hat OpenShift distributed tracing 3.9.3 — —
Red Hat Red Hat Update Infrastructure 5 — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —
Red Hat Red Hat OpenShift Container Platform 4 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libcap2 1:2.78-1 —
Debian 13 libcap2 1:2.75-10+deb13u1 —
Debian 12 libcap2 1:2.66-4+deb12u3 —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 libcap2 1:2.75-7ubuntu2.2 USN-8193-1
Ubuntu 24.04 LTS libcap2 1:2.66-5ubuntu2.4 USN-8193-1
Ubuntu 22.04 LTS libcap2 1:2.44-1ubuntu0.22.04.3 USN-8193-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS libcap2 1:2.32-1ubuntu0.2+esm1 USN-8193-2
Ubuntu Pro 18.04 LTS libcap2 1:2.25-1.2ubuntu0.1~esm2 USN-8193-2
Ubuntu Pro 16.04 LTS libcap2 1:2.24-12ubuntu0.1~esm2 USN-8193-2
Ubuntu Pro 14.04 LTS libcap2 1:2.24-0ubuntu2+esm2 USN-8193-2
ReleasePackageFixed inAdvisory
RHEL 10 libcap +1 2.69-7.el10_1.1 RHSA-2026:19130, RHSA-2026:12423
RHEL 9 libcap +1 2.48-10.el9_7.1 RHSA-2026:19346, RHSA-2026:12441
RHEL 8 libcap +1 2.48-6.el8_10.1 RHSA-2026:13285
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS libcap +1 2.69-7.el10_0.1 RHSA-2026:19456
RHEL 9.6 EUS libcap +1 2.48-9.el9_6.1 RHSA-2026:19458
RHEL 9.4 EUS libcap +1 2.48-9.el9_4.1 RHSA-2026:20595
RHEL 9.2 E4S libcap +1 2.48-9.el9_2.1 RHSA-2026:21254
RHEL 8.8 TUS libcap +1 2.48-5.el8_8.1 RHSA-2026:22957
RHEL 8.8 E4S libcap +1 2.48-5.el8_8.1 RHSA-2026:22957
RHEL 8.6 EUS Long Life libcap +1 2.48-4.el8_6.1 RHSA-2026:24346
RHEL 8.6 AUS libcap +1 2.48-4.el8_6.1 RHSA-2026:24346
Red Hat Hardened Images 1 libcap +2 2.78-1.1.hum1 RHSA-2026:7473

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 libcap +1 2.69-7.el10_1.1 ALSA-2026:19130, ALSA-2026:12423
AlmaLinux 9 libcap +1 2.48-10.el9_7.1 ALSA-2026:19346, ALSA-2026:12441
AlmaLinux 8 libcap +1 2.48-6.el8_10.1 ALSA-2026:13285

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 libcap 2.69-7.el10_1.1 RLSA-2026:19130, RLSA-2026:12423
Rocky Linux 9 libcap 2.48-10.el9_7.1 RLSA-2026:19346, RLSA-2026:12441
Rocky Linux 8 libcap 2.48-6.el8_10.1 RLSA-2026:13285
ReleasePackageFixed inAdvisory
SLES 15 SP7 libcap 2.63-150400.3.6.1 SUSE-SU-2026:1432-1
SLES 15 SP6 libcap 2.63-150400.3.6.1 SUSE-SU-2026:1432-1
SLES 15 SP5 libcap 2.63-150400.3.6.1 SUSE-SU-2026:1432-1
SLES 15 SP4 libcap 2.63-150400.3.6.1 SUSE-SU-2026:1432-1
SLES 12 SP5 libcap 2.26-14.12.1 SUSE-SU-2026:1433-1
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP6 libcap 2.63-150400.3.6.1 SUSE-SU-2026:1432-1
SLES for SAP 15 SP5 libcap 2.63-150400.3.6.1 SUSE-SU-2026:1432-1
SLES for SAP 15 SP4 libcap 2.63-150400.3.6.1 SUSE-SU-2026:1432-1
SLE Micro 6.2 libcap 2.73-160000.3.1 SUSE-SU-2026:21274-1
SLE Micro 6.1 libcap 2.69-slfo.1.1_2.1 SUSE-SU-2026:21257-1
SLE Micro 6.0 libcap 2.69-3.1 SUSE-SU-2026:21243-1
SLE Micro 5.5 libcap 2.63-150400.3.6.1 SUSE-SU-2026:1432-1
SLE Micro 5.4 libcap 2.63-150400.3.6.1 SUSE-SU-2026:1432-1
SLE Micro 5.3 libcap 2.63-150400.3.6.1 SUSE-SU-2026:1432-1
SLE HPC 15 SP5 libcap 2.63-150400.3.6.1 SUSE-SU-2026:1432-1
SLE HPC 15 SP4 libcap 2.63-150400.3.6.1 SUSE-SU-2026:1432-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libcap 2.78-1.1 openSUSE-SU-2026:10536-1
openSUSE Leap 16.0 libcap 2.73-160000.3.1 openSUSE-SU-2026:20613-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libcap 2.78-r0 —
Alpine v3.23 libcap 2.78-r0 —
Alpine v3.22 libcap 2.78-r0 —
Alpine v3.21 libcap 2.78-r0 —
Alpine v3.20 libcap 2.78-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libcap 2.69-14 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 libcap +1 2.69-7.el10_1.1 ELSA-2026-19130, ELSA-2026-12423
Oracle Linux 9 libcap +1 2.48-10.el9_7.1 ELSA-2026-19346, ELSA-2026-12441
Oracle Linux 8 libcap +1 2.48-6.el8_10.1 ELSA-2026-13285

Advisories 38

References