Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E5853DDDA1 for ; Wed, 27 May 2026 12:22:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884552; cv=none; b=Zxqy/b7kZ1SQvY/s0bD7jPo18VBRerS9OdJadlKt6iy4QkVmUgFSNJ65s0WZNhr6PspiKcPQ7KqH9P7P0kWGxcfjFVRnK+7jvt4URJdF0olu/QjgCDawubqO4ZWyomotIU/y0tjGL9jgGtIQQQglzO78NmRJy4tCcABEM2ODLo4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884552; c=relaxed/simple; bh=KqM3wHLXknC0Jc6kCRXtK7E6EYNVlLEi3ygFF5LDkWA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=G7IwawJoUpGpMA1kgvGVpkwD90hdBdxkZMsR+R2mD6kcQsTTxHe7sORTNHN68PxJ2sHk0Iudzoj+FhPoTRkAxpPQ5rbYaLoFhfeVbQqk6KcZCDcroxHaydaNJC3p50z0I/rSTmRMMPf3l7efUrMGBbe8SJGU6uaypCl3cPYQI78= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NhCx8AEc; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NhCx8AEc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CBA11F000E9; Wed, 27 May 2026 12:22:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884551; bh=kWWS6T0f2u3IA2Z2OworqFeXIEYXGgzI06SCJvCBHz8=; h=From:To:Cc:Subject:Date:Reply-To; b=NhCx8AEcwn/IXWCPWiQ+qlVKb/6F5KbWVHgHp0rBFNLN8tP7yysm8MQB7zYciPVbR cKxcLzUlrjVciy95RB9F5PqQm0ERSZcXjtljac4xf4TM9jc57HYaW0cfZD/2kRGuoa BA5T5593GQrTpK1f0P/Jcd8dokrQncURIX1B3I+Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45897: netfilter: nft_counter: serialize reset with spinlock Date: Wed, 27 May 2026 14:18:59 +0200 Message-ID: <2026052719-CVE-2026-45897-233a@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2358; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HzjtpAgyY/0TYdo0H6dLFDQgX99ivlrWvC6gmz/xRLs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD7lrQkML03OYw6x2KtwqyA2v+rKsJkxdpD1C8nBzY iNTg35HLAuDIBODrJgiy5dtPEf3VxxS9DK0PQ0zh5UJZAgDF6cATMTOjGEO//e5QoL/F/De4rzk sNR/+4N/+7jiGRZsnutbc/JnaZPVy4fV923eLPEud4wDAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-45897 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 3cb03edb4de33fd04c4ea55f47397b96a8657c53 and fixed in 6.19.4 with commit 0cdc6d5a26f2d1f7f15a43526841b679445c32e2 Issue introduced in 6.7 with commit 3cb03edb4de33fd04c4ea55f47397b96a8657c53 and fixed in 7.0 with commit 779c60a5190c42689534172f4b49e927c9959e4e Issue introduced in 6.1.107 with commit fb1adb05ea87b6149e65a31e511756c4f470d0cd Issue introduced in 6.6.48 with commit f123293db16dcd0cd81b246ae60e6362f0025d0a 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-45897 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/nft_counter.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/0cdc6d5a26f2d1f7f15a43526841b679445c32e2 https://git.kernel.org/stable/c/779c60a5190c42689534172f4b49e927c9959e4e