bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-45897

5.5medium

linux6.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
Review Av26.10.0x86_64Not affected✓ accepted by a member, 2026-11-17 · settles 4 of 8

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/

  1. `/* 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

  2. `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

  3. `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

  4. VERSION=6 PATCHLEVEL=18 SUBLEVEL=60 - the source is the stock 6.18.60 stable release

    …/Makefile:1-3

  5. 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

  6. 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.