aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/usb/plusb.c
diff options
context:
space:
mode:
authorSzymon Heidrich <szymon.heidrich@gmail.com>2023-03-18 10:25:52 +0100
committerDavid S. Miller <davem@davemloft.net>2023-03-20 10:15:15 +0000
commit7f247f5a2c18b3f21206cdd51193df4f38e1b9f5 (patch)
tree5af5d562316941548792c14c41eab7d6e7e9532e /drivers/net/usb/plusb.c
parentnet: qcom/emac: Fix use after free bug in emac_remove due to race condition (diff)
downloadwireguard-linux-7f247f5a2c18b3f21206cdd51193df4f38e1b9f5.tar.xz
wireguard-linux-7f247f5a2c18b3f21206cdd51193df4f38e1b9f5.zip
net: usb: lan78xx: Limit packet length to skb->len
Packet length retrieved from descriptor may be larger than the actual socket buffer length. In such case the cloned skb passed up the network stack will leak kernel memory contents. Additionally prevent integer underflow when size is less than ETH_FCS_LEN. Fixes: 55d7de9de6c3 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver") Signed-off-by: Szymon Heidrich <szymon.heidrich@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions