smb: client: fix query_info() replay double-free
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 query_info() replay double-free
A response-bearing attempt can return a replayable error and free its response buffer. If SMB2_query_info_init() fails before the next send, cleanup retains the previous buffer type and frees that response again.
Reset response bookkeeping before each attempt to prevent the stale free.
From the CVE record · Linux
The Linux kernel SMB client has a double-free in query_info() replay handling. If an attempt returns a replayable error after freeing its response buffer, and SMB2_query_info_init() fails before the next send, cleanup can free that buffer again. The input does not specify attacker access requirements or user interaction.
Engineers running the Linux kernel should check their SMB client exposure; affected versions are not specified.