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 was found in the fixfiles script in policycoreutils. When running fixfiles relabel or fixfiles restore, the script used find and chcon commands to locate and relabel unlabeled files under /tmp and other directories. A local attacker could exploit a race window between the file discovery and the label change operation by swapping directory components with symlinks, causing chcon to follow the symlink and modify SELinux labels on arbitrary system files. This could undermine SELinux mandatory access control protections on critical files such as /etc/shadow.
AI Analysis
Technical Summary
CVE-2026-19079 is a TOCTOU race condition vulnerability in the fixfiles script within policycoreutils in Red Hat Hardened Images. When fixfiles relabel or restore commands run, they use find and chcon to locate and relabel unlabeled files under /tmp and other directories. A local attacker can exploit the race window between file discovery and label change by swapping directory components with symlinks, causing chcon to follow the symlink and modify SELinux labels on arbitrary system files, such as /etc/shadow. This undermines SELinux mandatory access control protections. The vulnerability requires local access, winning a race condition, and an administrator running fixfiles relabel or restore, which limits the attack surface. Red Hat has analyzed affected versions and released updated policycoreutils RPMs (version 3.11-2.2.hum1) to fix this issue. A recommended mitigation is to use 'restorecon -R /' instead of fixfiles relabel or restore to avoid the vulnerable code path. The vulnerability has a CVSS v3.1 score of 4.4 (medium severity) with local attack vector, high attack complexity, low privileges required, and user interaction required.
Potential Impact
The vulnerability allows a local attacker to modify SELinux labels on arbitrary system files by exploiting a race condition in the fixfiles script. This can undermine SELinux mandatory access control protections on critical files such as /etc/shadow, potentially allowing unauthorized modification of security-sensitive files. However, exploitation requires local access, winning a race condition, and an administrator running fixfiles relabel or restore commands, which limits the practical attack surface. The CVSS score of 4.4 reflects medium severity with high attack complexity and low privileges required.
Mitigation Recommendations
Red Hat has released updated policycoreutils packages (version 3.11-2.2.hum1) that fix this vulnerability. Users should apply these updates to remediate the issue. As a workaround, administrators can use the 'restorecon -R /' command 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. No other actions are required if the update is applied.
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 was found in the fixfiles script in policycoreutils. When running fixfiles relabel or fixfiles restore, the script used find and chcon commands to locate and relabel unlabeled files under /tmp and other directories. A local attacker could exploit a race window between the file discovery and the label change operation by swapping directory components with symlinks, causing chcon to follow the symlink and modify SELinux labels on arbitrary system files. This could undermine SELinux mandatory access control protections on critical files such as /etc/shadow.
CVSS v3.1
Score 4.4medium
Affected software
Red Hat
Red Hat Hardened Images
Red Hat
Red Hat Enterprise Linux 10
Red Hat
Red Hat Enterprise Linux 6
Red Hat
Red Hat Enterprise Linux 7
Red Hat
Red Hat Enterprise Linux 8
Red Hat
Red Hat Enterprise Linux 9
Red Hat
Red Hat OpenShift Container Platform 4
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-19079 is a TOCTOU race condition vulnerability in the fixfiles script within policycoreutils in Red Hat Hardened Images. When fixfiles relabel or restore commands run, they use find and chcon to locate and relabel unlabeled files under /tmp and other directories. A local attacker can exploit the race window between file discovery and label change by swapping directory components with symlinks, causing chcon to follow the symlink and modify SELinux labels on arbitrary system files, such as /etc/shadow. This undermines SELinux mandatory access control protections. The vulnerability requires local access, winning a race condition, and an administrator running fixfiles relabel or restore, which limits the attack surface. Red Hat has analyzed affected versions and released updated policycoreutils RPMs (version 3.11-2.2.hum1) to fix this issue. A recommended mitigation is to use 'restorecon -R /' instead of fixfiles relabel or restore to avoid the vulnerable code path. The vulnerability has a CVSS v3.1 score of 4.4 (medium severity) with local attack vector, high attack complexity, low privileges required, and user interaction required.
Potential Impact
The vulnerability allows a local attacker to modify SELinux labels on arbitrary system files by exploiting a race condition in the fixfiles script. This can undermine SELinux mandatory access control protections on critical files such as /etc/shadow, potentially allowing unauthorized modification of security-sensitive files. However, exploitation requires local access, winning a race condition, and an administrator running fixfiles relabel or restore commands, which limits the practical attack surface. The CVSS score of 4.4 reflects medium severity with high attack complexity and low privileges required.
Mitigation Recommendations
Red Hat has released updated policycoreutils packages (version 3.11-2.2.hum1) that fix this vulnerability. Users should apply these updates to remediate the issue. As a workaround, administrators can use the 'restorecon -R /' command 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. No other actions are required if the update is applied.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-08-06T11:13:39.734Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-19079","vendor":"Red Hat"}]
Threat ID: 6a758c3ebf8831d539f76887
Added to database: 08/07/2026, 07:41:50 UTC
Last enriched: 08/14/2026, 15:54:03 UTC
Last updated: 09/21/2026, 22:01:32 UTC
Views: 54
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.