CVE-2026-35361
JSON

3.4low

uutils coreutils mknod Security Label Inconsistency and Broken Cleanup on SELinux Systems

Severity
3.4low CVSS:3.1 by canonical
Exploit likelihood
0.13% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
canonical
Also known as
GHSA-r9hw-mj3w-phcq

Description

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.

Affected

Product or packageVersionsReported by
coreutilsbefore 0.6.0CVE List
uu_mknod (crates.io)before 0.6.0GitHub Advisory Database
uutils coreutilsbefore 0.6.0NVD

All scores

canonical3.4low CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N
GitHub3.4low CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N
NVD4.4medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Classification

CWE-281CWE-459CWE-732

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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.

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.

Remediation: Acknowledged by Canonical.


Reported by Zellic in the uutils coreutils Program Security Assessment (prepared for Canonical, Jan 20 2026), audited commit 3a07ffc5a9bd4c283e75afa548ba1f1957bad242. Finding 3.58. Credit: Zellic.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-35361 changed 2026-04-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-r9hw-mj3w-phcq changed 2026-07-06CC-BY-4.0
NVDCVE-2026-35361 changed 2026-10-26Public domain