Re: [PATCH nf v4] netfilter: ipset: fix double free on kernel-side delete during resize

From: Pablo Neira Ayuso

Date: Tue Nov 17 2026 - 07:19:38 EST


On Tue, Nov 17, 2026 at 05:44:51AM -0600, Xue Boyang wrote:
> Thanks for the pointer. I had not taken that series into account when
> preparing v4.
>
> I have now looked through it. The rhashtable conversion removes the
> ipset-specific table-copy resize path, so it appears to avoid this
> double-free/UAF class at its root rather than fixing the individual
> races in the old resize implementation.
>
> I will run the reproducer and the related GC/dump tests against v10 and
> report the results.

Thanks.

> Since that series targets nf-next and is a fairly large conversion,
> while this issue also affects existing and stable kernels, would you
> prefer that I replace this v4 synchronization rework with a smaller
> targeted fix for nf/stable, leaving the complete cleanup to the
> rhashtable series?

I think -stable backports of Florian's ipset update for net-next will
be needed.