← CVE Intelligence

CVE-2026-4878

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

Description (CNA)

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 (CNA)

Vendor / productVersions
Red Hat / Red Hat Enterprise Linux 10unaffected 0:2.69-7.el10_1.1 before *
Red Hat / Red Hat Enterprise Linux 10unaffected 0:2.69-7.el10_2.1 before *
Red Hat / Red Hat Enterprise Linux 10.0 Extended Update Supportunaffected 0:2.69-7.el10_0.1 before *
Red Hat / Red Hat Enterprise Linux 8unaffected 0:2.48-6.el8_10.1 before *
Red Hat / Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportunaffected 0:2.48-4.el8_6.1 before *
Red Hat / Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onunaffected 0:2.48-4.el8_6.1 before *
Red Hat / Red Hat Enterprise Linux 8.8 Telecommunications Update Serviceunaffected 0:2.48-5.el8_8.1 before *
Red Hat / Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsunaffected 0:2.48-5.el8_8.1 before *
Red Hat / Red Hat Enterprise Linux 9unaffected 0:2.48-10.el9_7.1 before *
Red Hat / Red Hat Enterprise Linux 9unaffected 0:2.48-10.el9_8.1 before *
Red Hat / Red Hat Enterprise Linux 9unaffected 0:2.48-10.el9_7.1 before *
Red Hat / Red Hat Enterprise Linux 9unaffected 0:2.48-10.el9_8.1 before *
Red Hat / Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsunaffected 0:2.48-9.el9_2.1 before *
Red Hat / Red Hat Enterprise Linux 9.4 Extended Update Supportunaffected 0:2.48-9.el9_4.1 before *
Red Hat / Red Hat Enterprise Linux 9.6 Extended Update Supportunaffected 0:2.48-9.el9_6.1 before *
Red Hat / Red Hat OpenShift Container Platform 4.12unaffected 412.86.202608241157-0 before *
Red Hat / Red Hat OpenShift Container Platform 4.13unaffected 413.92.202606160406-0 before *
Red Hat / Red Hat OpenShift Container Platform 4.14unaffected 414.92.202606231112-0 before *
Red Hat / Red Hat OpenShift Container Platform 4.15unaffected 415.92.202606030318-0 before *
Red Hat / Red Hat OpenShift Container Platform 4.16unaffected 416.94.202606051757-0 before *
Red Hat / Red Hat OpenShift Container Platform 4.17unaffected 417.94.202606250942-0 before *
Red Hat / Red Hat OpenShift Container Platform 4.18unaffected 418.94.202606051320-0 before *
Red Hat / Red Hat OpenShift Container Platform 4.19unaffected 4.19.9.6.202606031700-0 before *
Red Hat / Cert Manager support for Red Hat OpenShift release 1.17unaffected 1791371080 before *
Red Hat / Cert Manager support for Red Hat OpenShift release 1.17unaffected 1791371069 before *
Red Hat / Cert Manager support for Red Hat OpenShift release 1.17unaffected 1791788287 before *
Red Hat / Cert Manager support for Red Hat OpenShift release 1.17unaffected 1791970484 before *
Red Hat / Cert Manager support for Red Hat OpenShift release 1.18unaffected 1791459707 before *
Red Hat / Cert Manager support for Red Hat OpenShift release 1.18unaffected 1791459711 before *
Red Hat / Cert Manager support for Red Hat OpenShift release 1.18unaffected 1791459759 before *
Red Hat / Cert Manager support for Red Hat OpenShift release 1.18unaffected 1789029076 before *
Red Hat / Cert Manager support for Red Hat OpenShift release 1.18unaffected 1791966259 before *
Red Hat / Cert Manager support for Red Hat OpenShift release 1.20unaffected 1790598593 before *
Red Hat / Cost Management 4unaffected 1780946239 before *
Red Hat / Cost Management 4unaffected 1783539156 before *
Red Hat / Red Hat AI Inference Server 3.2unaffected 1780681984 before *
Red Hat / Red Hat AI Inference Server 3.3unaffected 1782352950 before *
Red Hat / Red Hat AI Inference Server 3.3unaffected 1782352919 before *
Red Hat / Red Hat AI Inference Server 3.3unaffected 1782353093 before *
Red Hat / Red Hat AI Inference Server 3.3unaffected 1782352847 before *
Red Hat / Red Hat Discovery 2unaffected 1778101579 before *
Red Hat / Red Hat Discovery 2unaffected 1778156756 before *
Red Hat / Red Hat Discovery 2unaffected 1782159791 before *
Red Hat / Red Hat Discovery 2unaffected 1782166952 before *
Red Hat / Red Hat Hardened Imagesunaffected 2.78-1.1.hum1 before *
Red Hat / Red Hat Insights proxy 1.5unaffected 1780420428 before *
Red Hat / Red Hat OpenShift AI 3.4unaffected 1790703542 before *
Red Hat / Red Hat OpenShift distributed tracing 3.9.3unaffected 1778056267 before *
Red Hat / Red Hat OpenShift distributed tracing 3.9.3unaffected 1778056233 before *
Red Hat / Red Hat OpenShift distributed tracing 3.9.3unaffected 1778056245 before *
Red Hat / Red Hat Update Infrastructure 5unaffected 1779798159 before *
Red Hat / Red Hat Update Infrastructure 5unaffected 1779798164 before *
Red Hat / Red Hat Update Infrastructure 5unaffected 1779798165 before *
Red Hat / Red Hat Update Infrastructure 5unaffected 1779798222 before *
Red Hat / Red Hat Update Infrastructure 5unaffected 1787241211 before *
Red Hat / Red Hat Update Infrastructure 5unaffected 1787135742 before *
Red Hat / Red Hat Update Infrastructure 5unaffected 1787241260 before *
Red Hat / Red Hat Enterprise Linux 6unknown
Red Hat / Red Hat Enterprise Linux 6unknown
Red Hat / Red Hat Enterprise Linux 7unknown
Red Hat / Red Hat Enterprise Linux 7unknown
Red Hat / Red Hat OpenShift Container Platform 4unknown

CWE

CWE-367

References

ADP enrichment

CVE

No English description supplied.

CISA-ADP

No English description supplied.

No references supplied.

redhat-SADP

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.