All reports
Low

kernel: netfilter: nft_counter: serialize reset with spinlock

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-45897

Probability of exploitation in the next 30 days: 0.16%

FIRST EPSS · 2026-11-23

Description

In the Linux kernel, the following vulnerability has been resolved: 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.

A flaw was found in the Linux kernel's netfilter component, specifically in how network counters are handled. This vulnerability allows for a race condition during simultaneous operations to read and reset these counters. As a result, counter values could be incorrectly reduced, leading to inaccurate system metrics and potential integrity issues.