VDB

CVE-2026-68178

CVE-2026-68178 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
bpftool6.12Amazon Linux1:6.12.103-127.188.amzn2023
kernel6.18Amazon Linux1:6.18.44-99.149.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.44-99.149.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.103-127.188.amzn2023
perf6.18Amazon Linux1:6.18.44-99.149.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.103-127.188.amzn2023
kernel6.12-develAmazon Linux1:6.12.103-127.188.amzn2023
kernel6.18-modules-extra-commonAmazon Linux1:6.18.44-99.149.amzn2023
kernel6.12Amazon Linux1:6.12.103-127.188.amzn2023
bpftool6.18Amazon Linux1:6.18.44-99.149.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.103-127.188.amzn2023
LinuxLinux6.8, 1da310b94504d42001e9c32c43c5dc105b777e5f

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxb9873755a6c8ccfce79094c4dce9efa3ecb1a749, b9873755a6c8ccfce79094c4dce9efa3ecb1a749, b9873755a6c8ccfce79094c4dce9efa3ecb1a749
LinuxLinux6.8, 0, 6.12.101
amazon:2023bpftool6.120
amazon:2023kernel6.180
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.12-tools-devel0
amazon:2023perf6.180
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-devel0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.120
amazon:2023bpftool6.180
amazon:2023kernel6.12-modules-extra0
LinuxLinux7.2, *, *
amazon:2023kernel6.18-modules-extra0
amazon:2023microvm-kernel6.180
linuxlinux_kernel6.8, 6.8, 6.8
amazon:2023kernel6.12-headers0
amazon:2023kernel6.18-headers0
amazon:2023perf6.120

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›