net: use skb_header_pointer() for TCPv4 GSO frag_off check
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cbc53e08a793b073e79f42ca33f1f3568703540d · < ddc748a391dd8642ba6b2e4fe22e7f2ddf84b7f0| No fix yet |
| Linux Linux |
|
|
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
From the CVE record · Linux
The Linux kernel's TCPv4 GSO feature check can read an uninitialized IPv4 header value when handling packets injected through PF_PACKET paths. A KMSAN warning was reported; the input does not establish any further attacker impact or authentication requirements.
Teams running the Linux kernel should check their deployments; affected versions are not specified.