medium

CVE-2026-35358

crates.io · uu_cp • crates.io · coreutils

Summary

cp: -R reads device nodes as streams, destroying device semantics

Severity
medium
CVSS
4.4
EPSS
0.2% (p7)
CWE
CWE-400, CWE-706
Also known as
GHSA-67hp-f6hq-2h6g, GHSA-8vrf-r662-2w2v
Published
2026-07-06
Updated
2026-07-06

Advisory details

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.

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.