{"id":"CVE-2026-99636","summary":"net: reject a negative TCP header offset in qdisc_pkt_len_segs_init()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: reject a negative TCP header offset in qdisc_pkt_len_segs_init()\n\nqdisc_pkt_len_segs_init() stores skb_transport_offset(), or the inner\noffset, in the unsigned hdr_len. A header in front of skb-\u003edata gives a\nnegative offset. For an offset a little below zero, pskb_may_pull() gets a\nsmall length and succeeds. Then a 64-bit kernel reads the TCP header far\nafter the skb and can crash. Further below zero pskb_may_pull() fails.\n\nCommit 28a57fb2c5df (\"net: iptunnel: fix stale transport header during\ntunnel decapsulation\") fixed one source of such offsets. Other code that\nremoves bytes from the front of a packet can leave the same stale header.\n\nReturn SKB_DROP_REASON_SKB_BAD_GSO for a negative offset in the TCP branch.\nSKB_GSO_UDP_L4 and the other GSO types read no header and still get a wrong\nqdisc_pkt_len(). On a 64-bit kernel only packets that cause the read after\nthe skb today get a new result. Then __dev_queue_xmit() drops them and\nreturns -EINVAL, but sch_handle_ingress() ignores the result. Their content\ncan be valid. Thus the code that leaves the header stale needs its own fix.","modified":"2026-11-20T07:00:58.292270479Z","published":"2026-11-20T05:49:53.115Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99636.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/35d2d6e5ac0d22428b2a0216061f3330c095393c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/765af9e95c840fcbbecf34ca1e787daba8eac569"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d88be0067857b68df06a33cc056c9f05101c09d4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99636.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99636"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7564dc804d8289d2e5c6edb8173754051b71bff4"},{"fixed":"d88be0067857b68df06a33cc056c9f05101c09d4"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7fb4c19670110f052c04e1ec1d2b953b9f4f57e4"},{"fixed":"765af9e95c840fcbbecf34ca1e787daba8eac569"},{"fixed":"35d2d6e5ac0d22428b2a0216061f3330c095393c"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5895cfc76924a629c6eaa5e5f049de642860045f"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9d4f5c68f5ad4ab425f3ce1500c97c9f9743999a"}]}],"versions":["v6.12.117","v6.12.116","v6.12.115","v6.12.114","v6.6.162","v6.6.161","v6.6.160","v7.0.14","v7.0.13","v7.0.12","v7.0.11","v7.0.10"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99636.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.6.160"},{"fixed":"6.7"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.12.114"},{"fixed":"6.12.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"7.0.10"},{"fixed":"7.1"}]},{"type":"ECOSYSTEM","events":[{"introduced":"7.1.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99636.json"}}],"schema_version":"1.9.2"}