CVE-2026-23139: netfilter: nf_conncount: update last_gc only when GC has been performed
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_conncount: update last_gc only when GC has been performed
Currently last_gc is being updated everytime a new connection is tracked, that means that it is updated even if a GC wasn't performed. With a sufficiently high packet rate, it is possible to always bypass the GC, causing the list to grow infinitely.
Update the last_gc value only when a GC has been actually performed.
The Linux kernel CVE team has assigned CVE-2026-23139 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.19 with commit d265929930e2ffafc744c0ae05fb70acd53be1ee and fixed in 6.1.161 with commit 9f45588993d7f115280fc726119ca86fba32a811 Issue introduced in 5.19 with commit d265929930e2ffafc744c0ae05fb70acd53be1ee and fixed in 6.6.121 with commit 3cd717359e56f82f06cbf8279b47a7d79880c6f3 Issue introduced in 5.19 with commit d265929930e2ffafc744c0ae05fb70acd53be1ee and fixed in 6.12.66 with commit 26a82dce2beee39c43c109d9647e16f49cb02a35 Issue introduced in 5.19 with commit d265929930e2ffafc744c0ae05fb70acd53be1ee and fixed in 6.18.6 with commit 8bdafdf4900040a81422056cabe5e00a37bd101a Issue introduced in 5.19 with commit d265929930e2ffafc744c0ae05fb70acd53be1ee and fixed in 6.19 with commit 7811ba452402d58628e68faedf38745b3d485e3c
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-23139
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/nf_conncount.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/2c7c71113ed6d3e2f3aca4c088f22283016ff34f https://git.kernel.org/stable/c/c4cde57c8affdcca5bcff53a1047e15d268bdca1 https://git.kernel.org/stable/c/9f45588993d7f115280fc726119ca86fba32a811 https://git.kernel.org/stable/c/3cd717359e56f82f06cbf8279b47a7d79880c6f3 https://git.kernel.org/stable/c/26a82dce2beee39c43c109d9647e16f49cb02a35 https://git.kernel.org/stable/c/8bdafdf4900040a81422056cabe5e00a37bd101a https://git.kernel.org/stable/c/7811ba452402d58628e68faedf38745b3d485e3c