Re: [PATCH net] netlink: Fix kernel-infoleak-after-free in __skb_datagram_iter

From: patchwork-bot+netdevbpf
Date: Thu Feb 22 2024 - 22:10:40 EST


Hello:

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

On Wed, 21 Feb 2024 16:40:48 +0900 you wrote:
> syzbot reported the following uninit-value access issue [1]:
>
> netlink_to_full_skb() creates a new `skb` and puts the `skb->data`
> passed as a 1st arg of netlink_to_full_skb() onto new `skb`. The data
> size is specified as `len` and passed to skb_put_data(). This `len`
> is based on `skb->end` that is not data offset but buffer offset. The
> `skb->end` contains data and tailroom. Since the tailroom is not
> initialized when the new `skb` created, KMSAN detects uninitialized
> memory area when copying the data.
>
> [...]

Here is the summary with links:
- [net] netlink: Fix kernel-infoleak-after-free in __skb_datagram_iter
https://git.kernel.org/netdev/net/c/661779e1fcaf

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