{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "fbbc5bc2ab8c525f4aba4346249e3adc52d8e2c0"
            },
            {
              "fixed": "b94686f8c339f84ec128eb7c7939cdb546464964"
            },
            {
              "fixed": "13424e35d033fb49b0d0f832eb668356ba9b5b27"
            },
            {
              "fixed": "7c9fcfda8679ef648e07ba27da10c8439bebc065"
            },
            {
              "fixed": "77593d4d83780deae9a3cc788ca88404f2949e12"
            },
            {
              "fixed": "45bcc58d576705d2c001332766e10313f1c55bad"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.13.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-143357.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't look for the SRH again in the End.BPF helpers\n\nA packet can have two SRHs. Thus input_action_end_bpf() uses\nIP6_FH_F_SKIP_RH to skip routing headers with segments_left 0. The helpers\nbpf_lwt_seg6_store_bytes() and bpf_lwt_seg6_adjust_srh() can reallocate the\nhead of the skb. Thus they look for the SRH again, but without this flag.\n\n  +------------------------+ \u003c- the helpers: srh_state-\u003esrh\n  | SRH 1, segments_left 0 |\n  +------------------------+ \u003c- input_action_end_bpf(): srh_state-\u003esrh\n  | SRH 2                  |    and srh_state-\u003ehdrlen\n  +------------------------+\n\nThen the helpers check offset against the wrong limits. If a helper changes\nTLVs, seg6_bpf_has_valid_srh() writes the length of SRH 2 to SRH 1.\n\nNeither helper changes the offset of the SRH from skb-\u003edata. Calculate the\nnew address from this offset. To add IP6_FH_F_SKIP_RH is not sufficient,\nbecause advance_nextseg() can set segments_left of SRH 2 to 0. The helper\nbpf_lwt_seg6_action() can change the headers and still looks for the SRH.",
  "id": "CVE-2026-143357",
  "modified": "2026-12-03T10:46:05.470973156Z",
  "published": "2026-12-03T09:22:12.267Z",
  "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/13424e35d033fb49b0d0f832eb668356ba9b5b27"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/45bcc58d576705d2c001332766e10313f1c55bad"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/77593d4d83780deae9a3cc788ca88404f2949e12"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7c9fcfda8679ef648e07ba27da10c8439bebc065"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b94686f8c339f84ec128eb7c7939cdb546464964"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143357.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143357"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "bpf: Don't look for the SRH again in the End.BPF helpers"
}