Re: [PATCH net-next v5 0/2] net: usb: lan78xx: do not use uninitialized data after short reads
From: patchwork-bot+netdevbpf
Date: Fri Nov 13 2026 - 20:05:25 EST
Hello:
This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Wed, 11 Nov 2026 09:34:52 +0800 you wrote:
> lan78xx_read_reg() and lan78xx_read_stats() accept a control transfer
> that returns fewer bytes than requested and then use the uninitialized
> rest of their kmalloc()ed buffers. A device that sends short replies can
> get stale heap contents used as the MAC address of the interface, and makes
> ethtool -S report them to unprivileged users, including kernel text and
> direct map pointers.
>
> [...]
Here is the summary with links:
- [net-next,v5,1/2] net: usb: lan78xx: do not update statistics after a failed read
https://git.kernel.org/netdev/net-next/c/faf25c2bc6af
- [net-next,v5,2/2] net: usb: lan78xx: reject short register and statistics transfers
https://git.kernel.org/netdev/net-next/c/ecb8113b5b32
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html