]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: cttimeout: fix slab-out-of-bounds read typo in cttimeout_net_exit
authorFlorian Westphal <fw@strlen.de>
Wed, 15 Jun 2022 13:36:54 +0000 (15:36 +0200)
committerFlorian Westphal <fw@strlen.de>
Fri, 17 Jun 2022 21:31:20 +0000 (23:31 +0200)
commit245bc7878775e54af0367bcb421f7074f142e9a7
tree0fc876684e564c875a2ca69b16c7fe7c307bd4ce
parent6045a3706dada3d88196bb2cff2cd1be572b3fcc
netfilter: cttimeout: fix slab-out-of-bounds read typo in cttimeout_net_exit

syzbot reports:
  BUG: KASAN: slab-out-of-bounds in __list_del_entry_valid+0xcc/0xf0 lib/list_debug.c:42
  [..]
  list_del include/linux/list.h:148 [inline]
  cttimeout_net_exit+0x211/0x540 net/netfilter/nfnetlink_cttimeout.c:617

Problem is the wrong name of the list member, so container_of() result is wrong.

Reported-by: <syzbot+92968395eedbdbd3617d@syzkaller.appspotmail.com>
Fixes: 7336c1976b8c ("netfilter: cttimeout: decouple unlink and free on netns destruction")
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nfnetlink_cttimeout.c