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.
Published: 2026-08-07
Score: 4.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A Time‑of‑Check Time‑of‑Use race condition exists in the policycoreutils fixfiles script. The script runs find and chcon to locate unlabeled files under /tmp and other directories. During the window between discovery and label assignment, an attacker may replace directory components with symlinks, causing chcon to follow the symlink and change the SELinux context on an arbitrary file. The vulnerability can therefore lead to arbitrary changes to SELinux labels, undermining the mandatory access control that protects files such as /etc/shadow. The attack is likely local; an attacker would need to invoke a privileged instance of fixfiles, for example by exploitation of local privilege or manipulation of a service that runs as root.

Affected Systems

Red Enterprise Linux distributions version 6 through 10, Red Hardened Images, and Red OpenShift Container Platform 4 are affected. All variants of these products that include the policycoreutils package are susceptible; specific version ranges are not listed.

Risk and Exploitability

The CVSS score of 4.4 indicates a moderate impact. Exploitation requires local access and the ability to invoke or influence the fixfiles command, which is normally privileged. The EPSS score is not available and the vulnerability is not included in CISA’s KEV catalog, suggesting limited exploitation evidence. Nonetheless, the ability to alter SELinux labels can bypass mandatory access control restrictions on system files, representing a moderate risk in environments that actively use the fixfiles script.

Generated by OpenCVE AI on August 7, 2026 at 09:22 UTC.

Remediation

Vendor Workaround

As a workaround, use 'restorecon -R /' directly instead of 'fixfiles relabel' or 'fixfiles restore' to perform filesystem relabeling. This avoids the vulnerable /tmp-specific find+chcon code path entirely. Note that this skips the /tmp cleanup logic, but on modern systems where /tmp is mounted as tmpfs, this cleanup is unnecessary as tmpfs cannot retain files from a prior boot.


OpenCVE Recommended Actions

  • Upgrade the policycoreutils package to the latest release that includes the fix for this TOCTOU race condition.
  • When relabeling the filesystem, run 'restorecon -R /' instead of 'fixfiles relabel' or 'fixfiles restore' to avoid the vulnerable /tmp‑specific find+chcon code path.
  • Ensure that /tmp is mounted as tmpfs so that the cleanup logic is unnecessary; if not, adjust the /tmp mount options accordingly.

Generated by OpenCVE AI on August 7, 2026 at 09:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 08 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
First Time appeared Redhat hardened Images
Redhat openshift Container Platform
Redhat policycoreutils
Vendors & Products Redhat hardened Images
Redhat openshift Container Platform
Redhat policycoreutils

Fri, 07 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
References

Fri, 07 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 07 Aug 2026 07:45:00 +0000

Type Values Removed Values Added
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.
Title Policycoreutils: policycoreutils: toctou race condition in fixfiles allows arbitrary selinux label manipulation
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
Weaknesses CWE-367
CPEs cpe:/a:redhat:hummingbird:1
cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
References
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N'}


Subscriptions

Redhat Enterprise Linux Hardened Images Hummingbird Openshift Openshift Container Platform Policycoreutils
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-08-21T12:13:57.911Z

Reserved: 2026-08-06T11:13:39.734Z

Link: CVE-2026-19079

cve-icon Vulnrichment

Updated: 2026-08-07T17:41:17.609Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-08-07T08:16:46.160

Modified: 2026-08-21T13:16:56.017

Link: CVE-2026-19079

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-08T20:53:24Z

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition