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 3A2723815EA for ; Thu, 25 Jun 2026 08:43:27 +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=1782377008; cv=none; b=B2N4GkcJh8MzmBK/dk+EQ5qYv5A0TVFosDc9m58lPbI0hLyuQaK0fAo745wJbgM/8+9KuHoaQNu95J8TuXmzI8ohB2Y2chXNtlIULElth2kkX20DjIqTWFn76jE0PZUN3nlDeIJbp8Jpo71ZRBkJNTLWSYIYiQt+CReS62Nq0Qk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377008; c=relaxed/simple; bh=Ib+v1NnIbymD6qAzrCiLm3Nb3FdMIrdX2vnGZ2fsFd0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cavolrqPgsufhnIr1/Gy+9LxgYzFWGN01r4bIG7w+vhCH/le1ppzcGi/jhKRxXr7eG+hdGh5gcAT9CLhFvow8xTLQOpPQEtsRukdvCoN7uleHm47bzyB81RZpWwETiizZlvxoucImzJGLfVxQM24lQtZnTocDuBNWRC5kYVKIYM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QymJ143Y; 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="QymJ143Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89BAA1F000E9; Thu, 25 Jun 2026 08:43:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377007; bh=g8OhB14qYCNXmS+YHOq0iiLsp8gWnfv/bduPHNpTcgU=; h=From:To:Cc:Subject:Date:Reply-To; b=QymJ143Y5Ad4DdzHqMYwCCHJcBL+o3CIO1L9EcYoKBxJu2Qmb7Vl+3WR1cev3SUlO jJ+Qa2a6xzJUqMX4WL+LMbd9vjfjKcW7HpHTVtgtTVWMyS7EbzpxwJxR/Kbxpz8UeM F7h5Ddevv+qIr9P9BDK3r2ipE+rmpTR2QQ8JYEr4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53131: netfilter: require Ethernet MAC header before using eth_hdr() Date: Thu, 25 Jun 2026 09:39:39 +0100 Message-ID: <2026062539-CVE-2026-53131-0b14@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=3044; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=asW7eS+IZncNHxQIyCaOpdVuRJ0tNf0udVf/Vt/6HaE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2L73tWjYHPzRzWnt+3YcaDZ1eA5Oc3FM+i7W446bXr Wpqn27cEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMp9WSYp6VbcdL1rcZU07SF V64/e7eK2+LCMoYF87Zs2MHdznVUy+D1HVeWxtrGeufbAA== 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: require Ethernet MAC header before using eth_hdr() `ip6t_eui64`, `xt_mac`, the `bitmap:ip,mac`, `hash:ip,mac`, and `hash:mac` ipset types, and `nf_log_syslog` access `eth_hdr(skb)` after either assuming that the skb is associated with an Ethernet device or checking only that the `ETH_HLEN` bytes at `skb_mac_header(skb)` lie between `skb->head` and `skb->data`. Make these paths first verify that the skb is associated with an Ethernet device, that the MAC header was set, and that it spans at least a full Ethernet header before accessing `eth_hdr(skb)`. The Linux kernel CVE team has assigned CVE-2026-53131 to this issue. Affected and fixed versions =========================== Fixed in 5.15.210 with commit 4435888e1bf139d2bfe5911643d4217382136743 Fixed in 6.1.176 with commit 063f43361e884acd7300790e90194430275d0d0c Fixed in 6.6.143 with commit 726abf97566867f808fec9d8a408eb9698bd570a Fixed in 6.12.94 with commit 367abcacc13a8e2e7624408b7f593bd1e60e49d9 Fixed in 6.18.36 with commit 5d634afb8b83b49de562792fd0d047416a43bd4d Fixed in 7.0.13 with commit cea435ea7e868ea6fdf039bc4f2090c1d829b556 Fixed in 7.1 with commit 62443dc21114c0bbc476fa62973db89743f2f137 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-53131 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/ipv6/netfilter/ip6t_eui64.c net/netfilter/ipset/ip_set_bitmap_ipmac.c net/netfilter/ipset/ip_set_hash_ipmac.c net/netfilter/ipset/ip_set_hash_mac.c net/netfilter/nf_log_syslog.c net/netfilter/xt_mac.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/4435888e1bf139d2bfe5911643d4217382136743 https://git.kernel.org/stable/c/063f43361e884acd7300790e90194430275d0d0c https://git.kernel.org/stable/c/726abf97566867f808fec9d8a408eb9698bd570a https://git.kernel.org/stable/c/367abcacc13a8e2e7624408b7f593bd1e60e49d9 https://git.kernel.org/stable/c/5d634afb8b83b49de562792fd0d047416a43bd4d https://git.kernel.org/stable/c/cea435ea7e868ea6fdf039bc4f2090c1d829b556 https://git.kernel.org/stable/c/62443dc21114c0bbc476fa62973db89743f2f137