{"api_version":"1","generated_at":"2026-12-04T12:43:49+00:00","cve":"CVE-2026-143355","urls":{"html":"https://cve.report/CVE-2026-143355","api":"https://cve.report/api/cve/CVE-2026-143355.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143355","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143355"},"summary":{"title":"bpf: Reset skb->cb after an lwt prog pushes an IP header","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Reset skb->cb after an lwt prog pushes an IP header\n\nIPCB(skb)->opt holds the offsets from the network header to the IPv4\noptions. But bpf_lwt_push_ip_encap() moves the network header and does not\nchange IPCB(skb). Then ip_forward_options() and __ip_options_echo() use the\nold offsets on the pushed header. Thus the kernel corrupts the skb and the\nstack. If the family changes, the kernel also reads IP6CB(skb) as\nIPCB(skb), or the reverse. With CONFIG_IPV6_MIP6, it reads IPSKB_FORWARDED\nas frag_max_size and adds a needless fragment header.\n\nReset skb->cb after the prog. bpf_lwt_push_ip_encap() cannot do it, because\nbpf_prog_run_save_cb() can restore skb->cb. For IPv4 in IPv4, clear\nIPCB(skb)->opt as ip_tunnel_xmit() does. If the family changes, clear the\ncb of the new family but keep iif, because ip6_forward() gets the input\ndevice from it. Behind a VRF, skb->skb_iif is the VRF device and cannot\nreplace iif. Do nothing for IPv6 in IPv6, as in seg6_do_srh_encap().\n\nDo the reset in bpf_input() only after a push. Without a push,\nip_forward_options() needs the offsets. Do it in bpf_xmit() before each\nreroute, because an lwt_xmit prog can also change the options. Thus after a\nreroute without a push, ip_options_fragment() leaves the options in all\nfragments, and ICMP errors echo none. After BPF_OK or BPF_REDIRECT the skb\ngoes to a device, thus bpf_xmit() does no reset. The inner IPv4 checksum\ncan still be wrong after ip_rcv_options() changes an option.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:18:24","updated_at":"2026-12-03 10:18:24"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/f1d695ec88d088ce107a3a0b588631e3c02c4184","name":"https://git.kernel.org/stable/c/f1d695ec88d088ce107a3a0b588631e3c02c4184","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f8faab33bf6fada08fea4941d8781a7205345c99","name":"https://git.kernel.org/stable/c/f8faab33bf6fada08fea4941d8781a7205345c99","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5f8aed23c1b0c839d5f428844b25aafab09b667e","name":"https://git.kernel.org/stable/c/5f8aed23c1b0c839d5f428844b25aafab09b667e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b3ad42f6183286ab376389a5d26edf7ee3bdba27","name":"https://git.kernel.org/stable/c/b3ad42f6183286ab376389a5d26edf7ee3bdba27","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143355","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143355","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 52f278774e796a553be0c869dcaaee6f259ca795 f8faab33bf6fada08fea4941d8781a7205345c99 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 52f278774e796a553be0c869dcaaee6f259ca795 5f8aed23c1b0c839d5f428844b25aafab09b667e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 52f278774e796a553be0c869dcaaee6f259ca795 f1d695ec88d088ce107a3a0b588631e3c02c4184 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 52f278774e796a553be0c869dcaaee6f259ca795 b3ad42f6183286ab376389a5d26edf7ee3bdba27 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.1","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.1 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"143355","cve":"CVE-2026-143355","epss":"0.002090000","percentile":"0.116460000","score_date":"2026-12-03","updated_at":"2026-12-04 00:14:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/core/lwt_bpf.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"f8faab33bf6fada08fea4941d8781a7205345c99","status":"affected","version":"52f278774e796a553be0c869dcaaee6f259ca795","versionType":"git"},{"lessThan":"5f8aed23c1b0c839d5f428844b25aafab09b667e","status":"affected","version":"52f278774e796a553be0c869dcaaee6f259ca795","versionType":"git"},{"lessThan":"f1d695ec88d088ce107a3a0b588631e3c02c4184","status":"affected","version":"52f278774e796a553be0c869dcaaee6f259ca795","versionType":"git"},{"lessThan":"b3ad42f6183286ab376389a5d26edf7ee3bdba27","status":"affected","version":"52f278774e796a553be0c869dcaaee6f259ca795","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/core/lwt_bpf.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.1"},{"lessThan":"5.1","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"5.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"5.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"5.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"5.1","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Reset skb->cb after an lwt prog pushes an IP header\n\nIPCB(skb)->opt holds the offsets from the network header to the IPv4\noptions. But bpf_lwt_push_ip_encap() moves the network header and does not\nchange IPCB(skb). Then ip_forward_options() and __ip_options_echo() use the\nold offsets on the pushed header. Thus the kernel corrupts the skb and the\nstack. If the family changes, the kernel also reads IP6CB(skb) as\nIPCB(skb), or the reverse. With CONFIG_IPV6_MIP6, it reads IPSKB_FORWARDED\nas frag_max_size and adds a needless fragment header.\n\nReset skb->cb after the prog. bpf_lwt_push_ip_encap() cannot do it, because\nbpf_prog_run_save_cb() can restore skb->cb. For IPv4 in IPv4, clear\nIPCB(skb)->opt as ip_tunnel_xmit() does. If the family changes, clear the\ncb of the new family but keep iif, because ip6_forward() gets the input\ndevice from it. Behind a VRF, skb->skb_iif is the VRF device and cannot\nreplace iif. Do nothing for IPv6 in IPv6, as in seg6_do_srh_encap().\n\nDo the reset in bpf_input() only after a push. Without a push,\nip_forward_options() needs the offsets. Do it in bpf_xmit() before each\nreroute, because an lwt_xmit prog can also change the options. Thus after a\nreroute without a push, ip_options_fragment() leaves the options in all\nfragments, and ICMP errors echo none. After BPF_OK or BPF_REDIRECT the skb\ngoes to a device, thus bpf_xmit() does no reset. The inner IPv4 checksum\ncan still be wrong after ip_rcv_options() changes an option."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:22:10.984Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/f8faab33bf6fada08fea4941d8781a7205345c99"},{"url":"https://git.kernel.org/stable/c/5f8aed23c1b0c839d5f428844b25aafab09b667e"},{"url":"https://git.kernel.org/stable/c/f1d695ec88d088ce107a3a0b588631e3c02c4184"},{"url":"https://git.kernel.org/stable/c/b3ad42f6183286ab376389a5d26edf7ee3bdba27"}],"title":"bpf: Reset skb->cb after an lwt prog pushes an IP header","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143355","datePublished":"2026-12-03T09:22:10.984Z","dateReserved":"2026-12-03T03:10:28.368Z","dateUpdated":"2026-12-03T09:22:10.984Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:18:24","lastModifiedDate":"2026-12-03 10:18:24","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143355","Ordinal":"1","Title":"bpf: Reset skb->cb after an lwt prog pushes an IP header","CVE":"CVE-2026-143355","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143355","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Reset skb->cb after an lwt prog pushes an IP header\n\nIPCB(skb)->opt holds the offsets from the network header to the IPv4\noptions. But bpf_lwt_push_ip_encap() moves the network header and does not\nchange IPCB(skb). Then ip_forward_options() and __ip_options_echo() use the\nold offsets on the pushed header. Thus the kernel corrupts the skb and the\nstack. If the family changes, the kernel also reads IP6CB(skb) as\nIPCB(skb), or the reverse. With CONFIG_IPV6_MIP6, it reads IPSKB_FORWARDED\nas frag_max_size and adds a needless fragment header.\n\nReset skb->cb after the prog. bpf_lwt_push_ip_encap() cannot do it, because\nbpf_prog_run_save_cb() can restore skb->cb. For IPv4 in IPv4, clear\nIPCB(skb)->opt as ip_tunnel_xmit() does. If the family changes, clear the\ncb of the new family but keep iif, because ip6_forward() gets the input\ndevice from it. Behind a VRF, skb->skb_iif is the VRF device and cannot\nreplace iif. Do nothing for IPv6 in IPv6, as in seg6_do_srh_encap().\n\nDo the reset in bpf_input() only after a push. Without a push,\nip_forward_options() needs the offsets. Do it in bpf_xmit() before each\nreroute, because an lwt_xmit prog can also change the options. Thus after a\nreroute without a push, ip_options_fragment() leaves the options in all\nfragments, and ICMP errors echo none. After BPF_OK or BPF_REDIRECT the skb\ngoes to a device, thus bpf_xmit() does no reset. The inner IPv4 checksum\ncan still be wrong after ip_rcv_options() changes an option.","Type":"Description","Title":"bpf: Reset skb->cb after an lwt prog pushes an IP header"}]}}}