Skip to contentSkip to conversation

Update on UAF in ip6_do_table on 4.19.X kernel

DISCUSSION [email protected] 1 participant 1 message Jan 20, 2020 netfilter

lore
Share & tools
lore
#0 lore raw

Hi all,

Following up on the thread we submitted earlier here: https://lore.kernel.org/netfilter-devel/[email protected]/

In short, we've seen that on the 4.19.X kernels, there is a crash in the Xtables framework where the jumpstack can potentially be used after it is freed. We've narrowed down the cause of this crash to a single patch: f31e5f1a891f ("netfilter: unlock xt_table earlier in __do_replace"); if this patch is reverted, the crash is no longer seen.

It seems that the xt_table lock is needed for get_old_counters() to be synchronized properly with the rest of the framework.

Thanks,
Sean