Thread (3 messages) 3 messages, 3 authors, 2022-03-21

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

From: patchwork-bot+netdevbpf@kernel.org
Date: 2022-03-21 11:10:25
Also in: linux-security-module, lkml

Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller [off-list ref]:

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help