diff options
author | Szymon Heidrich | 2023-03-13 23:00:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-03-22 13:33:47 +0100 |
commit | c7bdc137ca163b90917c1eeba4f1937684bd4f8b (patch) | |
tree | 81e33f2887729767e540d4dd6d77c031d41405e1 /init/init_task.c | |
parent | 3517584cf1b35bd02f4a90267ddf9dcf17bd9c87 (diff) |
net: usb: smsc75xx: Limit packet length to skb->len
[ Upstream commit d8b228318935044dafe3a5bc07ee71a1f1424b8d ]
Packet length retrieved from skb data may be larger than
the actual socket buffer length (up to 9026 bytes). In such
case the cloned skb passed up the network stack will leak
kernel memory contents.
Fixes: d0cad871703b ("smsc75xx: SMSC LAN75xx USB gigabit ethernet adapter driver")
Signed-off-by: Szymon Heidrich <szymon.heidrich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'init/init_task.c')
0 files changed, 0 insertions, 0 deletions