cifs: Fix lost destroy smbd connection when MR allocate failed
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c7398583340a6d82b8bb7f7f21edcde27dc6a898 · < 04b7e13b8a13264282f874db5378fc3d3253cfac| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
cifs: Fix lost destroy smbd connection when MR allocate failed
If the MR allocate failed, the smb direct connection info is NULL, then smbd_destroy() will directly return, then the connection info will be leaked.
Let's set the smb direct connection info to the server before call smbd_destroy().
From the CVE record · Linux
The Linux kernel’s CIFS SMB Direct code can leak connection information if memory-region allocation fails. The input does not establish whether an attacker can trigger this failure or specify network, authentication, or user-interaction requirements.
Engineers running Linux kernels with CIFS SMB Direct should check their kernel versions; affected versions are not specified.