{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-143354",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.368Z",
        "datePublished": "2026-12-03T09:22:10.347Z",
        "dateUpdated": "2026-12-03T09:22:10.347Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-03T09:22:10.347Z"
            },
            "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."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/core/lwt_bpf.c"
                    ],
                    "versions": [
                        {
                            "version": "52f278774e796a553be0c869dcaaee6f259ca795",
                            "lessThan": "35d3016d6b0528bb65cee90b4b34879bdbeabef2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "52f278774e796a553be0c869dcaaee6f259ca795",
                            "lessThan": "6f18041922b04300d751956eb9ac805aff02514b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "52f278774e796a553be0c869dcaaee6f259ca795",
                            "lessThan": "3e08bbd4772e503bb7f7fe6f9cab95ad414dee16",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "52f278774e796a553be0c869dcaaee6f259ca795",
                            "lessThan": "d9618a6196953718f7470de5d2e84121bed063f7",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/core/lwt_bpf.c"
                    ],
                    "versions": [
                        {
                            "version": "5.1",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.1",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.120",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.7",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc2",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.1",
                                    "versionEndExcluding": "6.12.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.1",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.1",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.1",
                                    "versionEndExcluding": "7.4-rc2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
            }
        }
    }
}