{"id":"CVE-2026-98802","aliases":["CVE-2026-98802"],"related":[],"kind":"vulnerability","state":"published","title":"seg6: ensure packet data is writable before modifying SRH and IPv6 DA","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nseg6: ensure packet data is writable before modifying SRH and IPv6 DA\n\nadvance_nextseg() modifies the SRH Segments Left field and the IPv6\ndestination address without ensuring the packet data is writable.\nseg6_next_csid_advance_arg() has the same problem when it advances the\nNEXT-C-SID argument in the destination address.\n\nThe skb may be cloned, for example by an AF_PACKET socket receiving on\nthe ingress device. advance_nextseg() and seg6_next_csid_advance_arg()\nthen write into the packet data shared with the clone. A read from that\nsocket can return the modified packet instead of the received one. The\nsimplified path below shows this for advance_nextseg():\n\n__netif_receive_skb_one_core\n  __netif_receive_skb_core\n    deliver_skb               [orig: users=2, cloned=0]\n      packet_rcv\n        skb_clone             clone queued to the AF_PACKET socket\n        consume_skb(orig)     [orig: users=1, cloned=1]\n  ipv6_rcv\n    ip6_rcv_core              skb_share_check: no-op [orig: users=1]\n    [...]\n      input_action_end_core\n        advance_nextseg       writes into the data shared with the clone\n\nCall skb_ensure_writable() in advance_nextseg() and in\nseg6_next_csid_advance_arg() before they modify the packet data.\nskb_ensure_writable() may reallocate skb->head, which invalidates the\npointers into the packet data taken before the call.\nadvance_nextseg() now returns a valid SRH pointer, or NULL if\nskb_ensure_writable() fails.\nseg6_next_csid_advance_arg() takes the pointer to the destination\naddress from the skb after skb_ensure_writable().\nOn failure, the callers drop the packet with SKB_DROP_REASON_NOMEM.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nseg6: ensure packet data is writable before modifying SRH and IPv6 DA\n\nadvance_nextseg() modifies the SRH Segments Left field and the IPv6\ndestination address without ensuring the packet data is writable.\nseg6_next_csid_advance_arg() has the same problem when it advances the\nNEXT-C-SID argument in the destination address.\n\nThe skb may be cloned, for example by an AF_PACKET socket receiving on\nthe ingress device. advance_nextseg() and seg6_next_csid_advance_arg()\nthen write into the packet data shared with the clone. A read from that\nsocket can return the modified packet instead of the received one. The\nsimplified path below shows this for advance_nextseg():\n\n__netif_receive_skb_one_core\n  __netif_receive_skb_core\n    deliver_skb               [orig: users=2, cloned=0]\n      packet_rcv\n        skb_clone             clone queued to the AF_PACKET socket\n        consume_skb(orig)     [orig: users=1, cloned=1]\n  ipv6_rcv\n    ip6_rcv_core              skb_share_check: no-op [orig: users=1]\n    [...]\n      input_action_end_core\n        advance_nextseg       writes into the data shared with the clone\n\nCall skb_ensure_writable() in advance_nextseg() and in\nseg6_next_csid_advance_arg() before they modify the packet data.\nskb_ensure_writable() may reallocate skb->head, which invalidates the\npointers into the packet data taken before the call.\nadvance_nextseg() now returns a valid SRH pointer, or NULL if\nskb_ensure_writable() fails.\nseg6_next_csid_advance_arg() takes the pointer to the destination\naddress from the skb after skb_ensure_writable().\nOn failure, the callers drop the packet with SKB_DROP_REASON_NOMEM.","source":"cvelist"}],"published":"2026-10-18T15:48:49.192Z","modified":"2026-11-30T12:18:06.457Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"140f04c33bbcf89440dcaf8bef04918abff5a52d","fixed":"894579fb0eacf0cf088466ca2a86f919dad5da13","status":"affected"},{"type":"git","introduced":"140f04c33bbcf89440dcaf8bef04918abff5a52d","fixed":"e9141fdb7a2ead48cfcd60c681aba91d3014255b","status":"affected"},{"type":"git","introduced":"140f04c33bbcf89440dcaf8bef04918abff5a52d","fixed":"8ae3f4067ba4ae3a15581392f6dac422e3d3def0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.14","status":"unaffected"},{"type":"semver","introduced":"6.18.66","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.10","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/894579fb0eacf0cf088466ca2a86f919dad5da13","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e9141fdb7a2ead48cfcd60c681aba91d3014255b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8ae3f4067ba4ae3a15581392f6dac422e3d3def0","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98802","url":"https://www.cve.org/CVERecord?id=CVE-2026-98802","licence":"CVE Terms of Use","modified":"2026-11-30T12:08:40.640Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98802","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98802","licence":"Public domain","modified":"2026-11-30T12:18:06.457Z"}],"updatedAt":"2026-11-30T12:32:13.627Z","epss":{"score":0.00166,"percentile":0.06079,"date":"2026-12-02T12:00:21.000Z"}}