linux/fs/smb
Fedor Pchelkin 7505a0ce08 ksmbd: free aux buffer if ksmbd_iov_pin_rsp_read fails
commit 108a020c64 upstream.

ksmbd_iov_pin_rsp_read() doesn't free the provided aux buffer if it
fails. Seems to be the caller's responsibility to clear the buffer in
error case.

Found by Linux Verification Center (linuxtesting.org).

Fixes: e2b76ab8b5 ("ksmbd: add support for read compound")
Cc: stable@vger.kernel.org
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-02-23 09:12:41 +01:00
..
client cifs: fix underflow in parse_server_interfaces() 2024-02-23 09:12:35 +01:00
common smb: client, common: fix fortify warnings 2024-01-20 11:50:04 +01:00
server ksmbd: free aux buffer if ksmbd_iov_pin_rsp_read fails 2024-02-23 09:12:41 +01:00
Kconfig
Makefile