PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-4878 Red Hat CVE debrief

A flaw in libcap allows a local unprivileged user to exploit a Time-of-check-to-time-of-use (TOCTOU) race condition in the `cap_set_file()` function. This enables an attacker with write access to a parent directory to redirect file capability updates to an attacker-controlled file, potentially leading to privilege escalation. The vulnerability affects Red Hat Enterprise Linux 10 and other products that utilize libcap. System administrators and security teams should be aware of this vulnerability, especially in environments where unprivileged users have write access to parent directories of sensitive files.

Vendor
Red Hat
Product
Red Hat Enterprise Linux 10
CVSS
MEDIUM 6.7
CISA KEV
Not listed in stored evidence
Original CVE published
2026-04-09
Original CVE updated
2026-10-09
Advisory published
2026-04-09
Advisory updated
2026-10-09

Who should care

System administrators, security teams, and developers working with libcap or Red Hat Enterprise Linux 10 should be aware of this vulnerability. Unprivileged users with write access to parent directories of sensitive files are at risk.

Why it matters

CVE-2026-4878 is a medium-severity vulnerability in libcap that allows local privilege escalation through a TOCTOU race condition. It affects Red Hat Enterprise Linux 10 and other products. System administrators and security teams should prioritize patching and verify system configurations to mitigate the risk.

  • Privilege escalation is possible for local unprivileged users
  • File capability updates can be redirected to attacker-controlled files
  • System administrators need to prioritize patching affected systems
  • Verification of system configurations and user access controls is necessary

Technical summary

The `cap_set_file()` function in libcap is vulnerable to a Time-of-check-to-time-of-use (TOCTOU) race condition. This flaw allows a local unprivileged user with write access to a parent directory to redirect file capability updates to an attacker-controlled file, potentially leading to privilege escalation. The vulnerability affects Red Hat Enterprise Linux 10 and other products that utilize libcap. Defensive measures include prioritizing patching of affected systems, restricting write access to parent directories of sensitive files, and monitoring systems for suspicious activity related to file capability updates.

Defensive priority

System administrators and security teams should prioritize patching this vulnerability, especially for systems where unprivileged users have write access to parent directories of sensitive files.

Recommended defensive actions

  • Apply patches from Red Hat for affected systems
  • Restrict write access to parent directories of sensitive files
  • Monitor systems for suspicious activity related to file capability updates
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The CVE record and NVD entry provide details on the vulnerability, including its description and affected products. Red Hat has released several errata related to this vulnerability, indicating its impact on their products.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-4878 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-4878

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-4878 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-4878

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.