Re: [PATCH net] net: usb: r8153_ecm: reject short register reads
From: patchwork-bot+netdevbpf
Date: Wed Oct 07 2026 - 22:31:10 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Mon, 5 Oct 2026 01:59:43 -0400 you wrote:
> pla_read_word() and pla_write_word() read four bytes into an
> uninitialized stack variable, but only check usbnet_read_cmd() for
> negative return values. The helper can also return a non-negative
> length smaller than requested, leaving part or all of tmp
> uninitialized.
>
> pla_read_word() may then derive the register value from uninitialized
> bytes. pla_write_word() may include uninitialized bytes in the buffer
> sent to the device during its read-modify-write operation.
>
> [...]
Here is the summary with links:
- [net] net: usb: r8153_ecm: reject short register reads
https://git.kernel.org/netdev/net-next/c/802f46305787
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html