# CVE-2026-68179: misc: nsm: only unlock nsm\_dev on post-lock error paths

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.4
- **CVSS:** 8.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 5, 2026-11-26)
- **CWE:** CWE-675
- **Published:** 2026-08-10T11:59:50.667Z
- **Modified:** 2026-10-19T21:17:57.107Z

## Who should check

- Anyone running Linux \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 4aa3f7d48e91eb74a363c1b4d7dbdd28f5b341fb; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 8f068342096b027181b168d91fef7ac7a2c64b25; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< f318f5a872cb9096536e759b23ae5c9873bb80ed; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< ce1fed11d18e163baf7f875152a33bf80f625c1a
- Anyone running Linux 6.8

## Description

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.

## Affected and fixed versions

- Linux: \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 4aa3f7d48e91eb74a363c1b4d7dbdd28f5b341fb; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 8f068342096b027181b168d91fef7ac7a2c64b25; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< f318f5a872cb9096536e759b23ae5c9873bb80ed; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< ce1fed11d18e163baf7f875152a33bf80f625c1a (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-68179. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-68179.md
Affected: Linux >= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, < 4aa3f7d48e91eb74a363c1b4d7dbdd28f5b341fb; >= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, < 8f068342096b027181b168d91fef7ac7a2c64b25; >= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, < f318f5a872cb9096536e759b23ae5c9873bb80ed; >= b9873755a6c8ccfce79094c…
Fixed in: Linux 4aa3f7d48e91eb74a363c1b4d7dbdd28f5b341fb, Linux 8f068342096b027181b168d91fef7ac7a2c64b25

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-68179 being exploited?

There is no confirmed exploitation: CVE-2026-68179 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-68179?

High: CVSS 8.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-68179?

Linux \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 4aa3f7d48e91eb74a363c1b4d7dbdd28f5b341fb; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 8f068342096b027181b168d91fef7ac7a2c64b25; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< f318f5a872cb9096536e759b23ae5c9873bb80ed; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< ce1fed11d18e163baf7f875152a33bf80f625c1a; Linux 6.8.

### Is there a fix for CVE-2026-68179?

Yes. Fixed in Linux 4aa3f7d48e91eb74a363c1b4d7dbdd28f5b341fb, Linux 8f068342096b027181b168d91fef7ac7a2c64b25. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-68179?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/4aa3f7d48e91eb74a363c1b4d7dbdd28f5b341fb>
- other: <https://git.kernel.org/stable/c/8f068342096b027181b168d91fef7ac7a2c64b25>
- other: <https://git.kernel.org/stable/c/f318f5a872cb9096536e759b23ae5c9873bb80ed>
- other: <https://git.kernel.org/stable/c/ce1fed11d18e163baf7f875152a33bf80f625c1a>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-68179>

HTML: <https://flawdb.com/CVE-2026-68179> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-68179>
