CVE-2026-4878
A flaw was found in libcap. A local unprivileged user can exploit a …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- access.redhat.com/security/cve/CVE-2026-4878
- bugzilla.redhat.com/show_bug.cgi?id=2447554
- bugzilla.redhat.com/show_bug.cgi?id=2451615
- www.openwall.com/lists/oss-security/2026/04/07/14
- www.openwall.com/lists/oss-security/2026/04/07/4
- www.openwall.com/lists/oss-security/2026/04/08/9
- www.openwall.com/lists/oss-security/2026/04/09/5
- www.openwall.com/lists/oss-security/2026/04/09/6
- nvd.nist.gov/vuln/detail/CVE-2026-4878
- cve.org/CVERecord?id=CVE-2026-4878
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.