Kernel Kit / Infix / v26.10.0latest
CVE-2026-45897
5.5mediumlinux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases
Reach linux · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
netfilter: nft_counter: serialize reset with spinlock
Add a global static spinlock to serialize counter fetch+reset operations, preventing concurrent dump-and-reset from underrunning values.
The lock is taken before fetching the total so that two parallel resets cannot both read the same counter values and then both subtract them.
A global lock is used for simplicity since resets are infrequent. If this becomes a bottleneck, it can be replaced with a per-net lock later.
Published 2026-05-27NVD
CVSS 3.1Local · low privileges · no user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
What it costs
- Confidentiality
- None
- Integrity
- None
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
References 6
- git.kernel.org/stable/c/0cdc6d5a26f2d1f7f15a43526841b679445c32e2
- git.kernel.org/stable/c/48cf7918d10c66cb6b05226fa3fa5daf0c891089
- git.kernel.org/stable/c/779c60a5190c42689534172f4b49e927c9959e4e
- git.kernel.org/stable/c/cd968dcdec6aee79a2d399e4f6e0eca63c3b45e1
- git.kernel.org/stable/c/de6601f1374fab124cd9276df6671f64d940ceb4
- git.kernel.org/stable/c/e13194e60217db02c2e7202375d9e5951267d87b
Fable 5.1 · high confidence · 2026-11-05
The fix for CVE-2026-45897 ("netfilter: nft_counter: serialize reset with spinlock") is already present in the linux 6.18.60 source used by this build: net/netfilter/nft_counter.c defines the global nft_counter_lock spinlock and nft_counter_fetch_and_reset() takes it around the fetch+reset pair, exactly as in the upstream fix.
None of the 139 Buildroot/Infix patches touch nft_counter, so this is a stable backport in 6.18.60 itself that NVD's version range does not account for.
nf_tables (and thus nft_counter, which is part of the nf_tables core object) is compiled in, but the vulnerable code path is not.
Evidence 6
…/ is output/build/linux-6.18.60/
`/* control plane only: sync fetch+reset */ static DEFINE_SPINLOCK(nft_counter_lock);` - the global spinlock added by the fix commit is present
…/net/netfilter/nft_counter.c:35-36
`nft_counter_fetch_and_reset()` wraps `nft_counter_fetch()` + `nft_counter_reset()` in spin_lock/spin_unlock(&nft_counter_lock) - the fixed code path
…/net/netfilter/nft_counter.c:154-161
`nft_counter_do_dump()` calls the locked `nft_counter_fetch_and_reset()` when reset is requested, so the dump-and-reset race is closed
…/net/netfilter/nft_counter.c:166-172
VERSION=6 PATCHLEVEL=18 SUBLEVEL=60 - the source is the stock 6.18.60 stable release
…/Makefile:1-3
139 patches applied; none mention counter/nft_counter, and no patch under patches/ introduces nft_counter_lock - the fix comes from the upstream 6.18.60 tarball, not a local patch
…/.applied_patches_list
CONFIG_NF_TABLES=y and nft_counter.o is part of the nf_tables core object, so the (fixed) code is compiled in (output/objects.txt:23880)
…/.config:1174 and net/netfilter/Makefile:91
Version and patches
NVD maps the CVE to linux_kernel 6.18.60 via CPE, but the 6.18.60 source in this tree already contains the upstream fix (global nft_counter_lock spinlock in nft_counter.c), i.e. one of the referenced stable commits was included in 6.18.60 (or earlier in the 6.18.y series). No Buildroot IGNORE_CVES entry or local patch addresses it; the fix is simply in the upstream stable release.
Recommendation
No action required; document as not applicable (fix already present in linux 6.18.60 stable source). Optionally add a Buildroot IGNORE_CVES / SBOM annotation for CVE-2026-45897 so it does not resurface in future scans.
Open questions
None material. The exact stable commit ID that landed the fix in 6.18.y could not be confirmed from the tarball (no git history), but the code itself matches the fix.
Members of Kernel Kit decide. Sign in if you are one.