{"id":"GHSA-r9hw-mj3w-phcq","revision":"4bc71b1c309b4044b54bad99525debe8","records":[{"revision":"4bc71b1c309b4044b54bad99525debe8","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-r9hw-mj3w-phcq","aliases":["CVE-2026-35361"],"title":"mknod: Device nodes created mislabeled on SELinux, with broken cleanup (remove_dir on a node)","description":"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._","state":0,"publishedAt":"2026-07-06T21:54:05+00:00","modifiedAt":"2026-07-06T22:11:17.087839+00:00","affected":[{"ecosystem":"crates.io","name":"uu_mknod","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.6.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/uutils/coreutils/security/advisories/GHSA-r9hw-mj3w-phcq","https://nvd.nist.gov/vuln/detail/CVE-2026-35361","https://github.com/uutils/coreutils/pull/10582","https://github.com/uutils/coreutils/commit/42b2ad83cdcf6e959ecb378c5040c60d9c64becf","https://github.com/uutils/coreutils","https://github.com/uutils/coreutils/releases/tag/0.6.0"],"sourceUrl":"https://github.com/advisories/GHSA-r9hw-mj3w-phcq","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-r9hw-mj3w-phcq","identifiers":["GHSA-r9hw-mj3w-phcq","CVE-2026-35361"]},"retained":false,"historicalAffected":[]}],"coverage":[]}