Skip to main content
EPSS 0.2%top 89%

CVE-2026-4878: Time-of-check Time-of-use (TOCTOU) Race Condition in Red Hat Red Hat Enterprise Linux 10

0
Medium
VulnerabilityCVE-2026-4878cvecve-2026-4878
Published: 04/09/2026 (04/09/2026, 14:49:02 UTC)
Source: CVE Database V5
Vendor/Project: Red Hat
Product: Red Hat Enterprise Linux 10

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.

CVSS v3.1

Score 6.7medium

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

Affected software

Red Hat

Red Hat Enterprise Linux 10

Red Hat

Red Hat Enterprise Linux 10

Red Hat

Red Hat Enterprise Linux 10.0 Extended Update Support

Red Hat

Red Hat Enterprise Linux 8

Red Hat

Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support

Red Hat

Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On

Red Hat

Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Red Hat

Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions

Red Hat

Red Hat Enterprise Linux 9

Red Hat

Red Hat Enterprise Linux 9

Red Hat

Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Red Hat

Red Hat Enterprise Linux 9.4 Extended Update Support

Red Hat

Red Hat Enterprise Linux 9.6 Extended Update Support

Red Hat

Red Hat OpenShift Container Platform 4.12

Red Hat

Red Hat OpenShift Container Platform 4.13

Red Hat

Red Hat OpenShift Container Platform 4.14

Red Hat

Red Hat OpenShift Container Platform 4.15

Red Hat

Red Hat OpenShift Container Platform 4.16

Red Hat

Red Hat OpenShift Container Platform 4.17

Red Hat

Red Hat OpenShift Container Platform 4.18

Red Hat

Red Hat OpenShift Container Platform 4.19

Red Hat

Cost Management 4

Red Hat

Cost Management 4

Red Hat

Red Hat AI Inference Server 3.2

Red Hat

Red Hat AI Inference Server 3.3

Red Hat

Red Hat AI Inference Server 3.3

Red Hat

Red Hat AI Inference Server 3.3

Red Hat

Red Hat AI Inference Server 3.3

Red Hat

Red Hat Discovery 2

Red Hat

Red Hat Discovery 2

Red Hat

Red Hat Discovery 2

Red Hat

Red Hat Discovery 2

Red Hat

Red Hat Hardened Images

Red Hat

Red Hat Insights proxy 1.5

Red Hat

Red Hat OpenShift distributed tracing 3.9.3

Red Hat

Red Hat OpenShift distributed tracing 3.9.3

Red Hat

Red Hat OpenShift distributed tracing 3.9.3

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Enterprise Linux 6

Red Hat

Red Hat Enterprise Linux 7

Red Hat

Red Hat OpenShift Container Platform 4

Red Hat

Red Hat OpenShift Container Platform 4

redhat/libcap
pkg:rpm/redhat/libcap
Affected versions
<9.8<10.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/16/2026, 12:58:38 UTC

Technical Analysis

The vulnerability CVE-2026-4878 exists in the libcap library's cap_set_file() function, where a TOCTOU race condition allows a local unprivileged user with write access to a parent directory to manipulate file capability updates. By exploiting this race condition, an attacker can redirect capability changes to files they control, enabling injection or removal of capabilities on executables and thereby escalating privileges. Red Hat has rated this issue as Important and has issued security advisories RHSA-2026:12423 and RHSA-2026:12441 providing updated libcap packages to fix the vulnerability in Red Hat Enterprise Linux 9 and 10 across multiple architectures.

Potential Impact

Successful exploitation allows local unprivileged users to escalate privileges by modifying file capabilities on executables they should not control. This can compromise system security by enabling unauthorized privilege gains. The CVSS v3.1 base score is 6.7 (medium severity) with high impact on confidentiality, integrity, and availability. No known exploits in the wild have been reported at this time.

Mitigation Recommendations

Red Hat has released official security updates for libcap that fix this TOCTOU race condition vulnerability. Users should apply the updated libcap packages as per Red Hat advisories RHSA-2026:12423 (for RHEL 10) and RHSA-2026:12441 (for RHEL 9). Detailed update instructions are available at https://access.redhat.com/articles/11258. Applying these updates fully mitigates the vulnerability. No additional mitigation steps are required beyond installing the official patches.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
redhat
Date Reserved
2026-03-26T06:32:41.308Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-4878","vendor":"Red Hat"}]

Threat ID: 69d7ce5e1cc7ad14dae8f92c

Added to database: 04/09/2026, 16:05:50 UTC

Last enriched: 08/16/2026, 12:58:38 UTC

Last updated: 09/13/2026, 22:12:45 UTC

Views: 269

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses