{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "fe94cc290f535709d3c5ebd1e472dfd0aec7ee79"
            },
            {
              "fixed": "566ae93254cbaa43bf9bc21dbd4cd779c76ef400"
            },
            {
              "fixed": "8f8283320db7bbd21adc9612c8c296c462ce0b40"
            },
            {
              "fixed": "5679431a57d75040a41292666fb4f1bd7187cba8"
            },
            {
              "fixed": "50791fe37754db0ccfcdf8391ae7d5b8c69a2734"
            },
            {
              "fixed": "cd03b01e40a650d61f5fbadd48927d82037a5050"
            },
            {
              "fixed": "0fcb3f11a93d740e7f9ae1aeb48fe4d25838be18"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.18.0"
            },
            {
              "fixed": "5.10.276"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.227"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.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-143356.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Move the MAC header in bpf_lwt_seg6_adjust_srh()\n\nbpf_skb_net_hdr_push() and bpf_skb_net_hdr_pop() change skb-\u003edata and\nskb-\u003emac_header by len. That is correct in a tc prog, where skb-\u003edata is\nthe MAC header. But bpf_lwt_seg6_adjust_srh() calls them in an End.BPF\nprog, where skb-\u003edata is the network header. The MAC header does not move:\n\n  before push  |       free       | MAC header   | IPv6 | SRH | payload\n               ^ head             ^ mac_header   ^ data\n  today        |       free       | MAC h| IPv6 | SRH   + len | payload\n               ^ head     ^ mac_header   ^ data\n  this patch   |   free   | MAC header   | IPv6 | SRH   + len | payload\n               ^ head     ^ mac_header   ^ data\n\nUsers of skb_mac_header() get incorrect bytes until __dev_queue_xmit() sets\nskb-\u003emac_header again. skb_cow_head() reserves only len bytes. Thus the\n16-bit offset skb-\u003emac_header can wrap. A push also changes the \"not set\"\nvalue. In both cases skb_mac_header() points after the skb.\n\nMove the MAC header too. Pass len + skb-\u003emac_len to skb_cow_head(). Keep\nthe \"not set\" value. The second Fixes tag is for this case. Since that\ncommit an End.BPF prog can get an skb with skb-\u003emac_header not set.",
  "id": "CVE-2026-143356",
  "modified": "2026-12-03T10:45:35.764641719Z",
  "published": "2026-12-03T09:22:11.620Z",
  "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/0fcb3f11a93d740e7f9ae1aeb48fe4d25838be18"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/50791fe37754db0ccfcdf8391ae7d5b8c69a2734"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/566ae93254cbaa43bf9bc21dbd4cd779c76ef400"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5679431a57d75040a41292666fb4f1bd7187cba8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8f8283320db7bbd21adc9612c8c296c462ce0b40"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cd03b01e40a650d61f5fbadd48927d82037a5050"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143356.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143356"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh()"
}