diff options
author | Szymon Heidrich <[email protected]> | 2023-03-16 11:19:54 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-03-17 21:58:26 -0700 |
commit | ff821092cf02a70c2bccd2d19269f01e29aa52cf (patch) | |
tree | cc1063d1f9c09c3e4ca0030e1b1cb6983176acb4 /tools/perf/scripts/python/netdev-times.py | |
parent | 30796d0dcb6e41c6558a07950f2ce60c209da867 (diff) |
net: usb: smsc95xx: 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.
Fixes: 2f7ca802bdae ("net: Add SMSC LAN9500 USB2.0 10/100 ethernet adapter driver")
Signed-off-by: Szymon Heidrich <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions