CVE-2026-91205

Cockpit-files: cockpit-files: local attacker can hijack file ownership via symlink race

Published Sep 18, 2026 CVSS 3.1 · 6 Medium EPSS < 1% KEV · Not listed
Description
A flaw was found in cockpit-files. A local unprivileged attacker can exploit a race condition during directory creation with owner assignment. By controlling a writable parent directory, the attacker can replace a newly created directory with a symbolic link (symlink) before the ownership change operation (chown) is applied. This allows the attacker to redirect the ownership change to an arbitrary file, potentially leading to information disclosure or unauthorized modification of sensitive files.

Analysis

AI-generated

Technical impact

A race condition in cockpit-files allows a local unprivileged attacker that can write to a chosen directory to replace a freshly created directory with a symbolic link before the ownership change function (chown) is executed. This maneuver redirects the ownership change to the target of the symlink, giving the attacker control over the ownership of an arbitrary file. The attacker can thus gain unintended file ownership, potentially reading protected data or modifying critical system files, which compromises confidentiality and integrity of the system.

Affected Systems

The flaw affects Red Hat Enterprise Linux 10 and 9, specifically the cockpit-files component. No specific version numbers are listed, so any installation of cockpit-files on these operating systems should be considered vulnerable until an update is applied.

Risk and Exploitability

The vulnerability has a CVSS score of 6, indicating moderate severity. EPSS is not available, so the estimated probability of exploitation is unknown, though the attack requires local execution and the ability to create files in a directory that cockpit-files can later chown. The vulnerability is not listed in the CISA KEV catalog. An attacker who successfully exploits the race might redirect ownership to an arbitrary file, potentially leading to information disclosure or unauthorized file modification.

Remediation

Vendor Workaround

Avoid using the privileged owner-assignment directory-creation flow in Cockpit Files inside directories that are writable by untrusted local users. Restrict write permissions on shared parent directories, and where directories must remain shared and writable, apply the sticky bit so users cannot replace directory entries they do not own. Creating directories without an owner assignment does not trigger the vulnerable privileged chown path and can be used where the owner-setting feature is not required. Updated packages that address this flaw are being delivered for the actively maintained releases.


OpenCVE Recommended Actions

  • Apply the latest Red Hat security update for cockpit-files that eliminates the symlink race condition.
  • If an update is unavailable, change the ownership and permissions of directories used by cockpit-files to remove write access from unprivileged users.
  • Enable filesystem integrity monitoring to detect unexpected symlink creation or ownership changes in critical directories.

Generated by OpenCVE AI on September 19, 2026 at 10:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10.3
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10 cpe:/o:redhat:enterprise_linux:10.2
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:9 cpe:/a:redhat:enterprise_linux:9::appstream
References
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description A flaw was found in cockpit-files. A local unprivileged attacker can exploit a race condition during directory creation with owner assignment. By controlling a writable parent directory, the attacker can replace a newly created directory with a symbolic link (symlink) before the ownership change operation (chown) is applied. This allows the attacker to redirect the ownership change to an arbitrary file, potentially leading to information disclosure or unauthorized modification of sensitive files.
Title Cockpit-files: cockpit-files: local attacker can hijack file ownership via symlink race
First Time appeared Redhat
Redhat enterprise Linux
Weaknesses CWE-363
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-363

    Race Condition Enabling Link Following

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 11, 2026, 12:59 PM
Reserved
Sep 14, 2026, 9:59 PM
Status
Awaiting Analysis
Published
Sep 18, 2026, 8:17 PM
Modified
Nov 11, 2026, 1:17 PM
Severity
Moderate
Public date
Sep 18, 2026, 4:33 PM