{"api_version":"1","generated_at":"2026-12-04T12:43:50+00:00","cve":"CVE-2026-143354","urls":{"html":"https://cve.report/CVE-2026-143354","api":"https://cve.report/api/cve/CVE-2026-143354.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143354","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143354"},"summary":{"title":"bpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol\n\nWhen an lwt_in prog returns BPF_OK, bpf_input() calls orig_input(), the\ninput handler of the route. This handler is for one IP version and needs a\ndst of the same family. But BPF_LWT_ENCAP_IP lets the prog push a header of\nthe other IP version and thus change skb->protocol. Then the handler reads\nand changes a header of the other IP version. The push of an SRH also\nreplaces the dst, because seg6_lookup_nexthop() puts an rt6_info into the\nskb. Then ip_forward() uses the rt6_info as a struct rtable.\n\nDrop the skb with -EINVAL when skb->protocol changes, as bpf_xmit() does.\nDrop it also when the family of the dst changes, because skb->protocol does\nnot always show this change. Today no such skb leaves as the prog made it.\nA prog works as before if it returns BPF_LWT_REROUTE, or if it pushes an\nSRH on an IPv6 route.\n\nThe commit in the first Fixes tag lets a prog change skb->protocol. The\ncommit in the second tag adds the check to bpf_xmit() only.","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/6f18041922b04300d751956eb9ac805aff02514b","name":"https://git.kernel.org/stable/c/6f18041922b04300d751956eb9ac805aff02514b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d9618a6196953718f7470de5d2e84121bed063f7","name":"https://git.kernel.org/stable/c/d9618a6196953718f7470de5d2e84121bed063f7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3e08bbd4772e503bb7f7fe6f9cab95ad414dee16","name":"https://git.kernel.org/stable/c/3e08bbd4772e503bb7f7fe6f9cab95ad414dee16","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/35d3016d6b0528bb65cee90b4b34879bdbeabef2","name":"https://git.kernel.org/stable/c/35d3016d6b0528bb65cee90b4b34879bdbeabef2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143354","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143354","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 52f278774e796a553be0c869dcaaee6f259ca795 35d3016d6b0528bb65cee90b4b34879bdbeabef2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 52f278774e796a553be0c869dcaaee6f259ca795 6f18041922b04300d751956eb9ac805aff02514b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 52f278774e796a553be0c869dcaaee6f259ca795 3e08bbd4772e503bb7f7fe6f9cab95ad414dee16 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 52f278774e796a553be0c869dcaaee6f259ca795 d9618a6196953718f7470de5d2e84121bed063f7 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":"143354","cve":"CVE-2026-143354","epss":"0.002090000","percentile":"0.116430000","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":"35d3016d6b0528bb65cee90b4b34879bdbeabef2","status":"affected","version":"52f278774e796a553be0c869dcaaee6f259ca795","versionType":"git"},{"lessThan":"6f18041922b04300d751956eb9ac805aff02514b","status":"affected","version":"52f278774e796a553be0c869dcaaee6f259ca795","versionType":"git"},{"lessThan":"3e08bbd4772e503bb7f7fe6f9cab95ad414dee16","status":"affected","version":"52f278774e796a553be0c869dcaaee6f259ca795","versionType":"git"},{"lessThan":"d9618a6196953718f7470de5d2e84121bed063f7","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: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol\n\nWhen an lwt_in prog returns BPF_OK, bpf_input() calls orig_input(), the\ninput handler of the route. This handler is for one IP version and needs a\ndst of the same family. But BPF_LWT_ENCAP_IP lets the prog push a header of\nthe other IP version and thus change skb->protocol. Then the handler reads\nand changes a header of the other IP version. The push of an SRH also\nreplaces the dst, because seg6_lookup_nexthop() puts an rt6_info into the\nskb. Then ip_forward() uses the rt6_info as a struct rtable.\n\nDrop the skb with -EINVAL when skb->protocol changes, as bpf_xmit() does.\nDrop it also when the family of the dst changes, because skb->protocol does\nnot always show this change. Today no such skb leaves as the prog made it.\nA prog works as before if it returns BPF_LWT_REROUTE, or if it pushes an\nSRH on an IPv6 route.\n\nThe commit in the first Fixes tag lets a prog change skb->protocol. The\ncommit in the second tag adds the check to bpf_xmit() only."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:22:10.347Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/35d3016d6b0528bb65cee90b4b34879bdbeabef2"},{"url":"https://git.kernel.org/stable/c/6f18041922b04300d751956eb9ac805aff02514b"},{"url":"https://git.kernel.org/stable/c/3e08bbd4772e503bb7f7fe6f9cab95ad414dee16"},{"url":"https://git.kernel.org/stable/c/d9618a6196953718f7470de5d2e84121bed063f7"}],"title":"bpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143354","datePublished":"2026-12-03T09:22:10.347Z","dateReserved":"2026-12-03T03:10:28.368Z","dateUpdated":"2026-12-03T09:22:10.347Z","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":"143354","Ordinal":"1","Title":"bpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the pro","CVE":"CVE-2026-143354","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143354","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol\n\nWhen an lwt_in prog returns BPF_OK, bpf_input() calls orig_input(), the\ninput handler of the route. This handler is for one IP version and needs a\ndst of the same family. But BPF_LWT_ENCAP_IP lets the prog push a header of\nthe other IP version and thus change skb->protocol. Then the handler reads\nand changes a header of the other IP version. The push of an SRH also\nreplaces the dst, because seg6_lookup_nexthop() puts an rt6_info into the\nskb. Then ip_forward() uses the rt6_info as a struct rtable.\n\nDrop the skb with -EINVAL when skb->protocol changes, as bpf_xmit() does.\nDrop it also when the family of the dst changes, because skb->protocol does\nnot always show this change. Today no such skb leaves as the prog made it.\nA prog works as before if it returns BPF_LWT_REROUTE, or if it pushes an\nSRH on an IPv6 route.\n\nThe commit in the first Fixes tag lets a prog change skb->protocol. The\ncommit in the second tag adds the check to bpf_xmit() only.","Type":"Description","Title":"bpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the pro"}]}}}