CVE-2026-4878

medium
Published 2026-04-09 ยท Modified 2026-06-02
CVSS v3
6.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
6.7

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.

Predictions

Exploit likelihood
66%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

suse SUSE Affected 1 release
VersionStatusFixed in
โ€” Affected โ€”
debian Debian Mixed 5 releases
VersionStatusFixed in
trixie Fixed 1:2.75-10+deb13u1
sid Fixed 1:2.78-1
forky Fixed 1:2.78-1
bullseye Affected โ€”
bookworm Fixed 1:2.66-4+deb12u3
redhat Red Hat Mixed 5 releases
VersionStatusFixed in
10.0 Affected โ€”
9.0 Affected โ€”
9 Fixed โ€”
8.0 Affected โ€”
8 Fixed โ€”
almalinux AlmaLinux Fixed 1 release
VersionStatusFixed in
9 Fixed libcap-devel-2.48-10.el9_7.1.aarch64.rpm
rockylinux Rocky Linux Fixed 1 release
VersionStatusFixed in
9 Fixed โ€”

Application impact

VendorProductVersionsFixed
libcap_projectlibcap-
redhat redhatopenshift_container_platform4.0
libcap_projectlibcap-
redhat redhatopenshift_container_platform4.0
gcp googlegcp

References

CWEs

CWE-367

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.