Use-after-free in Linux kernel - CVE-2026-68178
Published: August 12, 2026
Vulnerability details
The vulnerability allows a local user to execute code in kernel context.
The vulnerability exists due to use-after-free in the NSM misc device file operations handling in /dev/nsm when invoking ioctl on an open file descriptor after the nsm module has been unloaded. A local user can open /dev/nsm, keep the file descriptor open, and later issue an ioctl after module removal to execute code in kernel context.
The issue is exposed when the driver is built as a module and an open /dev/nsm file descriptor outlives removal of the module that provides the ioctl callbacks.
Affected software
Ubuntu
linux-gcp-7.0 (Ubuntu package)
linux-azure-7.0 (Ubuntu package)
How to mitigate CVE-2026-68178
linux-gcp-7.0 (Ubuntu package) - addressed in versions 7.0.0-38.38~24.04.4, 7.0.0-1013.13~24.04.1, 7.0.0-1014.14~24.04.1
linux-azure-7.0 (Ubuntu package) - addressed in versions 7.0.0-1016.16~24.04.1, 7.0.0-1017.17~24.04.1