smb3: fix lock ordering potential deadlock in cifs_sync_mid_result
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:
smb3: fix lock ordering potential deadlock in cifs_sync_mid_result
Coverity spotted that the cifs_sync_mid_result function could deadlock
"Thread deadlock (ORDER_REVERSAL) lock_order: Calling spin_lock acquires lock TCP_Server_Info.srv_lock while holding lock TCP_Server_Info.mid_lock"
Addresses-Coverity: 1590401 ("Thread deadlock (ORDER_REVERSAL)")
From the CVE record · Linux
The Linux kernel's SMB3 cifs_sync_mid_result function can acquire locks in the wrong order, potentially causing a deadlock. The input does not establish whether an attacker can trigger it or specify any access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the affected SMB3 code should check their versions; affected versions are not specified.