Logo
vulnerabilityCVE-2026-4878
Name
CVE-2026-4878
Source
NVD ( link)Debian ( link)
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.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
libcap
Patched

Vulnerability Ratings#


6.7
CVSSv31
7
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
master
2.78
Not Affected
openwrt
master
2.69-r1
Not Affected
openwrt
openwrt-25.12
2.69-r1
Not Affected
yocto
kirkstone
2.66
Not Affected
yocto
master
2.78
Not Affected
yocto
scarthgap
2.69
Not Affected

Resolved with patches#


libcap (buildroot:2025.02.x)

#
Title
Author
Resolve
1
Address a potential TOCTOU race condition in cap_set_file().
"Andrew G. Morgan" <morgan@kernel.org>
CVE-2026-4878