smb: client: fix double-free in SMB2_ioctl() replay
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 double-free in SMB2_ioctl() replay
A response-bearing attempt can return a replayable error and free its response buffer. If SMB2_ioctl_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 SMB2_ioctl() replay handling. If an attempt with a response returns a replayable error and SMB2_ioctl_init() fails before the next send, cleanup can free the response buffer again. The input does not establish attacker access, authentication requirements, or user interaction.
Operators running the Linux kernel should check whether their kernel includes the affected SMB client code; affected versions are not specified.