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 20782383C96 for ; Thu, 25 Jun 2026 08:47:06 +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=1782377227; cv=none; b=B5s+HE80eg0NLcYaeG8H9P1syp6/CzqrcDWEkY6FIzWTx0FDIKg3H4fob/HL/wndMIxoH3GdiN96mgHI7VOESPiJwCYJsrZ21jA4EMPH04gpUy18w//WhP/eDFzsVy8k47P7PLNUyERFS2wgFPBd2nQQZ0GthPHM6DTv1wQJzYM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377227; c=relaxed/simple; bh=vOUWXV/znZ5SKU3SVZ84F/k0DyxAgSEteVMpbDooYDM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Si7mKF6m2HNAprI9gqEL31pxLmHR9DgKXv/3nsVKozC+3lbRZ8/XoKzoK1ccFMrWts48oD/ilkg8jYGn+7EcQyrzemkn7dW/+0SCaS946quYv7unjtF0cHu9q0m9d9zlaUrOXcDIGXv34d8o+FQYpSi38O0z+Nn87LBebGYn8p8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iRY0iV4d; 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="iRY0iV4d" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 655CB1F00A3A; Thu, 25 Jun 2026 08:47:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377226; bh=Kb25CXtv/vsOTWHH1+9ebhJTw1PpD4VHVabMFjd2pNg=; h=From:To:Cc:Subject:Date:Reply-To; b=iRY0iV4dV0Y8/Jlvo9zL373MeIBmBpyG4ikCbxrtwdAvjWkRaEtCRYf4OuqGUMsGt P5FqKtmVDsCP6V8sNG0aoC4Em53EXJrSVHQwcwr75MaZ+lBj1y6807vxuKrPtAp8yQ uFuHvbph/zqsubcmgFGHMkWVd/xoaIr92xhjN1D0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53218: netfilter: nft_exthdr: fix register tracking for F_PRESENT flag Date: Thu, 25 Jun 2026 09:41:06 +0100 Message-ID: <2026062505-CVE-2026-53218-d36e@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=3625; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Yz92csUbEbbxpCEUqPGHYSX1Zqn2UNIUEN1DVIU2xh0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2L1M112ccMJ5/5Jjh0eAfXRddAr6EXlH9wJbLflJoT TBzholrRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykL5NhwXU59zubS39/YXdT 8p9fqeUwW/n0c4YF/YH3dE24ddMfeERxcx2zDKw/e3YaAA== 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_exthdr: fix register tracking for F_PRESENT flag nft_exthdr_init() passes user-controlled priv->len to nft_parse_register_store(), which marks that many bytes in the register bitmap as initialized. However, when NFT_EXTHDR_F_PRESENT is set, the eval paths write only 1 byte (nft_reg_store8) or 4 bytes (*dest = 0 on TCP/DCCP error path). When len > 4, registers beyond the first are never written, retaining uninitialized stack data from nft_regs. Bail out if userspace requests too much data when F_PRESENT is set. The Linux kernel CVE team has assigned CVE-2026-53218 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 5.10.259 with commit 8738b1b6d0e639ca1fc0f61516afd3557ac4ecc6 Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 5.15.210 with commit 19748967d59c31d24d21d40b728570788310b237 Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 6.1.176 with commit 46fc15a044e9938e7ea77786fb37edd2cd74f031 Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 6.6.143 with commit cd513e43b4b2bd1de39e2367bc4261c699a8652f Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 6.12.94 with commit 67b27434c43b68a97becda98c9f0c8cf6cba2134 Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 6.18.36 with commit 78069a6d8bc86c9e036eb82c2af4a19cc1871a53 Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 7.0.13 with commit f08fb3d42fd3aad0b7a263da3ac3ebaf0845e265 Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 7.1 with commit 772cecf198da732faebb5dcfc46d66a505be8495 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-53218 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_exthdr.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/8738b1b6d0e639ca1fc0f61516afd3557ac4ecc6 https://git.kernel.org/stable/c/19748967d59c31d24d21d40b728570788310b237 https://git.kernel.org/stable/c/46fc15a044e9938e7ea77786fb37edd2cd74f031 https://git.kernel.org/stable/c/cd513e43b4b2bd1de39e2367bc4261c699a8652f https://git.kernel.org/stable/c/67b27434c43b68a97becda98c9f0c8cf6cba2134 https://git.kernel.org/stable/c/78069a6d8bc86c9e036eb82c2af4a19cc1871a53 https://git.kernel.org/stable/c/f08fb3d42fd3aad0b7a263da3ac3ebaf0845e265 https://git.kernel.org/stable/c/772cecf198da732faebb5dcfc46d66a505be8495