Re: [PATCH] NFC: nci: Bounds check struct nfc_target arrays

From: patchwork-bot+netdevbpf
Date: Tue Dec 06 2022 - 00:00:51 EST


Hello:

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

On Fri, 2 Dec 2022 13:44:14 -0800 you wrote:
> While running under CONFIG_FORTIFY_SOURCE=y, syzkaller reported:
>
> memcpy: detected field-spanning write (size 129) of single field "target->sensf_res" at net/nfc/nci/ntf.c:260 (size 18)
>
> This appears to be a legitimate lack of bounds checking in
> nci_add_new_protocol(). Add the missing checks.
>
> [...]

Here is the summary with links:
- NFC: nci: Bounds check struct nfc_target arrays
https://git.kernel.org/netdev/net/c/e329e71013c9

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