CVE-2026-43036: net: use skb_header_pointer() for TCPv4 GSO frag_off check
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: use skb_header_pointer() for TCPv4 GSO frag_off check
Syzbot reported a KMSAN uninit-value warning in gso_features_check() called from netif_skb_features() [1].
gso_features_check() reads iph->frag_off to decide whether to clear mangleid_features. Accessing the IPv4 header via ip_hdr()/inner_ip_hdr() can rely on skb header offsets that are not always safe for direct dereference on packets injected from PF_PACKET paths.
Use skb_header_pointer() for the TCPv4 frag_off check so the header read is robust whether data is already linear or needs copying.
[1] https://syzkaller.appspot.com/bug?extid=1543a7d954d9c6d00407
The Linux kernel CVE team has assigned CVE-2026-43036 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.7 with commit cbc53e08a793b073e79f42ca33f1f3568703540d and fixed in 6.12.81 with commit f7a6cd508e9e825a2c69fa9e13d41ee156852f25 Issue introduced in 4.7 with commit cbc53e08a793b073e79f42ca33f1f3568703540d and fixed in 6.18.22 with commit cc91202fc20a44aab4c206f12a2bfe05da936051 Issue introduced in 4.7 with commit cbc53e08a793b073e79f42ca33f1f3568703540d and fixed in 6.19.12 with commit d970341cfa5594614c7a6634886c7688b4f5cafd Issue introduced in 4.7 with commit cbc53e08a793b073e79f42ca33f1f3568703540d and fixed in 7.0 with commit ddc748a391dd8642ba6b2e4fe22e7f2ddf84b7f0
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-43036
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/core/dev.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/f7a6cd508e9e825a2c69fa9e13d41ee156852f25 https://git.kernel.org/stable/c/cc91202fc20a44aab4c206f12a2bfe05da936051 https://git.kernel.org/stable/c/d970341cfa5594614c7a6634886c7688b4f5cafd https://git.kernel.org/stable/c/ddc748a391dd8642ba6b2e4fe22e7f2ddf84b7f0