Re: [PATCH net-next] netlabel: fix out-of-bounds memory accesses

From: patchwork-bot+netdevbpf
Date: Mon Mar 21 2022 - 07:10:24 EST


Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Fri, 18 Mar 2022 14:35:08 +0800 you wrote:
> In calipso_map_cat_ntoh(), in the for loop, if the return value of
> netlbl_bitmap_walk() is equal to (net_clen_bits - 1), when
> netlbl_bitmap_walk() is called next time, out-of-bounds memory accesses
> of bitmap[byte_offset] occurs.
>
> The bug was found during fuzzing. The following is the fuzzing report
> BUG: KASAN: slab-out-of-bounds in netlbl_bitmap_walk+0x3c/0xd0
> Read of size 1 at addr ffffff8107bf6f70 by task err_OH/252
>
> [...]

Here is the summary with links:
- [net-next] netlabel: fix out-of-bounds memory accesses
https://git.kernel.org/netdev/net-next/c/f22881de730e

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