[backport request] “netfilter: nf_tables: fix reset request deadlock” to LTS 6.18, 6.12
From: Konstantin Andreev <hidden>
Date: 2026-07-22 17:30:04
Also in:
stable
Please consider backporting the following series to LTS 6.18, 6.12
(listed in the order of appearance in mainline)
779c60a5190c ("netfilter: nft_counter: serialize reset with spinlock")
30c4d7fb59ac ("netfilter: nft_quota: use atomic64_xchg for reset")
7f261bb906bf ("netfilter: nf_tables: revert commit_mutex usage in reset path")
The last and the first commits are registered as CVE:
CVE-2026-45897 for 779c60a5190c
CVE-2026-45901 for 7f261bb906bf
The series came into mainline in v7.0-rc1 and
was backported into concurrent 6.19 stable,
but was not backported into LTS kernels.
The series applies cleanly on top of v6.18.39 and v6.12.96.
The series came into mainline as parts 2-4 of the wider patch set:
[PATCH net 00/10] netfilter: updates for net
Link: https://lore.kernel.org/netdev/20260217163233.31455-1-fw@strlen.de/ (local)
and comprises a distinct, self-contained functional unit
originating from Brian Witte's series in netfilter-devel:
[PATCH v5 nf-next 0/3] netfilter: nf_tables: fix reset request deadlock
Link: https://lore.kernel.org/netfilter-devel/20260204202639.497235-1-brianwitte@mailfence.com/ (local)
Here is a relevant excerpt from Brian Witte's cover letter:
| syzbot reported a possible circular locking dependency between
| commit_mutex, nfnl_subsys_ipset and nlk_cb_mutex-NETFILTER:
| ...
| Link: https://syzkaller.appspot.com/bug?extid=ff16b505ec9152e5f448
|
| The bug was introduced by commits that added commit_mutex locking to
| serialize reset requests.