[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<171477782938.11856.16739206272754478830.git-patchwork-notify@kernel.org>
Date: Fri, 03 May 2024 23:10:29 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Roded Zats <rzats@...oaltonetworks.com>
Cc: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, orcohen@...oaltonetworks.com, netdev@...r.kernel.org
Subject: Re: [PATCH net] rtnetlink: Correct nested IFLA_VF_VLAN_LIST attribute
validation
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@...nel.org>:
On Thu, 2 May 2024 18:57:51 +0300 you wrote:
> Each attribute inside a nested IFLA_VF_VLAN_LIST is assumed to be a
> struct ifla_vf_vlan_info so the size of such attribute needs to be at least
> of sizeof(struct ifla_vf_vlan_info) which is 14 bytes.
> The current size validation in do_setvfinfo is against NLA_HDRLEN (4 bytes)
> which is less than sizeof(struct ifla_vf_vlan_info) so this validation
> is not enough and a too small attribute might be cast to a
> struct ifla_vf_vlan_info, this might result in an out of bands
> read access when accessing the saved (casted) entry in ivvl.
>
> [...]
Here is the summary with links:
- [net] rtnetlink: Correct nested IFLA_VF_VLAN_LIST attribute validation
https://git.kernel.org/netdev/net/c/1aec77b2bb2e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists