{"id":"CVE-2026-90078","aliases":["CVE-2026-90078"],"related":[],"kind":"vulnerability","state":"published","title":"net/sched: act_skbmod: fix length calculations and avoid invalid header warnings","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: act_skbmod: fix length calculations and avoid invalid header warnings\n\nsyzbot reported a warning in skb_network_header_len() triggered\nby tcf_skbmod_act():\n\n  !skb_transport_header_was_set(skb)\n  WARNING: CPU: 0 PID: 14949 at include/linux/skbuff.h:3243 skb_network_header_len include/linux/skbuff.h:3243 [inline]\n  WARNING: CPU: 0 PID: 14949 at net/sched/act_skbmod.c:55 tcf_skbmod_act+0xfe8/0x1810 net/sched/act_skbmod.c:55\n\nThere are a few issues in tcf_skbmod_act():\n\n1. Calling skb_network_header_len() assumes skb->transport_header is set,\n   which is not guaranteed when tcf_skbmod_act() runs at TC ingress.\n2. Unconditionally calling skb_mac_header_len() at the beginning of\n   tcf_skbmod_act() triggers a warning on L3 devices (e.g. TUN) where the\n   MAC header is unset, evaluating to an underflowed garbage length.\n3. On TC ingress, skb->data points to the network header. Adding the MAC\n   header length to the IP header length causes skb_ensure_writable() to\n   request more bytes than the actual IP packet length, dropping valid\n   short packets (e.g. 28-byte UDP/IPv4 packets).\n\nFix these by:\n- Using skb_network_offset(skb) + sizeof(struct iphdr/ipv6hdr) for\n  SKBMOD_F_ECN so that the required length is correctly calculated on\n  both ingress (offset == 0) and egress (offset == mac_len).\n- Setting max_edit_len to ETH_HLEN for Ethernet header modifications\n  after validating ARPHRD_ETHER.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: act_skbmod: fix length calculations and avoid invalid header warnings\n\nsyzbot reported a warning in skb_network_header_len() triggered\nby tcf_skbmod_act():\n\n  !skb_transport_header_was_set(skb)\n  WARNING: CPU: 0 PID: 14949 at include/linux/skbuff.h:3243 skb_network_header_len include/linux/skbuff.h:3243 [inline]\n  WARNING: CPU: 0 PID: 14949 at net/sched/act_skbmod.c:55 tcf_skbmod_act+0xfe8/0x1810 net/sched/act_skbmod.c:55\n\nThere are a few issues in tcf_skbmod_act():\n\n1. Calling skb_network_header_len() assumes skb->transport_header is set,\n   which is not guaranteed when tcf_skbmod_act() runs at TC ingress.\n2. Unconditionally calling skb_mac_header_len() at the beginning of\n   tcf_skbmod_act() triggers a warning on L3 devices (e.g. TUN) where the\n   MAC header is unset, evaluating to an underflowed garbage length.\n3. On TC ingress, skb->data points to the network header. Adding the MAC\n   header length to the IP header length causes skb_ensure_writable() to\n   request more bytes than the actual IP packet length, dropping valid\n   short packets (e.g. 28-byte UDP/IPv4 packets).\n\nFix these by:\n- Using skb_network_offset(skb) + sizeof(struct iphdr/ipv6hdr) for\n  SKBMOD_F_ECN so that the required length is correctly calculated on\n  both ingress (offset == 0) and egress (offset == mac_len).\n- Setting max_edit_len to ETH_HLEN for Ethernet header modifications\n  after validating ARPHRD_ETHER.","source":"cvelist"}],"published":"2026-09-17T16:05:56.878Z","modified":"2026-10-19T09:18:56.630Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"56af5e749f20c3a540310c207dcc373f4f09156e","fixed":"985a37781ade19061400100c2ba0f43979dd4d63","status":"affected"},{"type":"git","introduced":"56af5e749f20c3a540310c207dcc373f4f09156e","fixed":"d896843d8d925f0adbba319020595cfb1a7bcd57","status":"affected"},{"type":"git","introduced":"56af5e749f20c3a540310c207dcc373f4f09156e","fixed":"0675cff3c2924eb9b80d9dd250cf56a1140af157","status":"affected"},{"type":"git","introduced":"56af5e749f20c3a540310c207dcc373f4f09156e","fixed":"e8a2027b7e686784a69b2dfcee841d779919f313","status":"affected"},{"type":"git","introduced":"56af5e749f20c3a540310c207dcc373f4f09156e","fixed":"1719865b20b22c88d2a55e922eff5ca31b0841f6","status":"affected"},{"type":"git","introduced":"56af5e749f20c3a540310c207dcc373f4f09156e","fixed":"62126464f3a6159c0a3dd89e196ba65bfeb0afc6","status":"affected"},{"type":"git","introduced":"56af5e749f20c3a540310c207dcc373f4f09156e","fixed":"81d0d1e64f30d9989c829c0953cd6e6c68d9c5fb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"5.15.221","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.188","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/985a37781ade19061400100c2ba0f43979dd4d63","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d896843d8d925f0adbba319020595cfb1a7bcd57","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0675cff3c2924eb9b80d9dd250cf56a1140af157","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e8a2027b7e686784a69b2dfcee841d779919f313","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1719865b20b22c88d2a55e922eff5ca31b0841f6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/62126464f3a6159c0a3dd89e196ba65bfeb0afc6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/81d0d1e64f30d9989c829c0953cd6e6c68d9c5fb","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90078","url":"https://www.cve.org/CVERecord?id=CVE-2026-90078","licence":"CVE Terms of Use","modified":"2026-10-19T08:57:34.924Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90078","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90078","licence":"Public domain","modified":"2026-10-19T09:18:56.630Z"}],"updatedAt":"2026-11-25T22:59:39.296Z","epss":{"score":0.00211,"percentile":0.12086,"date":"2026-12-01T12:00:22.000Z"}}