In the Linux kernel, the following vulnerability has been resolved: smb/server: call ksmbd_proc_cleanup() on module init failure When a later initializer fails, the unwind chain releases resources created after procfs and then jumps directly to class_unregister(). Returning an error from module_init() leaves the proc tree and its per-CPU counters allocated.
https://git.kernel.org/stable/c/f43cbe3b58ce989ce420c3bc875d48e7754c8aba
https://git.kernel.org/stable/c/7d2cd9269b570347e6e2dd24d4b3c1da868bc91d