{"id":"CVE-2026-139314","summary":"bpf: Update the SRH state if End.B6 fails late","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Update the SRH state if End.B6 fails late\n\nFor SEG6_LOCAL_ACTION_END_B6 and END_B6_ENCAP bpf_lwt_seg6_action() looks\nfor the SRH again only if bpf_push_seg6_encap() has succeeded. That\nfunction pushes the new header, for which the head of the skb is\nreallocated if it has not got the room, and then looks up the route to the\nfirst segment. If there is none, it returns an error, and the pointer to\nthe SRH in seg6_bpf_srh_states still points into the old head, which has\nbeen freed.\n\nThe program goes on behind the error. bpf_lwt_seg6_store_bytes() and\nbpf_lwt_seg6_adjust_srh() read the SRH through that pointer.\n\nLook for the SRH whatever bpf_push_seg6_encap() says.","modified":"2026-11-30T15:01:51.267101309Z","published":"2026-11-30T13:33:36.606Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139314.json"},"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/427e751a231aa781441d51c42e716905ee348099"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9256c9798f719fa8f479934a187e70958cf969ca"},{"type":"WEB","url":"https://git.kernel.org/stable/c/926cf2d4e276db10f03f22b40261c3f2b1b37e43"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a802d0e97c0be45665d5cdf5f1e611d617fd5ae2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c31cecf010f7f3cc6e0d055d0360c9b30153fc25"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ca05c6062c9fcb7164c923d5d0d3a71c9ede9aff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d524da1abe096d028ca8d005e93d61566d5caa63"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f59018897a06ed0fd155b9a64572f58bc9357748"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139314.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139314"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"486cdf21583e5b1fad488a3e4f0a5242a31c0ffa"},{"fixed":"c31cecf010f7f3cc6e0d055d0360c9b30153fc25"},{"fixed":"9256c9798f719fa8f479934a187e70958cf969ca"},{"fixed":"ca05c6062c9fcb7164c923d5d0d3a71c9ede9aff"},{"fixed":"926cf2d4e276db10f03f22b40261c3f2b1b37e43"},{"fixed":"d524da1abe096d028ca8d005e93d61566d5caa63"},{"fixed":"f59018897a06ed0fd155b9a64572f58bc9357748"},{"fixed":"a802d0e97c0be45665d5cdf5f1e611d617fd5ae2"},{"fixed":"427e751a231aa781441d51c42e716905ee348099"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139314.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.19.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139314.json"}}],"schema_version":"1.9.2"}