cifs: fix small mempool leak in SMB2_negotiate()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
4.14
|
In the Linux kernel, the following vulnerability has been resolved:
cifs: fix small mempool leak in SMB2_negotiate()
In some cases of failure (dialect mismatches) in SMB2_negotiate(), after the request is sent, the checks would return -EIO when they should be rather setting rc = -EIO and jumping to neg_exit to free the response buffer from mempool.
From the CVE record · Linux
The Linux kernel’s CIFS SMB2_negotiate() function can leak a response buffer from its mempool when a dialect mismatch occurs after a request is sent. The input does not establish who can trigger the mismatch or whether authentication or user interaction is required.
Engineers running the Linux kernel should check their versions for this issue; affected versions are not specified.