CVE-2026-35361: mknod Device Nodes Created Mislabeled On Vulnerability
LOWCVE-2026-35361 is a LOW (CVSS 3.4) device nodes created mislabeled on vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting mknod libraries in the crates.io ecosystem. The issue involves device nodes created mislabeled on selinux, with broken cleanup (remove_dir on a node). Remediation is available by upgrading affected packages to version 0.6.0.
CVE-2026-35361 at a Glance
Security Impact
CVSS: 3.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2026-35361
To remediate this vulnerability, upgrade all affected mknod dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade uu_mknod to 0.6.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for uu_mknod
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-35361, inspect your project dependencies for mknod:
inspect dependencies for uu_mknod
Analyze the terminal output to locate any version of mknod in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In mknod, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-35361 Affected mknod Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
uu_mknod
|
crates.io |
< 0.6.0
|
0.6.0
|
References
Frequently Asked Questions
What is CVE-2026-35361?
Which mknod versions are affected?
What version fixes CVE-2026-35361?
Is uu_mknod affected?
What is the CVSS score of CVE-2026-35361?
What CWE is associated with CVE-2026-35361?
How can I check crates.io dependencies for CVE-2026-35361?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r9hw-mj3w-phcq",
"modified" : "2026-07-06T21:54:05Z",
"published" : "2026-07-06T21:54:05Z",
"aliases" : [ "CVE-2026-35361" ],
"summary" : "mknod: Device nodes created mislabeled on SELinux, with broken cleanup (remove_dir on a node)",
"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._",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "uu_mknod"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/uutils/coreutils/security/advisories/GHSA-r9hw-mj3w-phcq"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-35361"
}, {
"type" : "WEB",
"url" : "https://github.com/uutils/coreutils/pull/10582"
}, {
"type" : "WEB",
"url" : "https://github.com/uutils/coreutils/commit/42b2ad83cdcf6e959ecb378c5040c60d9c64becf"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/uutils/coreutils"
}, {
"type" : "WEB",
"url" : "https://github.com/uutils/coreutils/releases/tag/0.6.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-281", "CWE-459", "CWE-732" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-06T21:54:05Z",
"nvd_published_at" : null
}
}