{"id":"CVE-2026-35361","aliases":["GHSA-r9hw-mj3w-phcq"],"url":"https://o3.security/vulnerability/CVE-2026-35361","summary":"uutils coreutils mknod Security Label Inconsistency and Broken Cleanup on SELinux Systems","details":"uutils calls `mknod` *before* setting the SELinux context (GNU uses `setfscreatecon` first, labeling atomically). If `set_selinux_security_context` fails, cleanup uses `std::fs::remove_dir`, which cannot remove device nodes or FIFOs, leaving the mislabeled node behind.\n\n**Impact:** on SELinux-enforcing systems the node is created with the wrong context; the command reports failure but leaves a mislabeled device node that may bypass mandatory access control, and orphaned nodes can persist across reboots. Recommendation: use `setfscreatecon` before `mknod`, abort on failure, and use `remove_file` for cleanup.\n\n**Remediation:** Acknowledged by Canonical.\n\n---\n_Reported by Zellic in the *uutils coreutils Program Security Assessment* (prepared for Canonical, Jan 20 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`. Finding 3.58. Credit: Zellic._","published":"2026-04-22T16:08:30.756Z","modified":"2026-08-12T03:51:28.541463587Z","cvss":{"score":3.4,"severity":"LOW","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N"},"epss":{"score":0.00142,"percentile":0.03918,"asOf":"2026-09-16"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"uu_mknod","fixedVersion":"0.6.0"}],"fix":{"url":"https://github.com/uutils/coreutils/pull/10582","label":"uutils/coreutils#10582"},"references":[{"type":"WEB","url":"https://github.com/uutils"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35361.json"},{"type":"ADVISORY","url":"https://github.com/uutils/coreutils/releases/tag/0.6.0"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35361"},{"type":"FIX","url":"https://github.com/uutils/coreutils/pull/10582"},{"type":"PACKAGE","url":"https://github.com/uutils/coreutils"},{"type":"WEB","url":"https://github.com/uutils/coreutils/security/advisories/GHSA-r9hw-mj3w-phcq"},{"type":"WEB","url":"https://github.com/uutils/coreutils/commit/42b2ad83cdcf6e959ecb378c5040c60d9c64becf"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:28.541463587Z"}}