In the Linux kernel, the following vulnerability has been resolved: cifs: fix small mempool leak in SMB2negotiate() In some cases of failure (dialect mismatches) in SMB2negotiate(), 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.