Skip to main content

uutils coreutils EUVDEUVD-2026-25004

| CVE-2026-35361 MEDIUM
Improper Preservation of Permissions (CWE-281)
4.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain local root access or CAP_MKNOD
  2. Delivery
    Execute mknod for restricted device
  3. Exploit
    Trigger SELinux labeling failure
  4. Install
    Cleanup fails, node persists
  5. C2
    Access mislabeled device as unprivileged user
  6. Execute
    Bypass mandatory access controls
  7. Impact
    Escalate privileges or access protected resources

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Permission preservation
Exploitation Conditions

Exploitation requires: (1) local system access with root or CAP_MKNOD capability to execute mknod, (2) an active SELinux policy in enforcing or permissive mode on the target system (unaffected on systems without SELinux), (3) a labeling operation that fails during mknod execution (due to policy unavailability, permission denial, or transient system error), and (4) the attacker or malicious process capable of accessing the resulting mislabeled device node. The vulnerability does NOT require user interaction, special network configuration, or non-default filesystem setup. Exploitation is prevented on: (1) non-SELinux systems, (2) systems where mknod is not available or restricted by capability dropping, (3) successful SELinux labeling (normal operation), and (4) systems where the resulting device node is restricted by filesystem permissions independent of SELinux labels.

Impact

CVSS 3.4 (low) with vector AV:L/AC:L/PR:H indicates local-only attack surface requiring root or elevated privileges, no user interaction, and low complexity - appropriate for a privilege management flaw in a sysadmin utility. SSVC framework alignment: Exploitation=none (no active exploitation), Automatable=no (requires local access and specific failure conditions), Technical Impact=partial (partial integrity and confidentiality impact from mislabeled nodes). The authentication bypass tag is justified: once a mislabeled device node exists, unprivileged users or processes with weaker SELinux domains may gain unauthorized access that would have been denied by the intended label. However, real-world risk is constrained by three factors: (1) requires active exploitation of mknod with intentional or incidental labeling failure, (2) impact is localized to that specific device node, not systemic, and (3) systems without SELinux enabled are unaffected. This is a real but limited-scope vulnerability - not a critical infrastructure threat, but a defense-in-depth concern for hardened systems relying on SELinux for device access control.

Exploit ScenarioDerived

A local attacker with root privileges (or via privilege escalation) executes mknod to create a device node for a security-critical device (e.g., /dev/mem, /dev/kmem). The attacker deliberately triggers a labeling failure (e.g., by corrupting SELinux policy files or exhausting label storage) so cleanup fails. The device node remains with permissive default context. An unprivileged process or user session can then access the device, bypassing intended SELinux restrictions and potentially escalating privileges or exfiltrating kernel memory. Alternatively, a configuration management system or init script fails silently during device node creation, unintentionally leaving mislabeled nodes in production.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 23, 2026

The mknod utility in uutils coreutils creates device nodes before atomically applying SELinux security labels, and fails to properly clean up mislabeled nodes if labeling operations fail. This leaves device nodes with incorrect default SELinux contexts, potentially bypassing mandatory access control restrictions on systems where SELinux is enforcing. Affects coreutils versions prior to 0.6.0; exploitation requires local root or elevated privileges and is not currently publicly exploited, though cleanup failures are guaranteed on labeling failure.

RemediationAI

Vendor-released patch: upgrade to uutils coreutils 0.6.0 or later (see GitHub release tag at https://github.com/uutils/coreutils/releases/tag/0.6.0). The upstream fix (PR #10582 at https://github.com/uutils/coreutils/pull/10582) implements atomic node creation and labeling by applying SELinux contexts before completing the mknod operation, or rolling back the node creation entirely if labeling fails. For systems unable to upgrade immediately, compensating controls include: restrict mknod utility execution via Linux capabilities (CAP_MKNOD) to only trusted system services, use AppArmor or SELinux policies to confine mknod invocations and deny label-setting on sensitive device paths, or disable mknod altogether if device nodes are pre-created at boot. Note that these controls add operational complexity and may break legitimate system administration workflows.

Affected VersionsENISA

coreutils 0 <0.6.0

Affected Packages

cargo coreutils fix: 0.6.0
cargo uu_mknod fix: 0.6.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in cargo

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The mknod utility is responsible for creating special device files (character or block devices) and named pipes (FIFOs) in Unix-like filesystems. The vulnerability lies in the non-atomic sequence: the utility first creates the device node with default permissions and context, then attempts to apply SELinux security labels via the libselinux API. If the labeling step fails (due to missing SELinux policy, permission denial, or other errors), the code attempts cleanup using std::fs::remove_dir, which is designed for directory removal and cannot remove device nodes or FIFO files. This is a privilege escalation and access control bypass vulnerability rooted in CWE-281 (Improper Access Control - improper or missing enforcement of mandatory access controls). The root cause is the assumption that remove_dir will clean up any filesystem object, when device nodes require unlink() or equivalent removal primitives.

Know when Coreutils gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 4.4 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

4
Severity Changed
Oct 26, 2026 - 22:25 NVD
LOW MEDIUM
CVSS changed
Oct 26, 2026 - 22:25 NVD
3.4 (LOW) 4.4 (MEDIUM)
Patch released
Apr 22, 2026 - 16:31 nvd
Patch available
CVE Published
Apr 22, 2026 - 16:08 nvd
LOW 3.4

DescriptionNVD

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2014-9471 HIGH POC
7.5 Jan 16

The parse_datetime function in GNU coreutils allows remote attackers to cause a denial of service (crash) or possibly ex

CVE-2026-35338 HIGH POC
7.3 Apr 22

Recursive chmod operations can bypass --preserve-root protection in uutils coreutils versions prior to 0.6.0, allowing l

CVE-2026-35341 HIGH POC
7.1 Apr 22

Local privilege escalation in uutils coreutils mkfifo allows authenticated users to downgrade permissions on arbitrary f

CVE-2026-35373 MEDIUM POC
5.5 Apr 22

The ln utility in uutils coreutils fails to process source paths containing non-UTF-8 filename bytes when using target-d

CVE-2026-35339 MEDIUM POC
5.5 Apr 22

The chmod utility in uutils coreutils versions prior to 0.6.0 incorrectly reports success (exit code 0) when recursively

CVE-2026-35366 MEDIUM POC
4.4 Apr 22

The printenv utility in uutils coreutils versions before 0.6.0 silently omits environment variables containing invalid U

CVE-2026-35368 HIGH
7.8 Apr 22

Privilege escalation to root in uutils coreutils chroot utility allows low-privileged local attackers with write access

CVE-2026-35349 HIGH
7.7 Apr 22

Bypass of --preserve-root protection in uutils coreutils rm utility allows local users to recursively delete the root fi

CVE-2026-93658 HIGH
7.3 Sep 18

Local privilege escalation in uutils coreutils before 0.10.0: the `install` utility applies a requested setuid/setgid mo

CVE-2026-35381 LOW POC
3.3 Apr 22

Logic error in uutils coreutils cut utility causes incorrect behavior when combining the -s (only-delimited), -z (null-t

CVE-2026-35371 LOW POC
3.3 Apr 22

The id utility in uutils coreutils displays incorrect effective user information in its pretty-print output when real an

CVE-2026-35352 HIGH
7.0 Apr 22

Privilege escalation in uutils coreutils mkfifo utility allows local attackers with low privileges to manipulate file pe

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy