Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794332240; b=QLseYPNDjpc9byj7+jxTHDEWNk5pbIrfxWtOom5vU+oDoV1Ka5oFJVrM9yTc2ZatiW37 JVAr7j8O05mzlrsoBCGCjsDO/qOBdIz4p+YeL8cocPGXGo2PVCIi44fd2eox/MdUlveSF J8/XtphqCYLkN6Z8VGLquNkQStCnhcJ5vNZtbp9caKkGGaTpJmczrRkIZymEIJj2TeBIR 00x9ILRp7e7hZNtUgRe5ZTrYiPZf8Jk2hBTEBjymRsWaJ+LJmczCc8ZtuO5aBdjVStyau cWPrjodrfCSQHCXKhuPe9VezrBuiDuf/UTuJ2lI+x4fHM2TN5oiSuqMVHlu5mmhYp4Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794332240; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=vkYRSIQ7aBxn3XunavEIX+9DOlBhNTjHBKfUMGtnTzM=; b=Dlj1xCTZ1UmscY6b6eg6RiN+CKxQXwkJfbRijOLGJQRBcqP021jEb7CBJkv/aeMefGT8 SvQ35ulTdsKqIozSc44/s3CtZSowVZGSxwrHhe0ExCZcjeTFjYgmi2iNI06foXNGuRUry eWBTxrvvdLzdv+KB2xiT+un+S9GySawY7DNBpoRX9GPk65kefjj04xyrxBuYdfN1HQzYT nRHZNyrvkQ/qlzkeVqX62o1jqJC2YWbPyxi5CI3l3gpx4Sdpn+vG66QlWeSi2BLTGLprw zzR89XB6jSsgujyBKsA0HNS49IE4nIIX53Y9YrsnZlYiI/Ta2zPcdBiFJ+XbFS7YmGA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=N0NtWY3x; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9722606A31C for ; Tue, 10 Nov 2026 17:37:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=N0NtWY3x Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D8B61F008A2; Tue, 10 Nov 2026 17:37:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794332239; bh=vkYRSIQ7aBxn3XunavEIX+9DOlBhNTjHBKfUMGtnTzM=; h=From:To:Cc:Subject:Date:Reply-To; b=N0NtWY3xGdRxLWaV9J7zfH+OACgdxwPPZZtCCjuX3otDch93DGdQCPxJwgnp96475 FbVnDJK2KvOJXir7gRqOFN9IfALVrgF3db2hivu3bpbYqW5fi4jfsq5gNq1B1+6Vlq EJg+VOB7YQqB+IAnCm/6GrbDSRldjsxMluC7TGMs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99285: netfilter: nft_byteorder: remove multi-register support Date: Tue, 10 Nov 2026 12:37:16 -0500 Message-ID: <2026111015-CVE-2026-99285-806e@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4507; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QvlW73dsTiftOeWlG9iymbOBIkLrufFWkl9NY7vdhG8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmfw7w13ttxL3q4t3qxI6v5mrq6yssV/4xvL3uQpLIxe 3Wn0y7rjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI2FqG+f6sDi53m+ST83g/ 81XMbbi9sjftFMOCud/vXbv24dYv5Qezb/d53pzzvNJ5HwA= 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_byteorder: remove multi-register support 64bit byteorder conversion is broken when several registers need to be converted because the source register array advances in steps for 4 bytes instead of 8: for (i = ... src64 = nft_reg_load64(&src[i]); ~~~~~ u32 *src nft_reg_store64(&dst64[i], Remove the multi-register support, it has other issues as well: Pablo points out that commit caf3ef7468f7 ("netfilter: nf_tables: prevent OOB access in nft_byteorder_eval") alters semantics: before the loop operated on registers, i.e. for ( ... ) dst32[i] = htons((u16)src32[i]) .. but after the patch it will operate on bytes, which makes this useless to convert e.g. concatenations, which store each compound in its own register. Multi-convert of u32 has one theoretical application: ct mark . meta mark . tcp dport @intervalset Because ct mark and meta mark are host byte order, use with intervals has to convert the byteorder for ct/meta mark value to network byte order (bigendian). nftables emits this: [ meta load mark => reg 1 ] [ byteorder reg 1 = hton(reg 1, 4, 4) ] [ ct load mark => reg 9 ] [ byteorder reg 9 = hton(reg 9, 4, 4) ] ... I.e. two separate calls. Theoretically it could be changed to do: [ meta load mark => reg 1 ] [ ct load mark => reg 9 ] [ byteorder reg 1 = htonl(reg 1, 4, 8) ] ... But then all it would take to change the set to meta mark . tcp dport . ct mark ... and we'd be back to two "byteorder" calls. IOW, support to convert a range of registers is both dysfunctional and dubious. Simplify this: remove the feature. Pablo Neira Ayuso points out that nftables before 1.1.0 can generate incorrect byteorder conversions, see 9fe58952c45a, "evaluate: skip byteorder conversion for selector smaller than 2 bytes" in nftables.git). Affected rulesets fail to load with this change and old userspace due to 'len != size' check. The Linux kernel CVE team has assigned CVE-2026-99285 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit c301f0981fdd3fd1ffac6836b423c4d7a8e0eb63 and fixed in 6.12.115 with commit 3c5fb3a6c8118d15e60295e76fb5b879021eef43 Issue introduced in 6.7 with commit c301f0981fdd3fd1ffac6836b423c4d7a8e0eb63 and fixed in 6.18.59 with commit dc29c0478b8564feb9371e715b5a0016eb8903fd Issue introduced in 6.7 with commit c301f0981fdd3fd1ffac6836b423c4d7a8e0eb63 and fixed in 7.1 with commit bb061d3de41707415269be75ebf700efb03ec212 Issue introduced in 4.19.307 with commit fca41e5b687e029f69e3a35a2fa31e2560e538dc Issue introduced in 5.4.269 with commit 25b42be4e067e107a2559266b54bf07fa5b094fb Issue introduced in 5.10.210 with commit 9a865a11d6890d4a789db1eaafebdc8bd092b12c Issue introduced in 5.15.140 with commit b8b514b2a6cdfac24911e4910461bcb9db15ca8d Issue introduced in 6.1.64 with commit 18a169810cff769a7a697b35058c756805f589e0 Issue introduced in 6.5.13 with commit 1a605657adc58b3c8e2c1c66aaa5fecd29072135 Issue introduced in 6.6.3 with commit 013deed31ab15ef287b0045e4e7bd8f250e75b94 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-99285 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_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/3c5fb3a6c8118d15e60295e76fb5b879021eef43 https://git.kernel.org/stable/c/dc29c0478b8564feb9371e715b5a0016eb8903fd https://git.kernel.org/stable/c/bb061d3de41707415269be75ebf700efb03ec212