smb/server: call ksmbd_proc_cleanup() on module init failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
If a later SMB server initializer fails, the Linux kernel's module initialization error path leaves the proc tree and per-CPU counters allocated. The input does not describe an attacker action, access requirements, or user interaction.
Engineers running Linux kernels with the SMB server module should check their affected versions; none are specified in the input.