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
Published: 04/09/2026 (04/09/2026, 14:49:02 UTC)
Source: GCVE Database
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

Affected versions
>=10 <10.2>=9 <9.8Red HatRed Hat Enterprise LinuxRed Hat Enterprise Linux AppStream (v. 10)Red Hat Enterprise Linux BaseOS (v. 10)aarch64Red Hat Enterprise Linux AppStream (v. 9)Red Hat Enterprise Linux BaseOS (v. 9)Red Hat Enterprise Linux BaseOS (v. 8)srclibcap-0:2.48-6.el8_10.1.srcppc64leRed Hat Hardened Imageslibcap-main@aarch64Red Hat Enterprise Linux AppStream EUS (v.9.6)Red Hat Enterprise Linux BaseOS EUS (v.9.6)Red Hat Enterprise Linux AppStream EUS (v.9.4)Red Hat Enterprise Linux BaseOS EUS (v.9.4)Red Hat Enterprise Linux AppStream EUS (v. 10.0)Red Hat Enterprise Linux BaseOS EUS (v. 10.0)Red Hat Enterprise Linux AppStream E4S (v.9.2)Red Hat Enterprise Linux BaseOS E4S (v.9.2)Red Hat Enterprise Linux BaseOS E4S (v.8.8)Red Hat Enterprise Linux BaseOS TUS (v.8.8)Red Hat OpenShift EnterpriseRed Hat OpenShift Container Platform 4.15rhcos-aarch64-415.92.202606030318-0Red Hat OpenShift Container Platform 4.19rhcos-aarch64-4.19.9.6.202606031700-0Red Hat Enterprise Linux BaseOS AUS (v.8.6)Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.6)

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/16/2026, 16:27:29 UTC

Technical Analysis

The libcap library, used for managing POSIX.1e capabilities, contains a TOCTOU race condition in the cap_set_file() function that allows privilege escalation (CVE-2026-4878). This race condition arises when the state of a file is checked and then used without proper synchronization, enabling an attacker to exploit the timing window to escalate privileges. Red Hat has issued security advisories RHSA-2026:12423 and RHSA-2026:12441 providing updated libcap packages that fix this vulnerability for Red Hat Enterprise Linux versions 8, 9, and 10 on multiple architectures including x86_64, s390x, ppc64le, and aarch64.

Potential Impact

Successful exploitation of this vulnerability could allow a local attacker to escalate privileges on affected systems by exploiting the race condition in cap_set_file(). This could lead to unauthorized access or control over system resources that require elevated privileges.

Mitigation Recommendations

Red Hat has released official security updates that fix this vulnerability. Users should apply the libcap package updates provided in Red Hat Enterprise Linux 8, 9, and 10 as detailed in advisories RHSA-2026:12423 and RHSA-2026:12441. Refer to https://access.redhat.com/articles/11258 for update instructions. No additional mitigation steps are required beyond applying the official patches.

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

Technical Details

Gcve Source
db.gcve.eu
Csaf Category
csaf_security_advisory
Csaf Version
2.0
Publisher
Red Hat Product Security
Advisory Id
RHSA-2026:20595
Cve Count
1
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a16097de29bf47b50649db2

Added to database: 05/26/2026, 20:58:37 UTC

Last enriched: 08/16/2026, 16:27:29 UTC

Last updated: 09/13/2026, 22:01:34 UTC

Views: 133

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.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

External Links

NVD DatabaseMITRE CVEhttps://access.redhat.com/errata/RHSA-2026:12423https://access.redhat.com/security/updates/classification/#important2451615Canonical URLhttps://access.redhat.com/errata/RHSA-2026:12441Canonical URLhttps://access.redhat.com/errata/RHSA-2026:7473https://images.redhat.com/https://access.redhat.com/security/cve/CVE-2026-4878https://access.redhat.com/security/updates/classification/Canonical URLhttps://access.redhat.com/errata/RHSA-2026:28887https://access.redhat.com/security/updates/classification/#critical245446924547142458077245808424588982464351247701524794922481486Canonical URLhttps://access.redhat.com/errata/RHSA-2026:13285Canonical URLhttps://access.redhat.com/errata/RHSA-2026:19130Canonical URLhttps://access.redhat.com/errata/RHSA-2026:19458Canonical URLhttps://access.redhat.com/errata/RHSA-2026:19346Canonical URLhttps://access.redhat.com/errata/RHSA-2026:19456Canonical URLhttps://access.redhat.com/errata/RHSA-2026:20595Canonical URLhttps://access.redhat.com/errata/RHSA-2026:21254Canonical URLhttps://access.redhat.com/errata/RHSA-2026:22957Canonical URLhttps://access.redhat.com/errata/RHSA-2026:24346Canonical URLReference 42Reference 43Reference 44Reference 45Reference 46Reference 47Reference 48Reference 49Reference 50Reference 51Reference 52Reference 53Reference 54Reference 55Reference 56Reference 57Reference 58Reference 59Reference 60Reference 61Reference 62Reference 63Reference 64Reference 65Reference 66Reference 672467771Canonical URLCanonical URLReference 71Search on Google

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