Files
linux/drivers/net
Lior David 1c96def6ec wil6210: fix length check in __wmi_send
[ Upstream commit 26a6d52748 ]

The current length check:
sizeof(cmd) + len > r->entry_size
will allow very large values of len (> U16_MAX - sizeof(cmd))
and can cause a buffer overflow. Fix the check to cover this case.
In addition, ensure the mailbox entry_size is not too small,
since this can also bypass the above check.

Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-15 17:15:55 +09:00
..
2016-06-15 22:06:06 -07:00
2016-05-09 00:00:28 -04:00
2023-05-15 17:11:19 +09:00
2018-03-22 09:17:57 +01:00