CVE-2026-59676

Local File Deletion Attack Vector in rm_rf() in seunshare

Published Jul 23, 2026 CVSS 4.0 · 5.8 Medium EPSS < 1% KEV · Not listed
Description
A Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in seunshare of selinux policycoreutils allows a user calling seunshare that is running in the unconfined SELinux domain to delete arbitrary root-owned files,






This issue affects policycoreutils through 3.10.

Analysis

AI-generated

Technical impact

A Time‑of‑check Time‑of‑use race condition in the rm_rf() function of seunshare within the SELinux policycoreutils package allows a local user running in the unconfined SELinux domain to delete any root‑owned file on the system. The flaw arises from an insecure check‑then‑act sequence that can be hijacked when the user is granted the ability to invoke seunshare. The result is uncontrolled data loss or removal of system configuration files, which can lead to instability or unauthorized privilege escalation. The weakness is classified as CWE-367, a TOCTOU Condition.

Affected Systems

SELinuxProject’s selinux policycoreutils package is affected, with the vulnerability present in all releases through version 3.10. Users running earlier or later versions are at risk if they use the seunshare command in an unconfined SELinux context.

Risk and Exploitability

The CVSS score of 5.8 indicates moderate severity, while the EPSS score of less than 1% suggests a very low probability of exploitation at this time. The issue is not listed in the CISA KEV catalog, and no public exploits are known. The likely attack vector is a local user executing seunshare in an unconfined domain; therefore, the vulnerability primarily affects systems where unconfined processes are permitted and SELinux policies do not adequately restrict file deletion rights.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SELinux Project’s selinux policycoreutils to a version newer than 3.10 (e.g., 3.11 or later).
  • Limit the use of seunshare for unconfined users or enforce stricter SELinux policies to prevent arbitrary file deletes.
  • Review and adjust file system permissions so that critical root‑owned files cannot be deleted by unconfined processes.

Generated by OpenCVE AI on August 3, 2026 at 22:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Selinux Project
Selinux Project selinux
Vendors & Products Selinux Project
Selinux Project selinux
Type Values Removed Values Added
Description A Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in seunshare of selinux policycoreutils allows a user calling seunshare that is running in the unconfined SELinux domain to delete arbitrary root-owned files, This issue affects policycoreutils through 3.10.
Title Local File Deletion Attack Vector in rm_rf() in seunshare
Weaknesses CWE-367
References
Metrics cvssV4_0

{'score': 5.8, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-367

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

Sources

Status
PUBLISHED
Assigner
suse
Published
Updated
Jul 23, 2026, 2:02 PM
Reserved
Jul 6, 2026, 11:59 AM
Status
Deferred
Published
Jul 23, 2026, 7:16 AM
Modified
Oct 24, 2026, 1:10 PM
Severity
Moderate
Public date
Jul 23, 2026, 6:40 AM