CVE-2026-19079: Time-of-check Time-of-use (TOCTOU) Race Condition in Red Hat Red Hat Hardened Images
A TOCTOU (Time-of-Check-Time-of-Use) race condition vulnerability exists in the fixfiles script of policycoreutils in Red Hat Hardened Images. The vulnerability allows a local attacker to exploit a race window during filesystem relabeling operations to manipulate SELinux labels on arbitrary system files, potentially undermining SELinux protections on critical files like /etc/shadow. The attack requires local access, winning a race condition, and an administrator running fixfiles relabel or fixfiles restore, limiting practical exploitation. A workaround is to use 'restorecon -R /' directly instead of the vulnerable fixfiles commands. Red Hat has not yet released a fix for this issue and is still analyzing affected versions.
AI Analysis
Technical Summary
CVE-2026-19079 is a TOCTOU race condition vulnerability in the fixfiles script of policycoreutils used in Red Hat Hardened Images. The script uses find and chcon commands to relabel unlabeled files under /tmp and other directories. An attacker with local access can exploit the race window between file discovery and label change by swapping directory components with symlinks, causing chcon to follow symlinks and modify SELinux labels on arbitrary system files. This can compromise SELinux mandatory access control protections on critical files such as /etc/shadow. The vulnerability requires local privileges and administrative execution of fixfiles relabel or restore, limiting the attack surface. Red Hat is investigating affected versions and whether backporting fixes is necessary. A mitigation is to avoid using fixfiles relabel or restore and instead use 'restorecon -R /' to perform relabeling, which bypasses the vulnerable code path. No official fix has been released yet.
Potential Impact
The vulnerability allows a local attacker to manipulate SELinux labels on arbitrary system files by exploiting a race condition in the fixfiles script. This can undermine SELinux mandatory access control protections, potentially allowing unauthorized modification of critical files such as /etc/shadow. However, exploitation requires local access, winning a race condition, and an administrator running the vulnerable fixfiles commands, which limits the practical attack surface. There is no indication of remote exploitation or automated attacks in the wild.
Mitigation Recommendations
Red Hat recommends using 'restorecon -R /' directly instead of 'fixfiles relabel' or 'fixfiles restore' to avoid the vulnerable /tmp-specific find+chcon code path. This workaround skips the /tmp cleanup logic, which is generally unnecessary on modern systems where /tmp is mounted as tmpfs. Red Hat is still analyzing affected versions and has not yet released an official fix. Users should monitor Red Hat advisories for updates and apply official patches once available.
CVE-2026-19079: Time-of-check Time-of-use (TOCTOU) Race Condition in Red Hat Red Hat Hardened Images
Description
A TOCTOU (Time-of-Check-Time-of-Use) race condition vulnerability exists in the fixfiles script of policycoreutils in Red Hat Hardened Images. The vulnerability allows a local attacker to exploit a race window during filesystem relabeling operations to manipulate SELinux labels on arbitrary system files, potentially undermining SELinux protections on critical files like /etc/shadow. The attack requires local access, winning a race condition, and an administrator running fixfiles relabel or fixfiles restore, limiting practical exploitation. A workaround is to use 'restorecon -R /' directly instead of the vulnerable fixfiles commands. Red Hat has not yet released a fix for this issue and is still analyzing affected versions.
CVSS v3.1
Score 4.4medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-19079 is a TOCTOU race condition vulnerability in the fixfiles script of policycoreutils used in Red Hat Hardened Images. The script uses find and chcon commands to relabel unlabeled files under /tmp and other directories. An attacker with local access can exploit the race window between file discovery and label change by swapping directory components with symlinks, causing chcon to follow symlinks and modify SELinux labels on arbitrary system files. This can compromise SELinux mandatory access control protections on critical files such as /etc/shadow. The vulnerability requires local privileges and administrative execution of fixfiles relabel or restore, limiting the attack surface. Red Hat is investigating affected versions and whether backporting fixes is necessary. A mitigation is to avoid using fixfiles relabel or restore and instead use 'restorecon -R /' to perform relabeling, which bypasses the vulnerable code path. No official fix has been released yet.
Potential Impact
The vulnerability allows a local attacker to manipulate SELinux labels on arbitrary system files by exploiting a race condition in the fixfiles script. This can undermine SELinux mandatory access control protections, potentially allowing unauthorized modification of critical files such as /etc/shadow. However, exploitation requires local access, winning a race condition, and an administrator running the vulnerable fixfiles commands, which limits the practical attack surface. There is no indication of remote exploitation or automated attacks in the wild.
Mitigation Recommendations
Red Hat recommends using 'restorecon -R /' directly instead of 'fixfiles relabel' or 'fixfiles restore' to avoid the vulnerable /tmp-specific find+chcon code path. This workaround skips the /tmp cleanup logic, which is generally unnecessary on modern systems where /tmp is mounted as tmpfs. Red Hat is still analyzing affected versions and has not yet released an official fix. Users should monitor Red Hat advisories for updates and apply official patches once available.
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:51861
- Cve Count
- 1
- Additional Cves
- []
- Cvss Version
- null
Threat ID: 6a77429cbf8831d539b080f3
Added to database: 08/08/2026, 14:52:12 UTC
Last enriched: 08/08/2026, 15:12:39 UTC
Last updated: 08/08/2026, 15:41:08 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.