CVE-2026-4878

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

MEDIUM 6.7

At a glance

Source
NVD
EPSS
EPSS 0.20 % · percentile 10 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-367 — Time-of-check Time-of-use (TOCTOU) Race Condition

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 6.7CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:Hredhat
CVSS 3.1MEDIUM 6.7CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:Hredhat-SADP
CVSS 3.1MEDIUM 6.7CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:HNVD · secalert@redhat.com (Secondary)
CVSS 3.1HIGH 7.0CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)
CVSS 3.1MEDIUM 6.7CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:HNVD · 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Red Hat · Red Hat Enterprise Linux 10unaffected 0:2.69-7.el10_1.1 < *
Red Hat · Red Hat Enterprise Linux 10unaffected 0:2.69-7.el10_2.1 < *
Red Hat · Red Hat Enterprise Linux 10.0 Extended Update Supportunaffected 0:2.69-7.el10_0.1 < *
Red Hat · Red Hat Enterprise Linux 8unaffected 0:2.48-6.el8_10.1 < *
Red Hat · Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportunaffected 0:2.48-4.el8_6.1 < *
Red Hat · Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onunaffected 0:2.48-4.el8_6.1 < *
Red Hat · Red Hat Enterprise Linux 8.8 Telecommunications Update Serviceunaffected 0:2.48-5.el8_8.1 < *
Red Hat · Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsunaffected 0:2.48-5.el8_8.1 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:2.48-10.el9_7.1 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:2.48-10.el9_8.1 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:2.48-10.el9_7.1 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:2.48-10.el9_8.1 < *
Red Hat · Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsunaffected 0:2.48-9.el9_2.1 < *
Red Hat · Red Hat Enterprise Linux 9.4 Extended Update Supportunaffected 0:2.48-9.el9_4.1 < *
Red Hat · Red Hat Enterprise Linux 9.6 Extended Update Supportunaffected 0:2.48-9.el9_6.1 < *
Red Hat · Red Hat OpenShift Container Platform 4.12unaffected 412.86.202608241157-0 < *
Red Hat · Red Hat OpenShift Container Platform 4.13unaffected 413.92.202606160406-0 < *
Red Hat · Red Hat OpenShift Container Platform 4.14unaffected 414.92.202606231112-0 < *
Red Hat · Red Hat OpenShift Container Platform 4.15unaffected 415.92.202606030318-0 < *
Red Hat · Red Hat OpenShift Container Platform 4.16unaffected 416.94.202606051757-0 < *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD