Skip to main content

Linux Kernel NSM CVE-2026-68179

| EUVDEUVD-2026-55280 HIGH
Multiple Operations on Resource in Single-Operation Context (CWE-675)
2026-08-10 Linux GHSA-3jf9-7qhv-4pm6
8.4
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Recon
    Gain code execution inside Nitro Enclave
  2. Delivery
    Open /dev/nsm device node
  3. Exploit
    Issue NSM_IOCTL_RAW with invalid user pointer
  4. Install
    copy_from_user() fails pre-lock
  5. C2
    Shared out label unlocks un-acquired mutex
  6. Execute
    Corrupt kernel mutex state
  7. Impact
    Crash enclave kernel or exploit locking race

Vulnerability Assessment

Weakness
CWE
Exploitation Conditions

Exploitation requires: (1) the attacker has code execution inside an AWS Nitro Enclave VM - a strongly bounded execution environment; (2) the running Linux kernel has the NSM miscdevice driver compiled in (CONFIG_NSM) and the /dev/nsm device node is accessible to the process; (3) the kernel version predates the fix commits (pre-6.12.101, pre-6.18.42, pre-7.1.6, or pre-7.2-rc5). No network access is required. The CVSS PR:N metric reflects that within the Nitro Enclave context, NSM device access may not require elevated privileges. Exploitation is limited to: workloads deployed in AWS Nitro Enclaves specifically (not standard EC2 instances), requires local code execution within the enclave boundary, and achieving impact beyond a kernel crash requires further exploitation complexity beyond the documented PoC.

Impact

The NVD-assigned CVSS of 8.4 (AV:L/AC:L/PR:N/UI:N/C:H/I:H/A:H) warrants scrutiny. AV:L is correct - the attack requires local execution inside a Nitro Enclave. PR:N is plausible in the Nitro Enclave context where any process running inside the enclave can open /dev/nsm. However, AC:L appears optimistic: while triggering the Lockdep warning is trivial (a single ioctl with an invalid pointer), converting the mutex state corruption into a full C:H/I:H impact beyond a kernel crash requires additional exploitation complexity. EPSS at 0.20% (10th percentile) and the absence of a CISA KEV listing both indicate no observed widespread exploitation. The PoC described in the commit demonstrates a clean crash trigger but not privilege escalation. Real-world impact is most credibly A:H (kernel crash / DoS within the enclave) with C:H/I:H requiring elevated attacker sophistication. The niche deployment context - only AWS Nitro Enclave workloads run this module - substantially narrows the exposed population despite the high severity label. No conflicting vendor data exists; the upstream Linux kernel team is the reporting and patching authority.

Exploit ScenarioDerived

An unprivileged process running inside an AWS Nitro Enclave opens /dev/nsm and issues NSM_IOCTL_RAW with a deliberately invalid or unmapped user-space pointer as the argument. The copy_from_user() call fails and control transfers to the shared out label, which calls mutex_unlock() on a mutex that was never locked, corrupting the kernel's locking state. A PoC demonstrating this exact sequence and producing the Lockdep warning is described in the upstream fix commit; reliable escalation beyond a kernel crash would require additional exploitation work.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 14, 2026

Mutex unlock imbalance in the Linux kernel's Nitro Security Module (NSM) ioctl handler allows a local process to corrupt kernel locking state by supplying an invalid user pointer to NSM_IOCTL_RAW. The nsm_dev_ioctl() function's pre-lock copy_from_user() failure path incorrectly reaches the shared out label, which unconditionally calls mutex_unlock() on a mutex that was never acquired - triggering a bad-unlock-balance condition confirmed by Lockdep. Systems running AWS Nitro Enclaves on affected kernel versions are exposed; no public weaponized exploit exists but a functional PoC triggering the Lockdep warning is documented in the upstream commit itself, and EPSS sits at 0.20% (10th percentile), indicating no widespread exploitation observed to date.

RemediationAI

The primary remediation is upgrading the Linux kernel to a patched stable release: 6.12.101, 6.18.42, 7.1.6, or 7.2-rc5 or later, which apply the upstream fix separating pre-lock and post-lock error paths in nsm_dev_ioctl(). Fix commits are available at https://git.kernel.org/stable/c/8f068342096b027181b168d91fef7ac7a2c64b25, https://git.kernel.org/stable/c/f318f5a872cb9096536e759b23ae5c9873bb80ed, https://git.kernel.org/stable/c/ce1fed11d18e163baf7f875152a33bf80f625c1a, and https://git.kernel.org/stable/c/4aa3f7d48e91eb74a363c1b4d7dbdd28f5b341fb. For workloads where immediate kernel update is not possible, a compensating control is to restrict access to the /dev/nsm device node via DAC permissions (e.g., chmod 0600 /dev/nsm and limit ownership to a trusted service account), which prevents arbitrary unprivileged processes inside the enclave from issuing ioctls; trade-off is that legitimate NSM consumers also lose access until the kernel is patched. Operators not using Nitro Enclave attestation features may compile the kernel with CONFIG_NSM disabled to eliminate the attack surface entirely.

Affected VersionsENISA

Linux b9873755a6c8ccfce79094c4dce9efa3ecb1a749 <8f068342096b027181b168d91fef7ac7a2c64b25
Linux b9873755a6c8ccfce79094c4dce9efa3ecb1a749 <f318f5a872cb9096536e759b23ae5c9873bb80ed
Linux patch: 7.2-rc5
Linux patch: 6.18.42
Linux patch: 6.12.101
Linux b9873755a6c8ccfce79094c4dce9efa3ecb1a749 <ce1fed11d18e163baf7f875152a33bf80f625c1a
Linux 6.8
Linux patch: 0
Linux b9873755a6c8ccfce79094c4dce9efa3ecb1a749 <4aa3f7d48e91eb74a363c1b4d7dbdd28f5b341fb
Linux patch: 7.1.6

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

The misc/nsm.c driver implements the AWS Nitro Security Module - a hardware attestation and entropy device exposed as a Linux miscdevice (/dev/nsm) exclusively within AWS Nitro Enclave VMs. The ioctl handler nsm_dev_ioctl() uses a single shared out label for all cleanup, including mutex_unlock(&nsm->lock). When the initial copy_from_user(&raw, argp, _IOC_SIZE(cmd)) fails - for example, because the userspace pointer is invalid - the function jumps to out before mutex_lock() has ever been called. This is a classic improper locking path error (analogous to CWE-667), where a single cleanup label cannot safely serve both pre-lock and post-lock error paths. The CPE strings (cpe:2.3:a:linux:linux) confirm the Linux kernel is the affected product. The fix separates the error paths so that the pre-lock failure returns immediately, and the shared out label is reserved for post-lock paths only.

Know when the next one hits your stack

  • 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

Vendor (Linux) PRIMARY 8.4 HIGH
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.4 HIGH

Local vector confirmed; PR:N reflects enclave context; AC:H because exploiting mutex corruption beyond crash requires significant additional sophistication.

3.1 AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

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

Lifecycle Timeline

4
CVSS changed
Aug 13, 2026 - 23:37 NVD
8.4 (HIGH)
Patch available
Aug 10, 2026 - 14:18 EUVD
CVE Published
Aug 10, 2026 - 11:59 cve.org
HIGH 8.4
CVE Published
Aug 10, 2026 - 11:59 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

misc: nsm: only unlock nsm_dev on post-lock error paths

nsm_dev_ioctl() jumps to the common out label even when the initial copy_from_user() fails before nsm->lock has been taken. The error path then blindly unlocks a mutex that was never acquired.

This issue was found by our static analysis tool and then manually reviewed against the current tree.

The grounded PoC kept the miscdevice ioctl entry and the pre-lock copy_from_user(&raw, argp, _IOC_SIZE(cmd)) failure path by issuing NSM_IOCTL_RAW with an invalid user pointer. That failure reaches the shared out label before mutex_lock(&nsm->lock). Lockdep reported:

WARNING: bad unlock balance detected! exploit/193 is trying to release lock (&global_nsm.lock) at: nsm_dev_ioctl+0x5f/0xcf [vuln_msv] but there are no more locks to release! no locks held by exploit/193.

Return immediately on the pre-lock copy_from_user() failure and keep the common unlock label for the post-lock paths only.

Executive ViewAI

Why It Matters

CVE-2026-68179 affects the Linux kernel's Nitro Security Module in AWS Nitro Enclaves, enabling local processes to corrupt kernel locking state through a mutex unlock imbalance. Publicly available exploit code exists but active exploitation remains minimal (EPSS 0.2%). Organizations running affected kernel versions risk system instability and denial of service and require immediate patching.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Low
AWS Nitro Enclave-specific kernel module, niche deployment
Data Quality
5 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 16.0 Not-Affected

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