---
id: CVE-2026-19079
title: >-
  Policycoreutils: policycoreutils: toctou race condition in fixfiles allows
  arbitrary selinux label manipulation
summary: >-
  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 unlab…
severity: medium
cvss: 4.4
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N'
cvssSource: cna
cwe:
  - CWE-367
vendor: Red Hat
product: policycoreutils-main
affected:
  - policycoreutils-main (all versions)
  - policycoreutils (all versions)
  - policycoreutils
  - policycoreutils (all versions)
  - policycoreutils (all versions)
  - policycoreutils (all versions)
  - openshift/ose-rhel-coreos-8 (all versions)
  - openshift/ose-rhel-coreos-9 (all versions)
  - openshift/ose-rhel-coreos-9 (all versions)
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-08-07T17:40:57.382610Z'
published: '2026-08-07'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T19:26:08.201Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-19079'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2026:51861'
    label: 'RHSA-2026:51861'
  - url: 'https://access.redhat.com/security/cve/CVE-2026-19079'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2511976'
    label: RHBZ#2511976
  - url: >-
      https://github.com/SELinuxProject/selinux/commit/a556538c2d5d2583273e025b45c02651fef47679
tags:
  - cve.org
epss: 0.00106
epssPercentile: 0.01123
ingestedAt: '2026-11-05T22:38:31.542Z'
---

## Overview

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.

## Affected

- `policycoreutils-main (all versions)`
- `policycoreutils (all versions)`
- `policycoreutils`
- `policycoreutils (all versions)`
- `policycoreutils (all versions)`
- `policycoreutils (all versions)`
- `openshift/ose-rhel-coreos-8 (all versions)`
- `openshift/ose-rhel-coreos-9 (all versions)`
- `openshift/ose-rhel-coreos-9 (all versions)`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

### Workarounds

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.
