CVE-2026-53131: netfilter: require Ethernet MAC header before using eth_hdr()
From: Greg Kroah-Hartman <[email protected]>
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