Time-of-check Time-of-use (TOCTOU) Affecting libcap-debuginfo package, versions <0:2.69-7.el10_0.1


Severity

Recommended
high

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.2% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL10-LIBCAPDEBUGINFO-16769449
  • published20 May 2026
  • disclosed6 Apr 2026

Introduced: 6 Apr 2026

CVE-2026-4878  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade RHEL:10 libcap-debuginfo to version 0:2.69-7.el10_0.1 or higher.
This issue was patched in RHSA-2026:19456.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libcap-debuginfo package and not the libcap-debuginfo package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

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.

References

CVSS Base Scores

version 3.1