Linux
smb: client: fix double-free in SMB2_flush() replay
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix double-free in SMB2_flush() replay SMB2_flush() keeps its response buffer bookkeeping across replay attempts. If a replayable flush response is received and the retry then fails before cifs_send_recv() stores a replacement response, flush_exit will free the stale response pointer a second time. Reinitialize resp_buftype and rsp_iov at the top of the replay loop so cleanup only acts on response state produced by the current attempt. This fixes a double-free without changing replay handling for successful requests.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 433042a91f9373241307725b52de573933ffedbf, < 6e27f40b682a5e42a2daae3ce6d96f0e0e16dedb
- >= 4f1fffa2376922f3d1d506e49c0fd445b023a28e, < 878757163eea684750107a31ea134c103863515d
- >= 4f1fffa2376922f3d1d506e49c0fd445b023a28e, < 3407240cde132a4b72d6429a2625a09a2f78adaf
- >= 4f1fffa2376922f3d1d506e49c0fd445b023a28e, < 013a9a3da46c5dabcf18f65ea6a47874ba12a15d
- >= 4f1fffa2376922f3d1d506e49c0fd445b023a28e, < 4be31c943a3a27a5a0251dbb8f5cb89059ec3d5a
- >= 6.6.32, < 6.6.145
Fixed in 6e27f40b682a5e42a2daae3ce6d96f0e0e16dedb, 878757163eea684750107a31ea134c103863515d, 3407240cde132a4b72d6429a2625a09a2f78adaf, 013a9a3da46c5dabcf18f65ea6a47874ba12a15d, 4be31c943a3a27a5a0251dbb8f5cb89059ec3d5a, 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 6e27f40b682a5e42a2daae3ce6d96f0e0e16dedb or 878757163eea684750107a31ea134c103863515d or 3407240cde132a4b72d6429a2625a09a2f78adaf or 013a9a3da46c5dabcf18f65ea6a47874ba12a15d or 4be31c943a3a27a5a0251dbb8f5cb89059ec3d5a 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.