Files
linux/drivers
Dan Carpenter b925f159f3 airo: Fix read overflows sending packets
commit 11e7a91994 upstream.

The problem is that we always copy a minimum of ETH_ZLEN (60) bytes from
skb->data even when skb->len is less than ETH_ZLEN so it leads to a read
overflow.

The fix is to pad skb->data to at least ETH_ZLEN bytes.

Cc: <stable@vger.kernel.org>
Reported-by: Hu Jiahui <kirin.say@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200527184830.GA1164846@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-11 09:22:21 +02:00
..
2020-01-04 13:39:51 +01:00
2019-05-14 19:19:34 +02:00
2020-05-27 16:42:02 +02:00
2020-05-02 17:23:07 +02:00
2018-12-21 14:11:36 +01:00
2018-11-13 11:17:02 -08:00
2020-02-28 15:42:33 +01:00
2019-05-31 06:48:15 -07:00