CVE-2026-72250: netfilter: nf_conntrack_reasm: guard mac_header adjustment after IPv6 defrag
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_conntrack_reasm: guard mac_header adjustment after IPv6 defrag
nf_ct_frag6_reasm() slides the packet head forward to drop the IPv6 fragment header and then unconditionally advances skb->mac_header:
skb->mac_header += sizeof(struct frag_hdr);
On the NF_INET_LOCAL_OUT defrag path the skb has no link-layer header yet, so skb->mac_header is still the "not set" sentinel (u16)~0U. Adding sizeof(struct frag_hdr) wraps it to a small value (0xffff + 8 == 7), after which skb_mac_header_was_set() wrongly reports a MAC header is present and skb_mac_header() points into the headroom.
The reassembler has done this unconditional add since it was introduced; it was harmless while mac_header was a bare pointer, but wrong once mac_header became a u16 offset whose unset state is the ~0U sentinel tested by skb_mac_header_was_set(). The sibling net/ipv6/reassembly.c does the same relocation and does guard the adjustment; mirror the guard here.
The Linux kernel CVE team has assigned CVE-2026-72250 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.15 with commit 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1 and fixed in 5.10.261 with commit 6e8cd710ca35c576f5f2e5a396047c9ac61f75e5 Issue introduced in 2.6.15 with commit 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1 and fixed in 5.15.212 with commit 2a95ec21824a8ad81ad660b12231456fc0ac9830 Issue introduced in 2.6.15 with commit 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1 and fixed in 6.1.178 with commit bbcdef2061b170af45702ce6b359c02c12acfc94 Issue introduced in 2.6.15 with commit 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1 and fixed in 6.6.145 with commit cd0d7bbc027b4d3329712cdcdeb4e5567ffd0d58 Issue introduced in 2.6.15 with commit 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1 and fixed in 6.12.97 with commit 53ef70a315420ed31581d38343684b3bf9a3c76d Issue introduced in 2.6.15 with commit 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1 and fixed in 6.18.40 with commit a58230f3a7c4f6c3261786bc1efb72c42e68cd25 Issue introduced in 2.6.15 with commit 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1 and fixed in 7.1.5 with commit 00bdce2fda7e430d24cfbc96764a1b96deb31f82 Issue introduced in 2.6.15 with commit 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1 and fixed in 7.2-rc3 with commit 3b08fed5b7e0d5e3a25d73ef3ba09cd33ade16c9
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-72250
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/nf_conntrack_reasm.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/6e8cd710ca35c576f5f2e5a396047c9ac61f75e5 https://git.kernel.org/stable/c/2a95ec21824a8ad81ad660b12231456fc0ac9830 https://git.kernel.org/stable/c/bbcdef2061b170af45702ce6b359c02c12acfc94 https://git.kernel.org/stable/c/cd0d7bbc027b4d3329712cdcdeb4e5567ffd0d58 https://git.kernel.org/stable/c/53ef70a315420ed31581d38343684b3bf9a3c76d https://git.kernel.org/stable/c/a58230f3a7c4f6c3261786bc1efb72c42e68cd25 https://git.kernel.org/stable/c/00bdce2fda7e430d24cfbc96764a1b96deb31f82 https://git.kernel.org/stable/c/3b08fed5b7e0d5e3a25d73ef3ba09cd33ade16c9