Re: [PATCH v2 net] net: drop_monitor: fix info leak in NET_DM_ATTR_PAYLOAD

From: patchwork-bot+netdevbpf

Date: Thu Jul 23 2026 - 14:11:21 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Wed, 22 Jul 2026 21:28:17 +0900 you wrote:
> net_dm_packet_report_fill() and net_dm_hw_packet_report_fill() open code
> the NET_DM_ATTR_PAYLOAD attribute to avoid zeroing the packet payload
> before overwriting it with skb_copy_bits().
>
> skb_put() reserves nla_total_size(payload_len), i.e. the header plus the
> NLA_ALIGN() padding, but only payload_len bytes are copied in. When
> payload_len is not a multiple of 4 the 1-3 padding bytes are never
> initialized and are leaked to user space inside the netlink message.
>
> [...]

Here is the summary with links:
- [v2,net] net: drop_monitor: fix info leak in NET_DM_ATTR_PAYLOAD
https://git.kernel.org/netdev/net/c/5e9c8baee032

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html