In the Linux kernel, the following vulnerability has been resolved: smb: client: close handle after create-context parsing failure SMB2_open() accounts a successful CREATE response as a remote open before parsing its create contexts. If smb2_parse_contexts() rejects malformed context data, SMB2_open() returns without closing the handle, leaving the server-side handle open and num_remote_opens elevated. Close the handle after a post-CREATE context parsing failure so the error path releases the remote resource and balances the open count.
https://git.kernel.org/stable/c/f09875ff901e933e7b22c913daf51d21e9d93a45
https://git.kernel.org/stable/c/cdb36b09fb1f86d638d0afb44d621ed3f7c1d8eb
https://git.kernel.org/stable/c/80c67cc71d32ccafc89a29b669243b40d81b930f
https://git.kernel.org/stable/c/566820af017e81497fb5e9d3ad6e7ffe2828bc8b