Bug 2482046 (CVE-2026-45897) - CVE-2026-45897 kernel: netfilter: nft_counter: serialize reset with spinlock
Summary: CVE-2026-45897 kernel: netfilter: nft_counter: serialize reset with spinlock
Keywords:
Status: NEW
Alias: CVE-2026-45897
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-27 15:08 UTC by OSIDB Bzimport
Modified: 2026-05-28 02:37 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-05-27 15:08:39 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.