CVE-2026-97998: netfilter: nfnetlink_log: cope with concurrent instance destruction
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nfnetlink_log: cope with concurrent instance destruction
Instances are refcounted. However, only memory release happens on the 1 -> 0 transition; the unlink from hashes can occur with any refcount.
Uncooperative userspace can force a situation where a queue is pending for destruction from netlink event while a different socket with same portid processes an UNBIND request.
With right timing, this will unhash the instance again:
Oops: general protection fault, [..] Call Trace: <TASK> nfulnl_recv_config+0x31a/0xd50 nfnetlink_rcv_msg+0x7c2/0xeb0
The Linux kernel CVE team has assigned CVE-2026-97998 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.14 with commit 0597f2680d666a3bcf101ac0c771ba7e50016bbd and fixed in 6.12.111 with commit 0234d7ca0317be0a623300e1693cd794bbfdf8af Issue introduced in 2.6.14 with commit 0597f2680d666a3bcf101ac0c771ba7e50016bbd and fixed in 6.18.53 with commit 1a7a8ac9a9f0ad0d410c901cb6f233833518844c Issue introduced in 2.6.14 with commit 0597f2680d666a3bcf101ac0c771ba7e50016bbd and fixed in 7.2.7 with commit e2dd0f1f8c4e6334699ea6382e52f6da0c7e45eb Issue introduced in 2.6.14 with commit 0597f2680d666a3bcf101ac0c771ba7e50016bbd and fixed in 7.3-rc3 with commit 387d744fa7e499d2c3748a4e60e02ebb24e7fb16
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-97998
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/netfilter/nfnetlink_log.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/0234d7ca0317be0a623300e1693cd794bbfdf8af https://git.kernel.org/stable/c/1a7a8ac9a9f0ad0d410c901cb6f233833518844c https://git.kernel.org/stable/c/e2dd0f1f8c4e6334699ea6382e52f6da0c7e45eb https://git.kernel.org/stable/c/387d744fa7e499d2c3748a4e60e02ebb24e7fb16