smb: client: close handle after create-context parsing failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ af1689a9b7701d9907dfc84d2a4b57c4bc907144 · < f09875ff901e933e7b22c913daf51d21e9d93a45| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel SMB client can leave a server-side handle open and its remote-open count elevated if it rejects malformed create-context data in a successful SMB CREATE response. This occurs when the client receives such a response from an SMB server; the input does not specify authentication or user-interaction requirements.
Engineers running Linux systems that use the kernel SMB client should check their kernel versions; affected versions are not specified.