smb: Initialize cfid->tcon before performing network ops
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: Initialize cfid->tcon before performing network ops
Avoid leaking a tcon ref when a lease break races with opening the cached directory. Processing the leak break might take a reference to the tcon in cached_dir_lease_break() and then fail to release the ref in cached_dir_offload_close, since cfid->tcon is still NULL.
From the CVE record · Linux
The Linux kernel SMB code can leak a tcon reference when a lease break races with opening a cached directory. The leak occurs because the lease-break handler can take a reference before cfid->tcon is initialized, preventing it from being released during close. The input does not specify attacker access or user-interaction requirements.
Teams running Linux kernels with SMB cached directory handling should check their kernel builds; affected versions are not specified.