From mboxrd@z Thu Jan 1 00:00:00 1970 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 296173A3821 for ; Sun, 19 Jul 2026 15:03:24 +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=1784473405; cv=none; b=C7N36SNXIBe+hOLCptcUO0ZN1p+BYdWupvsxR6esKJot6oA5YmrDb0OSRzr/j2y5HWTxghRBGt43xA5Xdg84KofCi1l/x5DagrOXg/P/ACpgCI9QMYjWb0RXLOGvtEry5bYmsOlpv0ipTWg0NbCupIG6y7i33GxtK8OLiAdSPS8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473405; c=relaxed/simple; bh=6muHaPmRnaWG/1/DIsA2AaaiRxUQIsmewAoylGVRmGQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MGYuHqUFRsv/g+o9j6GdKC3whRoD4Kpp69kFtycDWUjxKIB6/Yab8WHxIiZnPMjoK2lT8azjaTorgI+dY6eH0ClQ3TRDwVCPeg7n3UB6m9+nRPjQzHggienpJkmdQRBcrJCo98GiaioDy/PgitVqy+MF+2V9GAW5NY9Z9nmHBAU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VY9BqNZu; 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="VY9BqNZu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 897071F000E9; Sun, 19 Jul 2026 15:03:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473404; bh=AN4eOS3Z86+dh8DuC1ap0jzncfc+x5uWReHtqjb3yXg=; h=From:To:Cc:Subject:Date:Reply-To; b=VY9BqNZuc/RHnRSu9PDIoipRe7TTK/yfv+wqxteHhYXKtCj0w2UQNUfK5sPeybG3k 34S5wAmJF/1cXwcqJQzYDxj6k+9vR25Yni6kv22kIF0RLOmY9WYS6vpx5nLzG8CwFz LvW2aS63q8uis8w4PSPkdV6CdDDzc9liAhkkTc9E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64006: netfilter: nf_tables: fix dst corruption in same register operation Date: Sun, 19 Jul 2026 16:57:46 +0200 Message-ID: <2026071908-CVE-2026-64006-0d9d@gregkh> X-Mailer: git-send-email 2.55.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=3546; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ycjnbAEh6MCTxo4Uibt5vlCKBT3e1QvxyKEzsTCNbQA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxTzve5ag/MXYzXv5QzOeynHoU43oFnvNv1yhN/SjVr /zjuqRfRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyktIxhrpBtSvm9RDlrSU2O q5Nvq3xQltJ6w7BgQn398vMlmxn/1hRnb27ccP+VZFU+AA== 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: nf_tables: fix dst corruption in same register operation For lshift and rshift, the shift operations are performed in a loop over 32-bit words. The loop calculates the shifted value and write it to dst, and then immediately reads from src to calculate the carry for the next iteration. Because src and dst could point to the same memory location, the carry is incorrectly calculated using the newly modified dst value instead of the original src value. Adding a temporary local variable to cache the original value before writing to dst and using it for the carry calculation solves the problem. In addition, partial overlap is rejected from control plane for all kind of operations including byteorder. This was tested with the following bytecode: table test_table ip flags 0 use 1 handle 1 ip test_table test_chain use 3 type filter hook input prio 0 policy accept packets 0 bytes 0 flags 1 ip test_table test_chain 2 [ immediate reg 1 0x44332211 0x88776655 ] [ bitwise reg 1 = ( reg 1 << 0x08000000 ) ] [ cmp eq reg 1 0x66443322 0x00887766 ] [ counter pkts 0 bytes 0 ] ip test_table test_chain 4 3 [ immediate reg 1 0x44332211 0x88776655 ] [ bitwise reg 1 = ( reg 1 << 0x08000000 ) ] [ cmp eq reg 1 0x55443322 0x00887766 ] [ counter pkts 21794 bytes 1917798 ] The Linux kernel CVE team has assigned CVE-2026-64006 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 567d746b55bc66d3800c9ae91d50f0c5deb2fd93 and fixed in 6.6.143 with commit b80ef316e978de2ef81d5bee9c19800b4cf96fb8 Issue introduced in 5.6 with commit 567d746b55bc66d3800c9ae91d50f0c5deb2fd93 and fixed in 6.18.35 with commit 96bea2a7baac4a1137c188dc7610184487ab30a7 Issue introduced in 5.6 with commit 567d746b55bc66d3800c9ae91d50f0c5deb2fd93 and fixed in 7.0.12 with commit a391afe74398b70107f111aa731eab608624949d Issue introduced in 5.6 with commit 567d746b55bc66d3800c9ae91d50f0c5deb2fd93 and fixed in 7.1 with commit 18014147d3ee7831dce53fe65d7fc8d428b02552 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-64006 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: include/net/netfilter/nf_tables.h net/netfilter/nft_bitwise.c net/netfilter/nft_byteorder.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/b80ef316e978de2ef81d5bee9c19800b4cf96fb8 https://git.kernel.org/stable/c/96bea2a7baac4a1137c188dc7610184487ab30a7 https://git.kernel.org/stable/c/a391afe74398b70107f111aa731eab608624949d https://git.kernel.org/stable/c/18014147d3ee7831dce53fe65d7fc8d428b02552