CVE-2026-68179
misc: nsm: only unlock nsm_dev on post-lock error paths
Reported by linux · Published August 10, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3-perf6.18 | Amazon Linux | 1:6.18.44-99.149.amzn2023 |
| kernel6.18-headers | Amazon Linux | 1:6.18.44-99.149.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.103-127.188.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.103-127.188.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | b9873755a6c8ccfce79094c4dce9efa3ecb1a749, b9873755a6c8ccfce79094c4dce9efa3ecb1a749, b9873755a6c8ccfce79094c4dce9efa3ecb1a749 |
| Linux | Linux | 6.8, 0, 6.12.101 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| linux | linux_kernel | 6.8, 6.8, 6.8 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| Linux | Linux | 6.18.42, 6.12.101, 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.12.103-127.188 | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | bpftool6.18 | 0 |
…and 7 more
Timeline
- Aug 10, 2026 CVE Published
- Aug 11, 2026 Coalition ESS Score
- Aug 16, 2026 Security Advisory
- Aug 24, 2026 EPSS Score (14 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-68179
vulnetix vdb fixes CVE-2026-68179
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-68179/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart