CVE-2026-143354

Source
https://cve.org/CVERecord?id=CVE-2026-143354
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143354.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143354
Published
2026-12-03T09:22:10Z
Modified
2026-12-03T11:02:04Z
Summary
bpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol
Details

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

bpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol

When an lwt_in prog returns BPF_OK, bpf_input() calls orig_input(), the input handler of the route. This handler is for one IP version and needs a dst of the same family. But BPF_LWT_ENCAP_IP lets the prog push a header of the other IP version and thus change skb->protocol. Then the handler reads and changes a header of the other IP version. The push of an SRH also replaces the dst, because seg6_lookup_nexthop() puts an rt6_info into the skb. Then ip_forward() uses the rt6_info as a struct rtable.

Drop the skb with -EINVAL when skb->protocol changes, as bpf_xmit() does. Drop it also when the family of the dst changes, because skb->protocol does not always show this change. Today no such skb leaves as the prog made it. A prog works as before if it returns BPF_LWT_REROUTE, or if it pushes an SRH on an IPv6 route.

The commit in the first Fixes tag lets a prog change skb->protocol. The commit in the second tag adds the check to bpf_xmit() only.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143354.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
52f278774e796a553be0c869dcaaee6f259ca795
Fixed
35d3016d6b0528bb65cee90b4b34879bdbeabef2
Fixed
6f18041922b04300d751956eb9ac805aff02514b
Fixed
3e08bbd4772e503bb7f7fe6f9cab95ad414dee16
Fixed
d9618a6196953718f7470de5d2e84121bed063f7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143354.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.1.0
Fixed
6.12.120
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.66
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143354.json"