Bug 2555486 - CVE-2026-112210 rhc: rhc: local privilege escalation via symlink following in rhc-canonical-facts.service [fedora-all]
Summary: CVE-2026-112210 rhc: rhc: local privilege escalation via symlink following in...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: rhc
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: mhorky
QA Contact:
URL:
Whiteboard: {"flaws": ["769a9174-2526-450a-8a2c-e...
Depends On:
Blocks: CVE-2026-112210
TreeView+ depends on / blocked
 
Reported: 2026-10-19 10:32 UTC by Thibault Guittet
Modified: 2026-10-19 10:32 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Thibault Guittet 2026-10-19 10:32:30 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

A symlink-following vulnerability was found in rhc-canonical-facts.service. The service runs as root and performs `touch`, `chown yggdrasil:yggdrasil`, and `StandardOutput=truncate:` on `/var/lib/yggdrasil/canonical-facts.json` — a path inside a directory owned by the unprivileged yggdrasil user (via StateDirectory=yggdrasil). None of these operations reject symlinks.

An attacker with code execution as yggdrasil can replace canonical-facts.json with a symlink to an arbitrary file. When the service triggers (daily timer or `rhc connect`), the target file's ownership is transferred to yggdrasil and its content is truncated and overwritten.

The service has no User= directive, no systemd sandboxing, and no confined SELinux domain (systemd-analyze security: 9.6 UNSAFE). On RHEL 10.2 with SELinux Enforcing, the full exploit chain was confirmed against var_lib_t and systemd_unit_file_t targets. The /etc/shadow path is blocked by SELinux (init_t cannot open shadow_t for StandardOutput), but targeting systemd unit files provides a path to root.

Introduced in rhc v0.3.0. Versions prior to 0.3.0 do not ship this service file.

External reference: PSIRTSUPT-25922


Note You need to log in before you can comment on or make changes to this bug.