smb: client: fix rlist race and missing initialization
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| 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: client: fix rlist race and missing initialization
TCP_Server_Info.rlist is allocated via kzalloc which zeros both ->next and ->prev to NULL instead of pointing to itself, making list_empty() always return false and list_add() dereference a NULL ->prev pointer.
Also, cifs_signal_cifsd_for_reconnect() can be called concurrently from multiple cifsd threads, allowing the same server's rlist node to be added twice into the local list, corrupting it.
From the CVE record · Linux
The Linux kernel SMB client has an uninitialized list node that can cause a NULL pointer dereference. Concurrent reconnect calls can also add the same node twice and corrupt the list; the input does not specify an attacker path or authentication requirements.
Engineers running Linux kernels with the SMB client should check their exposure; affected versions are not specified.