# CVE-2026-68178: misc: nsm: pin the module while the device is open

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-08-10T11:59:49.344Z
- **Modified:** 2026-10-19T21:17:56.963Z

## Who should check

- Anyone running Linux \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 1996639f824ce9468395cdb7bcb8f467fa787e77; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 1da310b94504d42001e9c32c43c5dc105b777e5f; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 9e9a82d00c3d10129fc310a7547b24a679d5d920; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 3b231f1e9990f4c21220d0a69733ce2105891ff9
- Anyone running Linux 6.8

## Description

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.

## Affected and fixed versions

- Linux: \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 1996639f824ce9468395cdb7bcb8f467fa787e77; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 1da310b94504d42001e9c32c43c5dc105b777e5f; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 9e9a82d00c3d10129fc310a7547b24a679d5d920; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 3b231f1e9990f4c21220d0a69733ce2105891ff9 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- Upgrade Linux to 3b231f1e9990f4c21220d0a69733ce2105891ff9 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-68178.md
Affected: Linux >= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, < 1996639f824ce9468395cdb7bcb8f467fa787e77; >= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, < 1da310b94504d42001e9c32c43c5dc105b777e5f; >= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, < 9e9a82d00c3d10129fc310a7547b24a679d5d920; >= b9873755a6c8ccfce79094c…
Fixed in: Linux 1996639f824ce9468395cdb7bcb8f467fa787e77, Linux 1da310b94504d42001e9c32c43c5dc105b777e5f, Linux 9e9a82d00c3d10129fc310a7547b24a679d5d920, Linux 3b231f1e9990f4c21220d0a69733ce2105891ff9

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-68178 being exploited?

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

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

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

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

Linux \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 1996639f824ce9468395cdb7bcb8f467fa787e77; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 1da310b94504d42001e9c32c43c5dc105b777e5f; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 9e9a82d00c3d10129fc310a7547b24a679d5d920; \>= b9873755a6c8ccfce79094c4dce9efa3ecb1a749, \< 3b231f1e9990f4c21220d0a69733ce2105891ff9; Linux 6.8.

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

Yes. Fixed in Linux 1996639f824ce9468395cdb7bcb8f467fa787e77, Linux 1da310b94504d42001e9c32c43c5dc105b777e5f, Linux 9e9a82d00c3d10129fc310a7547b24a679d5d920, Linux 3b231f1e9990f4c21220d0a69733ce2105891ff9. Upgrade Linux to 3b231f1e9990f4c21220d0a69733ce2105891ff9 or later.

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

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/1996639f824ce9468395cdb7bcb8f467fa787e77>
- other: <https://git.kernel.org/stable/c/1da310b94504d42001e9c32c43c5dc105b777e5f>
- other: <https://git.kernel.org/stable/c/9e9a82d00c3d10129fc310a7547b24a679d5d920>
- other: <https://git.kernel.org/stable/c/3b231f1e9990f4c21220d0a69733ce2105891ff9>

## 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-68178>

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