CVE-2026-4878: Local privilege escalation via TOCTOU race in libcap cap_set_file()
- Vendors
- Libcap ProjectRed Hat
CVE-2026-4878 is a time-of-check-to-time-of-use race condition in libcap's cap_set_file() function. A local unprivileged attacker with write access to a parent directory can race a file capability update and redirect it to an attacker-controlled file. This permits capabilities to be injected into or stripped from unintended executables, potentially resulting in privilege escalation.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises file capability integrity and can allow an unprivileged local user to escalate privileges. Depending on the affected executable and capabilities applied, exploitation can have high confidentiality, integrity, and availability impacts. Removing capabilities from unintended executables can also interfere with their intended operation.
Mitigation
If you can’t patch tonight, do this now.
Restrict untrusted users' write access to parent directories involved in privileged file capability updates, and avoid performing such updates within attacker-writable directory trees until patched. These measures address the directory-write prerequisite; no vulnerability-specific vendor workaround is documented.
Remediation
Patch, then assume compromise.
Install vendor-patched libcap packages and any affected companion packages. Oracle Linux 9 identifies package release 2.48-10.1 as containing the fix in ELSA-2026-12441; this release identifier is distribution-specific. For affected container deployments, install the vendor's updated images, rebuild dependent images, and update deployment references. For bundled products, deploy the applicable fixed product release.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-4878 exploited in the wild?
- As of Nov 11, 2026, Mallory has no reports of CVE-2026-4878 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-4878?
- Yes. As of Nov 11, 2026, Mallory has reports of a public exploit for CVE-2026-4878.
- Is there a patch for CVE-2026-4878?
- Install vendor-patched libcap packages and any affected companion packages. Oracle Linux 9 identifies package release 2.48-10.1 as containing the fix in ELSA-2026-12441; this release identifier is distribution-specific.
- What products are affected by CVE-2026-4878?
- Libcap Project Libcap, Red Hat Openshift Container Platform, and Red Hat Enterprise Linux.
- How severe is CVE-2026-4878?
- CVE-2026-4878 has a CVSS v3.1 score of 7.0 (High) and an EPSS score of 0.15% (2nd percentile) as of Nov 11, 2026.
Recent activity
61 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.