Re: [PATCH net v2] net: usb: catc: bound the RX packet length in catc_rx_done()
From: patchwork-bot+netdevbpf
Date: Sat Sep 19 2026 - 18:51:40 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 15 Sep 2026 00:06:58 +0100 you wrote:
> catc_rx_done() walks a multi-packet URB, reading a two-byte length from
> each packet header. Its bound, pkt_len > urb->actual_length, ignores the
> header offset and compares against the whole transfer rather than the
> bytes left from pkt_start, so a crafted packet header makes
> skb_copy_to_linear_data() read past the buffer.
>
> A length below ETH_HLEN is also accepted, including zero, and
> eth_type_trans() then reads a MAC header from the uninitialised tailroom
> of a shorter skb. The is_f5u011 branch takes its length straight from
> the transfer, so a zero-length URB reaches the same path.
>
> [...]
Here is the summary with links:
- [net,v2] net: usb: catc: bound the RX packet length in catc_rx_done()
https://git.kernel.org/netdev/net/c/9d565b6b72fe
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html