{"id":"CVE-2026-143357","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T10:18:24.817","lastModified":"2026-12-03T10:18:24.817","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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  +------------------------+ <- the helpers: srh_state->srh\n  | SRH 1, segments_left 0 |\n  +------------------------+ <- input_action_end_bpf(): srh_state->srh\n  | SRH 2                  |    and srh_state->hdrlen\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->data. 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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["net/core/filter.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"fbbc5bc2ab8c525f4aba4346249e3adc52d8e2c0","lessThan":"b94686f8c339f84ec128eb7c7939cdb546464964","versionType":"git","status":"affected"},{"version":"fbbc5bc2ab8c525f4aba4346249e3adc52d8e2c0","lessThan":"13424e35d033fb49b0d0f832eb668356ba9b5b27","versionType":"git","status":"affected"},{"version":"fbbc5bc2ab8c525f4aba4346249e3adc52d8e2c0","lessThan":"7c9fcfda8679ef648e07ba27da10c8439bebc065","versionType":"git","status":"affected"},{"version":"fbbc5bc2ab8c525f4aba4346249e3adc52d8e2c0","lessThan":"77593d4d83780deae9a3cc788ca88404f2949e12","versionType":"git","status":"affected"},{"version":"fbbc5bc2ab8c525f4aba4346249e3adc52d8e2c0","lessThan":"45bcc58d576705d2c001332766e10313f1c55bad","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["net/core/filter.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"5.13","status":"affected"},{"version":"0","lessThan":"5.13","versionType":"semver","status":"unaffected"},{"version":"5.15.227","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc2","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/13424e35d033fb49b0d0f832eb668356ba9b5b27","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/45bcc58d576705d2c001332766e10313f1c55bad","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/77593d4d83780deae9a3cc788ca88404f2949e12","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/7c9fcfda8679ef648e07ba27da10c8439bebc065","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/b94686f8c339f84ec128eb7c7939cdb546464964","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}