Linux
smb: client: fix double-free in SMB2_ioctl() replay
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 433042a91f9373241307725b52de573933ffedbf, < 0be4bc64882edaefaaee8d1e27d083643eb778e6
- >= 4f1fffa2376922f3d1d506e49c0fd445b023a28e, < 96fcfc8ae7359346156e492ca610e830d2649ad6
- >= 4f1fffa2376922f3d1d506e49c0fd445b023a28e, < 276c8efbc49f9303ac76d0d4deab7128581b0f3b
- >= 4f1fffa2376922f3d1d506e49c0fd445b023a28e, < fc65ffb4ef1bf540da16b17c225ae51091e07d72
- >= 4f1fffa2376922f3d1d506e49c0fd445b023a28e, < f9bbadb6c94583e3b4af1afc449bfceb1d1ddec9
- >= 6.6.32, < 6.6.145
Fixed in 0be4bc64882edaefaaee8d1e27d083643eb778e6, 96fcfc8ae7359346156e492ca610e830d2649ad6, 276c8efbc49f9303ac76d0d4deab7128581b0f3b, fc65ffb4ef1bf540da16b17c225ae51091e07d72, f9bbadb6c94583e3b4af1afc449bfceb1d1ddec9, 6.6.145
- 6.8
Fixed in 0, 6.6.145, 6.12.96, 6.18.39, 7.1.4, 7.2
Mitigation
Upgrade Linux to 0be4bc64882edaefaaee8d1e27d083643eb778e6 or 96fcfc8ae7359346156e492ca610e830d2649ad6 or 276c8efbc49f9303ac76d0d4deab7128581b0f3b or fc65ffb4ef1bf540da16b17c225ae51091e07d72 or f9bbadb6c94583e3b4af1afc449bfceb1d1ddec9 or 6.6.145 or later.
Upgrade Linux to 0 or 6.6.145 or 6.12.96 or 6.18.39 or 7.1.4 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.