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.
CVSS Details
- CVSS 3.1 Base Score: 8.4
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade kernel6.18-develUpgrade kernel6.12-headersUpgrade perf6.12-debuginfoUpgrade kernel6.12-develUpgrade python3-perf6.12-debuginfoUpgrade kernel6.18-debuginfo-common-x86_64Upgrade kernel6.18-modules-extra-commonUpgrade kernel6.18Upgrade kernel6.18-debuginfoUpgrade kernel6.18-tools-develUpgrade kernel6.12-tools-debuginfoUpgrade kernel-livepatch-6.12.103-127.188Upgrade kernel6.18-modules-extraUpgrade perf6.18-debuginfoUpgrade perf6.18Upgrade kernel6.18-toolsUpgrade kernel6.12-debuginfoUpgrade kernel-livepatch-6.18.44-99.149Upgrade python3-perf6.18-debuginfoUpgrade bpftool6.12Upgrade kernel6.12Upgrade bpftool6.12-debuginfoUpgrade kernel6.18-debuginfo-common-aarch64Upgrade microvm-kernel6.18Upgrade kernel6.12-modules-extra-commonUpgrade kernel6.18-headersUpgrade bpftool6.18-debuginfoUpgrade perf6.12Upgrade kernel6.12-modules-extraUpgrade kernel6.12-debuginfo-common-x86_64Upgrade kernel6.12-debuginfo-common-aarch64Upgrade python3-perf6.12Upgrade kernel6.12-toolsUpgrade bpftool6.18Upgrade python3-perf6.18Upgrade kernel6.18-tools-debuginfoUpgrade kernel6.12-tools-devel | Sep 1, 2026 | Aug 10, 2026 |
| Debian | — | Upgrade linux-6.12Upgrade linux | Aug 11, 2026 | Aug 11, 2026 |
| Ubuntu | — | Upgrade linux-image-oracle-64k-7.0Upgrade linux-image-awsUpgrade linux-image-generic-64k-7.0Upgrade linux-image-oracle-64kUpgrade linux-image-gcp-7.0Upgrade linux-image-7.0.0-1017-azureUpgrade linux-image-realtimeUpgrade linux-image-generic-7.0Upgrade linux-image-7.0.0-1014-aws-64kUpgrade linux-image-gke-64k-hwe-26.04Upgrade linux-image-azure-lts-26.04Upgrade linux-image-realtime-64kUpgrade linux-image-aws-64kUpgrade linux-image-6.8.0-1036-nvidia-tegraUpgrade linux-image-gke-hwe-26.04Upgrade linux-image-7.0.0-1008-gke-64kUpgrade linux-image-7.0.0-38-realtime-64kUpgrade linux-image-7.0.0-38-generic-64kUpgrade linux-image-azure-fde-7.0Upgrade linux-image-genericUpgrade linux-image-oracleUpgrade linux-image-virtual-7.0Upgrade linux-image-gcpUpgrade linux-image-gkeUpgrade linux-image-nvidia-tegra-rt-6.8Upgrade linux-image-realtime-hwe-26.04Upgrade linux-image-realtime-64k-7.0Upgrade linux-image-virtualUpgrade linux-image-realtime-64k-hwe-26.04Upgrade linux-image-azure-fde-lts-26.04Upgrade linux-image-azure-7.0Upgrade linux-image-7.0.0-1008-gkeUpgrade linux-image-oem-26.04aUpgrade linux-image-gke-7.0Upgrade linux-image-aws-64k-7.0Upgrade linux-image-azure-fdeUpgrade linux-image-7.0.0-1015-oemUpgrade linux-image-7.0.0-1014-awsUpgrade linux-image-7.0.0-1013-oracleUpgrade linux-image-generic-hwe-26.04Upgrade linux-image-7.0.0-38-realtimeUpgrade linux-image-realtime-7.0Upgrade linux-image-oracle-7.0Upgrade linux-image-generic-64k-hwe-26.04Upgrade linux-image-gcp-64kUpgrade linux-image-7.0.0-1015-ibmUpgrade linux-image-ibmUpgrade linux-image-6.8.0-1036-nvidia-tegra-rtUpgrade linux-image-oem-26.04Upgrade linux-image-gke-64k-7.0Upgrade linux-image-gke-64kUpgrade linux-image-gcp-64k-7.0Upgrade linux-image-7.0.0-1013-oracle-64kUpgrade linux-image-7.0.0-1014-gcpUpgrade linux-image-oem-7.0Upgrade linux-image-nvidia-tegra-6.8Upgrade linux-image-generic-64kUpgrade linux-image-aws-7.0Upgrade linux-image-azureUpgrade linux-image-7.0.0-1016-azure-fdeUpgrade linux-image-7.0.0-1014-gcp-64kUpgrade linux-image-virtual-hwe-26.04Upgrade linux-image-ibm-7.0Upgrade linux-image-7.0.0-38-genericUpgrade linux-image-nvidia-tegra-rtUpgrade linux-image-nvidia-tegra | Oct 7, 2026 | Oct 6, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Aug 17, 2026 | Aug 10, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub