{"id":"CVE-2026-68178","revision":"f35dbabe968c4114b7a643720a6bd0c2","records":[{"revision":"f35dbabe968c4114b7a643720a6bd0c2","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-68178","aliases":[],"title":"misc: nsm: pin the module while the device is open","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: nsm: pin the module while the device is open\n\nmisc_open() installs a misc driver's file operations with fops_get(),\nwhich pins file_operations::owner before replacing the file's f_op.  The\nNSM misc device leaves nsm_dev_fops.owner unset, so opening /dev/nsm does\nnot take a module reference on the nsm driver.\n\nIf the driver is built as a module, an open file descriptor can therefore\nsurvive rmmod of the module that provides its ioctl callbacks.  A later\nioctl through that descriptor can call into unloaded module text.\n\nSet nsm_dev_fops.owner to THIS_MODULE so the misc core holds the module\nwhile any /dev/nsm file descriptor is open, matching the lifetime\nexpectation for the installed file operations.","state":0,"publishedAt":"2026-08-10T11:59:49.344+00:00","modifiedAt":"2026-10-19T20:58:55.83+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/misc/nsm.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"b9873755a6c8ccfce79094c4dce9efa3ecb1a749\",\n                            \"lessThan\": \"1996639f824ce9468395cdb7bcb8f467fa787e77\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"b9873755a6c8ccfce79094c4dce9efa3ecb1a749\",\n                            \"lessThan\": \"1da310b94504d42001e9c32c43c5dc105b777e5f\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"b9873755a6c8ccfce79094c4dce9efa3ecb1a749\",\n                            \"lessThan\": \"9e9a82d00c3d10129fc310a7547b24a679d5d920\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"b9873755a6c8ccfce79094c4dce9efa3ecb1a749\",\n                            \"lessThan\": \"3b231f1e9990f4c21220d0a69733ce2105891ff9\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/misc/nsm.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.8\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.8\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.101\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.42\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.1.6\",\n                            \"lessThanOrEqual\": \"7.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/1996639f824ce9468395cdb7bcb8f467fa787e77","https://git.kernel.org/stable/c/1da310b94504d42001e9c32c43c5dc105b777e5f","https://git.kernel.org/stable/c/9e9a82d00c3d10129fc310a7547b24a679d5d920","https://git.kernel.org/stable/c/3b231f1e9990f4c21220d0a69733ce2105891ff9"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-68178","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-68178","identifiers":["CVE-2026-68178"]},"retained":false,"historicalAffected":[]}],"coverage":[]}