Vulnerability · Published Apr 9, 2026 · Assigned by redhat

CVE-2026-4878Libcap: libcap: privilege escalation via toctou race condition in cap_set_file()

Medium 6.7

In plain English

A medium-severity security flaw in Cert Manager support for Red Hat OpenShift release 1.17 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.7Medium
Exploit odds (30 days)0.2%top 88.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10libcap2.69-7.el10_1.1ALSA-2026:12423
AlmaLinux:10libcap2.69-7.el10_2.1ALSA-2026:19130
AlmaLinux:8libcap2.48-6.el8_10.1ALSA-2026:13285
AlmaLinux:9libcap2.48-10.el9_7.1ALSA-2026:12441
AlmaLinux:9libcap2.48-10.el9_8.1ALSA-2026:19346
AlmaLinux:10libcap-devel2.69-7.el10_2.1ALSA-2026:19130
AlmaLinux:10libcap-devel2.69-7.el10_1.1ALSA-2026:12423
AlmaLinux:8libcap-devel2.48-6.el8_10.1ALSA-2026:13285
AlmaLinux:9libcap-devel2.48-10.el9_7.1ALSA-2026:12441
AlmaLinux:9libcap-devel2.48-10.el9_8.1ALSA-2026:19346
Alpine:v3.20libcap2.78-r0ALPINE-CVE-2026-4878
Alpine:v3.21libcap2.78-r0ALPINE-CVE-2026-4878
Alpine:v3.22libcap2.78-r0ALPINE-CVE-2026-4878
Alpine:v3.23libcap2.78-r0ALPINE-CVE-2026-4878
Alpine:v3.24libcap2.78-r0ALPINE-CVE-2026-4878
Debian:12libcap21:2.66-4+deb12u3DEBIAN-CVE-2026-4878
Debian:13libcap21:2.75-10+deb13u1DEBIAN-CVE-2026-4878
Debian:14libcap21:2.78-1DEBIAN-CVE-2026-4878
Rocky Linux:10libcap0:2.69-7.el10_1.1RLSA-2026:19130
Rocky Linux:10libcap0:2.69-7.el10_1.1RLSA-2026:12423
Rocky Linux:8libcap0:2.48-6.el8_10.1RLSA-2026:13285
Rocky Linux:9libcap0:2.48-10.el9_7.1RLSA-2026:19346
Rocky Linux:9libcap0:2.48-10.el9_7.1RLSA-2026:12441
Ubuntu:22.04:LTSlibcap21:2.44-1ubuntu0.22.04.3USN-8193-1
Ubuntu:22.04:LTSlibcap21:2.44-1ubuntu0.22.04.3UBUNTU-CVE-2026-4878
Ubuntu:24.04:LTSlibcap21:2.66-5ubuntu2.4USN-8193-1
Ubuntu:24.04:LTSlibcap21:2.66-5ubuntu2.4UBUNTU-CVE-2026-4878
Ubuntu:25.10libcap21:2.75-7ubuntu2.2USN-8193-1
Ubuntu:25.10libcap21:2.75-7ubuntu2.2UBUNTU-CVE-2026-4878

Affected products (as reported)

VendorProductVersions
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On see references
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support see references
Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support see references
Red Hat Red Hat OpenShift Container Platform 4.12 see references
Red Hat Red Hat OpenShift Container Platform 4.13 see references
Red Hat Red Hat OpenShift Container Platform 4.14 see references
Red Hat Red Hat OpenShift Container Platform 4.15 see references
Red Hat Red Hat OpenShift Container Platform 4.16 see references
Red Hat Red Hat OpenShift Container Platform 4.17 see references
Red Hat Red Hat OpenShift Container Platform 4.18 see references
Red Hat Red Hat OpenShift Container Platform 4.19 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.17 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.17 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.17 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.17 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.18 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.18 see references
Red Hat Cert Manager support for Red Hat OpenShift release 1.18 see references

Weakness: CWE-367 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

References