CVE-2026-35368

Description

A flaw was found in uutils coreutils. The chroot utility, when used with the --userspec option, resolves user specifications after entering a restricted environment (chroot) but before relinquishing root privileges. This can cause the Name Service Switch (NSS), a system for resolving system information, to load malicious shared libraries from the new restricted directory if an attacker has write access. Successful exploitation allows an attacker to execute arbitrary code as root, potentially leading to privilege escalation or a full container escape.

Statement

Red Hat has evaluated this vulnerability as having an Important impact because successful exploitation allows a local attacker to break container boundaries or gain elevated root privileges. Standard Red Hat Enterprise Linux releases ship GNU coreutils rather than the Rust implementation, limiting exposure primarily to environments explicitly utilizing the rust-coreutils package. Triggering this flaw requires a privileged user or service to invoke chroot with user specifications on an untrusted target directory where arbitrary files can be placed.

Understanding the Weakness (CWE)

Integrity,Confidentiality,Availability,Access Control

Technical Impact: Gain Privileges or Assume Identity; Execute Unauthorized Code or Commands

There is the potential for arbitrary code execution with privileges of the vulnerable program. If the product uses a search path to locate critical resources such as programs or libraries, then an attacker could modify that search path to point to a malicious program/library, which the targeted product would then execute.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

The program could be redirected to the wrong files, potentially triggering a crash or hang when the targeted file is too large or does not have the expected format.

Confidentiality

Technical Impact: Read Files or Directories

The program could access unauthorized data and send the output of unauthorized files to the attacker.

Other

Technical Impact: Varies by Context

The problem extends to any type of critical resource that the product trusts. For example, the attacker could modify configuration in unexpected ways.

Frequently Asked Questions

Want to get errata notifications? Sign up here.