{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "6578171a7ff0c31dc73258f93da7407510abf085"
            },
            {
              "fixed": "71b7211ea168c19fdc8871a886cf6b738a6c9764"
            },
            {
              "fixed": "b6e295b06d6ebe0d5459661b55627fdb9c238fd4"
            },
            {
              "fixed": "280c120c9dac35f7a22589303cc90b8a00e6fde8"
            },
            {
              "fixed": "ee36c9aa44ef300cd651074bd97552b229337f85"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.8.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-143351.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Check the offset in bpf_skb_generic_{push,pop}()\n\nTo make room for len bytes at offset off, bpf_skb_generic_push() moves the\nfirst off bytes and clears len bytes after them. It assumes that the first\noff bytes are in the linear part. But in bpf_skb_adjust_room() off can be\nthe end of the IP header, and this header can be in a frag. Then the\nfunction reads and writes after skb-\u003etail, and can damage skb_shared_info.\n\nbpf_skb_generic_pop() checks off + len, but this u32 sum can wrap to a\nsmall value. bpf_skb_adjust_room() and bpf_skb_change_proto() calculate off\nfrom skb_mac_header_len(). This length is a very large u32 when\nnetwork_header \u003c mac_header. Then the check can pass, and memmove() reads\nand writes far outside the skb.\n\nReturn -ENOMEM from both functions, like the present check, when\noff \u003e skb-\u003elen. Thus the sum cannot wrap. In bpf_skb_generic_push() also\npull the first off bytes into the linear part. Now bpf_skb_adjust_room()\nfails when a prog grows an skb that ends before off. network_header stays\nwrong.",
  "id": "CVE-2026-143351",
  "modified": "2026-12-03T10:45:44.390191131Z",
  "published": "2026-12-03T09:22:08.370Z",
  "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/280c120c9dac35f7a22589303cc90b8a00e6fde8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/71b7211ea168c19fdc8871a886cf6b738a6c9764"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b6e295b06d6ebe0d5459661b55627fdb9c238fd4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ee36c9aa44ef300cd651074bd97552b229337f85"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143351.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143351"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "bpf: Check the offset in bpf_skb_generic_{push,pop}()"
}