smb: client: fix race with concurrent opens in rename(2)
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
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 race with concurrent opens in rename(2)
Besides sending the rename request to the server, the rename process also involves closing any deferred close, waiting for outstanding I/O to complete as well as marking all existing open handles as deleted to prevent them from deferring closes, which increases the race window for potential concurrent opens on the target file.
Fix this by unhashing the dentry in advance to prevent any concurrent opens on the target.
From the CVE record · Linux
The Linux kernel SMB client has a race between rename(2) and concurrent opens of the target file. The input does not specify an attacker outcome, authentication requirement, or whether exploitation requires local access, network access, or user interaction.
Engineers running Linux kernels with the SMB client should check their versions; affected versions are not specified.