{"id":74824,"date":"2025-12-24T14:46:01","date_gmt":"2025-12-24T11:16:01","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-68725-bpf-do-not-let-bpf-test-infra-emit-invalid-gso-types-to-stack\/"},"modified":"2025-12-24T14:46:01","modified_gmt":"2025-12-24T11:16:01","slug":"cve-2025-68725-bpf-do-not-let-bpf-test-infra-emit-invalid-gso-types-to-stack","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-68725-bpf-do-not-let-bpf-test-infra-emit-invalid-gso-types-to-stack\/","title":{"rendered":"CVE-2025-68725 &#8211; bpf: Do not let BPF test infra emit invalid GSO types to stack"},"content":{"rendered":"<p>CVE ID : CVE-2025-68725<\/p>\n<p>Published :  Dec. 24, 2025, 11:16 a.m. | 1\u00a0hour, 5\u00a0minutes ago<\/p>\n<p>Description : In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>bpf: Do not let BPF test infra emit invalid GSO types to stack<\/p>\n<p>Yinhao et al. reported that their fuzzer tool was able to trigger a<br \/>\nskb_warn_bad_offload() from netif_skb_features() -&gt; gso_features_check().<br \/>\nWhen a BPF program &#8211; triggered via BPF test infra &#8211; pushes the packet<br \/>\nto the loopback device via bpf_clone_redirect() then mentioned offload<br \/>\nwarning can be seen. GSO-related features are then rightfully disabled.<\/p>\n<p>We get into this situation due to convert___skb_to_skb() setting<br \/>\ngso_segs and gso_size but not gso_type. Technically, it makes sense<br \/>\nthat this warning triggers since the GSO properties are malformed due<br \/>\nto the gso_type. Potentially, the gso_type could be marked non-trustworthy<br \/>\nthrough setting it at least to SKB_GSO_DODGY without any other specific<br \/>\nassumptions, but that also feels wrong given we should not go further<br \/>\ninto the GSO engine in the first place.<\/p>\n<p>The checks were added in 121d57af308d (&#8220;gso: validate gso_type in GSO<br \/>\nhandlers&#8221;) because there were malicious (syzbot) senders that combine<br \/>\na protocol with a non-matching gso_type. If we would want to drop such<br \/>\npackets, gso_features_check() currently only returns feature flags via<br \/>\nnetif_skb_features(), so one location for potentially dropping such skbs<br \/>\ncould be validate_xmit_unreadable_skb(), but then otoh it would be<br \/>\nan additional check in the fast-path for a very corner case. Given<br \/>\nbpf_clone_redirect() is the only place where BPF test infra could emit<br \/>\nsuch packets, lets reject them right there.<\/p>\n<p>Severity: 0.0 | NA<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-68725 Published : Dec. 24, 2025, 11:16 a.m. | 1\u00a0hour, 5\u00a0minutes ago Description : In the Linux kernel, the following vulnerability has been resolved: bpf: Do not let BPF test infra emit invalid GSO types to stack Yinhao et al. reported that their fuzzer tool was able to trigger a skb_warn_bad_offload() from &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-74824","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/74824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=74824"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/74824\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=74824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=74824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=74824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}