{"id":"CVE-2026-35361","aliases":["CVE-2026-35361","GHSA-r9hw-mj3w-phcq"],"related":[],"kind":"vulnerability","state":"published","title":"uutils coreutils mknod Security Label Inconsistency and Broken Cleanup on SELinux Systems","summary":"The mknod utility in uutils coreutils fails to handle security labels atomically by creating device nodes before setting the SELinux context. If labeling fails, the utility attempts cleanup using std::fs::remove_dir, which cannot remove device nodes or FIFOs. This leaves mislabeled nodes behind with incorrect default contexts, potentially allowing unauthorized access to device nodes that should have been restricted by mandatory access controls.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The mknod utility in uutils coreutils fails to handle security labels atomically by creating device nodes before setting the SELinux context. If labeling fails, the utility attempts cleanup using std::fs::remove_dir, which cannot remove device nodes or FIFOs. This leaves mislabeled nodes behind with incorrect default contexts, potentially allowing unauthorized access to device nodes that should have been restricted by mandatory access controls.","source":"cvelist"},{"lang":"en","text":"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._","format":"markdown","source":"ghsa"},{"lang":"es","text":"La utilidad mknod en uutils coreutils falla al manejar las etiquetas de seguridad atómicamente al crear nodos de dispositivo antes de establecer el contexto de SELinux. Si el etiquetado falla, la utilidad intenta la limpieza usando std::fs::remove_dir, que no puede eliminar nodos de dispositivo o FIFOs. Esto deja nodos mal etiquetados con contextos predeterminados incorrectos, lo que podría permitir el acceso no autorizado a nodos de dispositivo que deberían haber sido restringidos por controles de acceso obligatorios.","source":"nvd"}],"published":"2026-04-22T16:08:30.756Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N","score":3.4,"rating":"LOW"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N","score":3.4,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N","score":3.4,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":4.4,"rating":"MEDIUM"}],"cwes":["CWE-281","CWE-459","CWE-732"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.6.0","status":"affected"}],"vendor":"Uutils","product":"coreutils","package":"coreutils","repo":"https://github.com/uutils/coreutils","platforms":["Linux","Unix","macOS"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.0"}],"ecosystem":"crates.io","package":"uu_mknod","purl":"pkg:cargo/uu_mknod","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.6.0"}],"vendor":"uutils","product":"coreutils","cpe":"cpe:2.3:a:uutils:coreutils:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/uutils/coreutils/pull/10582","tags":["exploit","issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/uutils/coreutils/releases/tag/0.6.0","tags":["release-notes","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/uutils/coreutils/security/advisories/GHSA-r9hw-mj3w-phcq","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35361","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/uutils/coreutils/commit/42b2ad83cdcf6e959ecb378c5040c60d9c64becf","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/uutils/coreutils","tags":["package"],"sources":["ghsa"]}],"credits":["Zellic"],"assigner":"canonical","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-22T17:35:03.136Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35361","url":"https://www.cve.org/CVERecord?id=CVE-2026-35361","licence":"CVE Terms of Use","modified":"2026-04-22T17:35:15.707Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r9hw-mj3w-phcq","url":"https://github.com/advisories/GHSA-r9hw-mj3w-phcq","licence":"CC-BY-4.0","modified":"2026-07-06T22:11:17.087Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35361","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35361","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:19.331Z","epss":{"score":0.00129,"percentile":0.02801,"date":"2026-12-01T12:00:22.000Z"}}