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 BBD37383C96 for ; Thu, 25 Jun 2026 08:47:12 +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=1782377233; cv=none; b=juxIMsUm7z9ElB7mPCNHRDTw8jfv0gzb0lGC+K5UW49x7S27rbNmFE1luBQeeeFVYna9tWJ600biq2TbQ/Xy3uXVLnEJ718OQULBebUBscuMla7U/2pxUDoispclA0JGP1g/cEDID6ht1Loamuzyn24YD2u3CsZ2Xfg59z5ln0A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377233; c=relaxed/simple; bh=PshwUZP7mptUHd4F6Vy3J/ZpHKwEFu2d8pmhvTn/ql0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=I3tcXYWM0d7dVyluDvjdSjfIohOnCqnvlFyhIgk94RSI6OUmC9cXNyaOjQDs4E75vOzOppvoPau4Kp6qo4s1Aq7o+gR0f2gBy58Jz4rO2i4imb2b8baDwMm3hrJL7QQNvmis/IRCnlE+GWPS5QyZdn5DYpX6NDaNqe3cPDuJwbs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ypr9y1pb; 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="Ypr9y1pb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 047811F000E9; Thu, 25 Jun 2026 08:47:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377232; bh=xyGXCzIG7sP4XMEY1sZ/JPTmdcBCTxy0kERaJ6A7Jw8=; h=From:To:Cc:Subject:Date:Reply-To; b=Ypr9y1pbshdIrwaXtq9jLAAbic5j+OiRxIoLZRGkavk6Zcw3ishWsHOKgiWE6BS98 EZcna5mnnNAjZk2e+G69K/xasinRmxYD+LZg6iS61qBT7k0fAruGcrv0XyRfWmZNdZ eBevGgo4GN8p4HjQWaRxW3QRe8ohjgj9gcwS/yA8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53220: netfilter: revalidate bridge ports Date: Thu, 25 Jun 2026 09:41:08 +0100 Message-ID: <2026062505-CVE-2026-53220-807b@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=3259; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2Qxag+frBMtkwdEReTafc3JCxpuY00gbxUa58AAkmTI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2L1M3vMh3OFDv/37HpMVHPmX9/ZAxjVOxcAbXB0+zd jHb2AUVHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR+tMMCw4tWLM7faELnxnr lryam5qi3Be4bRnmiikobozcb9z13GL9yuB5T1cpmojFAwA= 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: revalidate bridge ports ebt_redirect_tg() dereferences br_port_get_rcu() return without a NULL check, causing a kernel panic when the bridge port has been removed between the original hook invocation and an NFQUEUE reinject. A mere NULL check isn't sufficient, however. As sashiko review points out userspace can not only remove the port from the bridge, it could also place the device in a different virtual device, e.g. macvlan. If this happens, we must drop the packet, there is no way for us to reinject it into the bridge path. Switch to _upper API, we don't need the bridge port structure. Also, this fix keeps another bug intact: Both nfnetlink_log and nfnetlink_queue use CONFIG_BRIDGE_NETFILTER too aggressive, which prevents certain logging features when queueing in bridge family: NETFILTER_FAMILY_BRIDGE can be enabled while the old CONFIG_BRIDGE_NETFILTER cruft is off. Fixes tag is a common ancestor, this was always broken. The Linux kernel CVE team has assigned CVE-2026-53220 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.36 with commit f350a0a87374418635689471606454abc7beaa3a and fixed in 6.12.94 with commit 43330a1e8aace6b5a8de9aba127e9e394ab49b0f Issue introduced in 2.6.36 with commit f350a0a87374418635689471606454abc7beaa3a and fixed in 6.18.36 with commit 4beffcd726e2a731cea4dc18e1fbc55c8d76f1a0 Issue introduced in 2.6.36 with commit f350a0a87374418635689471606454abc7beaa3a and fixed in 7.0.13 with commit d4b1301fd3c9e5e105fd3767c68bc4ba558bb228 Issue introduced in 2.6.36 with commit f350a0a87374418635689471606454abc7beaa3a and fixed in 7.1 with commit ccb9fd4b87538ccf19ccff78ee26700526d94867 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-53220 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/bridge/netfilter/ebt_dnat.c net/bridge/netfilter/ebt_redirect.c net/netfilter/nfnetlink_log.c net/netfilter/nfnetlink_queue.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/43330a1e8aace6b5a8de9aba127e9e394ab49b0f https://git.kernel.org/stable/c/4beffcd726e2a731cea4dc18e1fbc55c8d76f1a0 https://git.kernel.org/stable/c/d4b1301fd3c9e5e105fd3767c68bc4ba558bb228 https://git.kernel.org/stable/c/ccb9fd4b87538ccf19ccff78ee26700526d94867