{"id":"CVE-2026-143358","state":"PUBLISHED","title":"bpf: Set a dst for test runs of lwt_in progs","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Set a dst for test runs of lwt_in progs\n\nWhen an lwt prog runs on a route, the skb always has a dst. To push an SRH,\nbpf_lwt_push_encap() reads the device from this dst. But\nbpf_prog_test_run_skb() sets a dst for lwt_xmit progs only. Thus the helper\ndereferences a NULL dst in a test run of an lwt_in prog.\n\nSet the same dst, ip6_null_entry, for lwt_in progs. When IPv6 is disabled\nor not built, their test run now fails with -EOPNOTSUPP too. An lwt_out\nprog cannot call this helper.","publishedAt":"2026-12-03T09:22:12.895Z","updatedAt":"2026-12-03T09:22:12.895Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","status":"affected","lessThan":"add5f647f128182fcce2a515de25724031ea5cf4","versionType":"git"},{"version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","status":"affected","lessThan":"c1ca06e48e8848743fd876a1dc6b0f57bc76d23e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bpf/test_run.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.18","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bpf/test_run.c"]}],"references":["https://git.kernel.org/stable/c/add5f647f128182fcce2a515de25724031ea5cf4","https://git.kernel.org/stable/c/c1ca06e48e8848743fd876a1dc6b0f57bc76d23e"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143358.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143358","state":"PUBLISHED","datePublished":"2026-12-03T09:22:12.895Z","dateUpdated":"2026-12-03T09:22:12.895Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.371Z"},"containers":{"cna":{"title":"bpf: Set a dst for test runs of lwt_in progs","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Set a dst for test runs of lwt_in progs\n\nWhen an lwt prog runs on a route, the skb always has a dst. To push an SRH,\nbpf_lwt_push_encap() reads the device from this dst. But\nbpf_prog_test_run_skb() sets a dst for lwt_xmit progs only. Thus the helper\ndereferences a NULL dst in a test run of an lwt_in prog.\n\nSet the same dst, ip6_null_entry, for lwt_in progs. When IPv6 is disabled\nor not built, their test run now fails with -EOPNOTSUPP too. An lwt_out\nprog cannot call this helper."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","status":"affected","lessThan":"add5f647f128182fcce2a515de25724031ea5cf4","versionType":"git"},{"version":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79","status":"affected","lessThan":"c1ca06e48e8848743fd876a1dc6b0f57bc76d23e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bpf/test_run.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.18","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bpf/test_run.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/add5f647f128182fcce2a515de25724031ea5cf4"},{"url":"https://git.kernel.org/stable/c/c1ca06e48e8848743fd876a1dc6b0f57bc76d23e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:22:12.895Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}