CVE-2026-68178
misc: nsm: pin the module while the device is open
Reported by linux · Published August 10, 2026
In the Linux kernel, the following vulnerability has been resolved: misc: nsm: pin the module while the device is open misc_open() installs a misc driver's file operations with fops_get(), which pins file_operations::owner before replacing the file's f_op. The NSM misc device leaves nsm_dev_fops.owner unset, so opening /dev/nsm does not take a module reference on the nsm driver. If the driver is built as a module, an open file descriptor can therefore survive rmmod of the module that provides its ioctl callbacks. A later ioctl through that descriptor can call into unloaded module text. Set nsm_dev_fops.owner to THIS_MODULE so the misc core holds the module while any /dev/nsm file descriptor is open, matching the lifetime expectation for the installed file operations.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bpftool6.12 | Amazon Linux | 1:6.12.103-127.188.amzn2023 |
| kernel6.18 | Amazon Linux | 1:6.18.44-99.149.amzn2023 |
| kernel6.18-tools-devel | Amazon Linux | 1:6.18.44-99.149.amzn2023 |
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.103-127.188.amzn2023 |
| perf6.18 | Amazon Linux | 1:6.18.44-99.149.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.103-127.188.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.103-127.188.amzn2023 |
| kernel6.18-modules-extra-common | Amazon Linux | 1:6.18.44-99.149.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.103-127.188.amzn2023 |
| bpftool6.18 | Amazon Linux | 1:6.18.44-99.149.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.103-127.188.amzn2023 |
| Linux | Linux | 6.8, 1da310b94504d42001e9c32c43c5dc105b777e5f |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | b9873755a6c8ccfce79094c4dce9efa3ecb1a749, b9873755a6c8ccfce79094c4dce9efa3ecb1a749, b9873755a6c8ccfce79094c4dce9efa3ecb1a749 |
| Linux | Linux | 6.8, 0, 6.12.101 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| Linux | Linux | 7.2, *, * |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| linux | linux_kernel | 6.8, 6.8, 6.8 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | perf6.12 | 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 (12 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-68178
vulnetix vdb fixes CVE-2026-68178
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-68178/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart