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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libcap2 | 1:2.78-1 | — |
| Debian 13 | libcap2 | 1:2.75-10+deb13u1 | — |
| Debian 12 | libcap2 | 1:2.66-4+deb12u3 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | libcap | 2.69-14 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- ALSA-2026:12423 Important: libcap security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:19346 Important: libcap security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:12441 Important: libcap security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:19130 Important: libcap security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:13285 Important: libcap security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2026-1267 Red Hat Hardened Images RPMs: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 21, 2026
- RHSA-2026:7473 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:24346 Red Hat Security Advisory: libcap security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:22957 Red Hat Security Advisory: libcap security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:21254 Red Hat Security Advisory: libcap security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:20595 Red Hat Security Advisory: libcap security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:19458 Red Hat Security Advisory: libcap security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:19456 Red Hat Security Advisory: libcap security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:19346 Red Hat Security Advisory: libcap security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:19130 Red Hat Security Advisory: libcap security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:13285 Red Hat Security Advisory: libcap security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:12441 Red Hat Security Advisory: libcap security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:12423 Red Hat Security Advisory: libcap security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- WID-SEC-2026-3043 IBM QRadar SIEM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 17, 2026
- ELSA-2026-19130 Important: libcap security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Jul 16, 2026
- USN-8193-2 libcap2 vulnerability Ubuntu Security Notices (USN) · Jun 24, 2026
- ELSA-2026-19346 Important: libcap security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Jun 23, 2026
- RLSA-2026:19130 Important: libcap security update Rocky Linux Security Advisories · May 29, 2026
- RLSA-2026:19346 Important: libcap security update Rocky Linux Security Advisories · May 20, 2026
- RLSA-2026:13285 Important: libcap security update Rocky Linux Security Advisories · May 6, 2026
- ELSA-2026-13285 Important: libcap security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 5, 2026
- RLSA-2026:12441 Important: libcap security update Rocky Linux Security Advisories · May 3, 2026
- RLSA-2026:12423 Important: libcap security update Rocky Linux Security Advisories · May 3, 2026
- ELSA-2026-12423 Important: libcap security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Apr 30, 2026
- ELSA-2026-12441 Important: libcap security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Apr 30, 2026
- USN-8193-1 libcap2 vulnerability Ubuntu Security Notices (USN) · Apr 29, 2026
- SUSE-SU-2026:21274-1 Security update for libcap SUSE / openSUSE Security Updates · Apr 25, 2026
- SUSE-SU-2026:21257-1 Security update for libcap SUSE / openSUSE Security Updates · Apr 24, 2026
- SUSE-SU-2026:21243-1 Security update for libcap SUSE / openSUSE Security Updates · Apr 24, 2026
- openSUSE-SU-2026:20613-1 Security update for libcap SUSE / openSUSE Security Updates · Apr 24, 2026
- SUSE-SU-2026:1433-1 Security update for libcap SUSE / openSUSE Security Updates · Apr 18, 2026
- SUSE-SU-2026:1432-1 Security update for libcap SUSE / openSUSE Security Updates · Apr 18, 2026
- openSUSE-SU-2026:10536-1 libcap-devel-2.78-1.1 on GA media SUSE / openSUSE Security Updates · Apr 13, 2026
References
- RHSA-2026:12423 vendor-advisory
- RHSA-2026:12441 vendor-advisory
- RHSA-2026:13285 vendor-advisory
- RHSA-2026:14162 vendor-advisory
- RHSA-2026:14937 vendor-advisory
- RHSA-2026:19130 vendor-advisory
- RHSA-2026:19346 vendor-advisory
- RHSA-2026:19456 vendor-advisory
- RHSA-2026:19458 vendor-advisory
- RHSA-2026:20595 vendor-advisory
- RHSA-2026:21254 vendor-advisory
- RHSA-2026:21275 vendor-advisory
- RHSA-2026:22634 vendor-advisory
- RHSA-2026:22957 vendor-advisory
- RHSA-2026:23233 vendor-advisory
- RHSA-2026:23245 vendor-advisory
- RHSA-2026:24346 vendor-advisory
- RHSA-2026:25044 vendor-advisory
- RHSA-2026:25096 vendor-advisory
- RHSA-2026:25181 vendor-advisory
- RHSA-2026:26542 vendor-advisory
- RHSA-2026:27998 vendor-advisory
- RHSA-2026:28887 vendor-advisory
- RHSA-2026:29197 vendor-advisory
- RHSA-2026:30078 vendor-advisory
- RHSA-2026:30087 vendor-advisory
- RHSA-2026:30088 vendor-advisory
- RHSA-2026:30089 vendor-advisory
- RHSA-2026:34098 vendor-advisory
- RHSA-2026:39981 vendor-advisory
- RHSA-2026:58981 vendor-advisory
- RHSA-2026:59831 vendor-advisory
- RHSA-2026:72502 vendor-advisory
- RHSA-2026:74674 vendor-advisory
- RHSA-2026:7473 vendor-advisory
- RHSA-2026:82304 vendor-advisory
- RHSA-2026:82322 vendor-advisory
- RHSA-2026:82347 vendor-advisory
- RHSA-2026:82354 vendor-advisory
- RHSA-2026:82372 vendor-advisory
- RHSA-2026:82857 vendor-advisory
- RHSA-2026:82888 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-4878 vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2447554
- RHBZ#2451615 issue-tracking