Security mailing lists by PureSourceCode

CVE-2026-143357

not scored yet

bpf: Don't look for the SRH again in the End.BPF helpers

In the Linux kernel, the following vulnerability has been resolved:

bpf: Don't look for the SRH again in the End.BPF helpers

A packet can have two SRHs. Thus input_action_end_bpf() uses
IP6_FH_F_SKIP_RH to skip routing headers with segments_left 0. The helpers
bpf_lwt_seg6_store_bytes() and bpf_lwt_seg6_adjust_srh() can reallocate the
head of the skb. Thus they look for the SRH again, but without this flag.

+------------------------+ <- the helpers: srh_state->srh
| SRH 1, segments_left 0 |
+------------------------+ <- input_action_end_bpf(): srh_state->srh
| SRH 2 | and srh_state->hdrlen
+------------------------+

Then the helpers check offset against the wrong limits. If a helper changes
TLVs, seg6_bpf_has_valid_srh() writes the length of SRH 2 to SRH 1.

Neither helper changes the offset of the SRH from skb->data. Calculate the
new address from this offset. To add IP6_FH_F_SKIP_RH is not sufficient,
because advance_nextseg() can set segments_left of SRH 2 to 0. The helper
bpf_lwt_seg6_action() can change the headers and still looks for the SRH.

Published
3 Dec 2026
Last modified
3 Dec 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= fbbc5bc2ab8c525f4aba4346249e3adc52d8e2c0, < b94686f8c339f84ec128eb7c7939cdb546464964; >= fbbc5bc2ab8c525f4aba4346249e3adc52d8e2c0, < 13424e35d033fb49b0d0f832eb668356ba9b5b27; >= fbbc5bc2ab8c525f4aba4346249e3adc52d8e2c0, < 7c9fcfda8679ef648e07ba27da10c8439bebc065; >= fbbc5bc2ab8c525f4aba4346249e3adc52d8e2c0, < 77593d4d83780deae9a3cc788ca88404f2949e12; >= fbbc5bc2ab8c525f4aba4346249e3adc52d8e2c0, < 45bcc58d576705d2c001332766e10313f1c55bad b94686f8c339f84ec128eb7c7939cdb546464964, 13424e35d033fb49b0d0f832eb668356ba9b5b27, 7c9fcfda8679ef648e07ba27da10c8439bebc065, 77593d4d83780deae9a3cc788ca88404f2949e12, 45bcc58d576705d2c001332766e10313f1c55bad
CVE List Linux Linux = 5.13

References

History

  • 3 Dec 2026 11:07 UTC · NVD: first stored (published 3 Dec 2026)
  • 3 Dec 2026 10:08 UTC · CVE List: first stored (published 3 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.