Time-of-check Time-of-use (TOCTOU) Affecting libcap-devel package, versions <0:2.48-10.el9_7.1


Severity

Recommended
0.0
high
0
10

Based on AlmaLinux security rating.

Threat Intelligence

EPSS
0.01% (2nd 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 Learn

Learn about Time-of-check Time-of-use (TOCTOU) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-ALMALINUX9-LIBCAPDEVEL-16344216
  • published2 May 2026
  • disclosed30 Apr 2026

Introduced: 30 Apr 2026

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

How to fix?

Upgrade AlmaLinux:9 libcap-devel to version 0:2.48-10.el9_7.1 or higher.
This issue was patched in ALSA-2026:12441.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libcap-devel package and not the libcap-devel package as distributed by AlmaLinux. See How to fix? for AlmaLinux:9 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.

CVSS Base Scores

version 3.1