{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "52f278774e796a553be0c869dcaaee6f259ca795"
            },
            {
              "fixed": "f8faab33bf6fada08fea4941d8781a7205345c99"
            },
            {
              "fixed": "5f8aed23c1b0c839d5f428844b25aafab09b667e"
            },
            {
              "fixed": "f1d695ec88d088ce107a3a0b588631e3c02c4184"
            },
            {
              "fixed": "b3ad42f6183286ab376389a5d26edf7ee3bdba27"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.1.0"
            },
            {
              "fixed": "6.12.120"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143355.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Reset skb-\u003ecb after an lwt prog pushes an IP header\n\nIPCB(skb)-\u003eopt holds the offsets from the network header to the IPv4\noptions. But bpf_lwt_push_ip_encap() moves the network header and does not\nchange IPCB(skb). Then ip_forward_options() and __ip_options_echo() use the\nold offsets on the pushed header. Thus the kernel corrupts the skb and the\nstack. If the family changes, the kernel also reads IP6CB(skb) as\nIPCB(skb), or the reverse. With CONFIG_IPV6_MIP6, it reads IPSKB_FORWARDED\nas frag_max_size and adds a needless fragment header.\n\nReset skb-\u003ecb after the prog. bpf_lwt_push_ip_encap() cannot do it, because\nbpf_prog_run_save_cb() can restore skb-\u003ecb. For IPv4 in IPv4, clear\nIPCB(skb)-\u003eopt as ip_tunnel_xmit() does. If the family changes, clear the\ncb of the new family but keep iif, because ip6_forward() gets the input\ndevice from it. Behind a VRF, skb-\u003eskb_iif is the VRF device and cannot\nreplace iif. Do nothing for IPv6 in IPv6, as in seg6_do_srh_encap().\n\nDo the reset in bpf_input() only after a push. Without a push,\nip_forward_options() needs the offsets. Do it in bpf_xmit() before each\nreroute, because an lwt_xmit prog can also change the options. Thus after a\nreroute without a push, ip_options_fragment() leaves the options in all\nfragments, and ICMP errors echo none. After BPF_OK or BPF_REDIRECT the skb\ngoes to a device, thus bpf_xmit() does no reset. The inner IPv4 checksum\ncan still be wrong after ip_rcv_options() changes an option.",
  "id": "CVE-2026-143355",
  "modified": "2026-12-03T10:45:54.959219889Z",
  "published": "2026-12-03T09:22:10.984Z",
  "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/5f8aed23c1b0c839d5f428844b25aafab09b667e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b3ad42f6183286ab376389a5d26edf7ee3bdba27"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f1d695ec88d088ce107a3a0b588631e3c02c4184"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f8faab33bf6fada08fea4941d8781a7205345c99"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143355.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143355"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "bpf: Reset skb-\u003ecb after an lwt prog pushes an IP header"
}