diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-05-27 21:48:30 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-05-29 20:40:22 +0300 |
commit | 11e7a91994c29da96d847f676be023da6a2c1359 (patch) | |
tree | 5803e9975cb461084b7c68bb07f292f854893304 /drivers/net/wireless/marvell | |
parent | 113a57a400a2d4974448760464f6443d52a1e498 (diff) | |
download | linux-11e7a91994c29da96d847f676be023da6a2c1359.tar.gz linux-11e7a91994c29da96d847f676be023da6a2c1359.tar.bz2 linux-11e7a91994c29da96d847f676be023da6a2c1359.zip |
airo: Fix read overflows sending packets
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
Diffstat (limited to 'drivers/net/wireless/marvell')
0 files changed, 0 insertions, 0 deletions