smb: client: fix query directory 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 directory replay double-free
A response-bearing attempt can return a replayable error and free its response buffer. If SMB2_query_directory_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 can free a directory-query response buffer twice when a replayable error is followed by an SMB2_query_directory_init() failure. The input does not establish how an attacker could trigger this condition or whether authentication or user interaction is required.
Engineers running the Linux kernel SMB client should check their installations; affected versions are not specified.