Advisory

GHSA-8vrf-r662-2w2v

Also known as: CVE-2026-35358

Summary

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

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._

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-07-06 20:21 UTC
Modified
2026-07-06 20:41 UTC

Affected packages and fixes

uu_cp

crates.io · All systems

Affected

  • introduced 0, fixed 0.7.0 (semver)

Fixed versions

0.7.0

Fix

  • Fixed version 0.7.0
    cargo update -p uu_cp --precise 0.7.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences