GitHub Advisoryadvisory · crates.io

GHSA-8vrf-r662-2w2v cp: -R reads device nodes as streams, destroying device semantics

MEDIUM Published 2026-07-06 Modified 2026-07-06 Official page ↗
Aliases
CVE-2026-35358
Ecosystem
crates.io
Packages
uu_cp
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Weaknesses
CWE-400, CWE-706
Reviewed
2026-07-06

Affected packages

• crates.io uu_cp: < 0.7.0 → fixed in 0.7.0

Description

The cp utility in uutils coreutils, when performing recursive copies (-R), incorrectly treats character and block device nodes as stream sources rather than preserving them. Because the implementation reads bytes into regular files at the destination instead of using mknod, device semantics are destroyed (e.g., /dev/null becomes a regular file). This behavior can lead to runtime denial of service through disk exhaustion or process hangs when reading from unbounded device nodes. --- _Zellic finding 3.53. Reported in the Zellic *uutils coreutils Program Security Assessment* (for Canonical, Jan 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`._

Related

Alias · CVE (1)

  • CVE-2026-35358 The cp utility in uutils coreutils, when performing recursive copies (-R), incorrectly treats character and block device nodes as stream… vulnerability

Weakness · CWE (2)

  • CWE-400 Uncontrolled Resource Consumption weakness
  • CWE-706 Use of Incorrectly-Resolved Name or Reference weakness

References