{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-80612",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-08-26T14:34:25.773Z",
        "datePublished": "2026-08-28T06:48:34.527Z",
        "dateUpdated": "2026-08-28T06:48:34.527Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-28T06:48:34.527Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lwtunnel: Drop skb metadata before LWT encapsulation\n\nskb metadata is meant for passing information between XDP and TC. It lives\nin the skb headroom, immediately before skb->data. LWT programs cannot\naccess the __sk_buff->data_meta pseudo-pointer to metadata.\n\nHowever, LWT encapsulation prepends outer headers, moving skb->data back\nover the headroom where the metadata sits. On an RX-originated (forwarded)\npacket that still carries XDP metadata this goes wrong in two different\nways, depending on the encap type:\n\n1. Non-BPF LWT encaps (mpls, seg6, ioam6 ...) call skb_push()/skb_pull()\n   and silently overwrite the metadata that sits in the headroom.\n\n2) BPF LWT xmit calls bpf_skb_change_head(), which uses skb_data_move().\n   That helper expects metadata immediately before skb->data. But since\n   the IP output path runs LWT xmit before neighbour output has built\n   the outgoing L2 header, for forwarded packets skb->data points at the\n   L3 header while skb_mac_header() still points at the old L2 header.\n   skb_data_move() sees metadata ending at skb_mac_header(), not before\n   skb->data, warns and clears metadata:\n\n  WARNING: CPU: 21 PID: 454557 at include/linux/skbuff.h:4609 skb_data_move+0x47/0x90\n  CPU: 21 UID: 0 PID: 454557 Comm: napi/iconduit-g Tainted: G           O        6.18.21 #1\n  RIP: 0010:skb_data_move+0x47/0x90\n  Call Trace:\n   <IRQ>\n   bpf_skb_change_head+0xe6/0x1a0\n   bpf_prog_...+0x213/0x2e3\n   run_lwt_bpf.isra.0+0x1d3/0x360\n   bpf_xmit+0x46/0xe0\n   lwtunnel_xmit+0xa1/0xf0\n   ip_finish_output2+0x1e7/0x5e0\n   ip_output+0x63/0x100\n   __netif_receive_skb_one_core+0x85/0xa0\n   process_backlog+0x9c/0x150\n   __napi_poll+0x2b/0x190\n   net_rx_action+0x40b/0x7f0\n   handle_softirqs+0xd2/0x270\n   do_softirq+0x3f/0x60\n   </IRQ>\n\nThat is what happens, as for how to fix it - a received packet that\ncarries metadata can reach an encap through any of the three LWT\nredirect modes:\n\n  LWTUNNEL_STATE_INPUT_REDIRECT\n   ip6_rcv_finish\n     dst_input\n       lwtunnel_input\n\n  LWTUNNEL_STATE_OUTPUT_REDIRECT\n   ip6_rcv_finish\n     dst_input\n       ip6_forward\n         ip6_forward_finish\n           dst_output\n             lwtunnel_output\n\n  LWTUNNEL_STATE_XMIT_REDIRECT\n   ip6_rcv_finish\n     dst_input\n       ip6_forward\n         ip6_forward_finish\n           dst_output\n             ip6_output\n               ip6_finish_output\n                 ip6_finish_output2\n                   lwtunnel_xmit\n\nEvery encap funnels through the three LWT dispatch helpers, so drop the\nmetadata there, right before handing the skb to the encap op. This\nsingle chokepoint covers all encap types and all three redirect modes:\n\n  - lwtunnel_input():  seg6, rpl, ila, seg6_local\n  - lwtunnel_output(): ioam6\n  - lwtunnel_xmit():   mpls, LWT BPF xmit\n\nAlternatively, we could clear the metadata right after TC ingress hook.\nThat would require a compromise, however. Metadata would become\ninaccessible from TC egress (in setups where it actually reaches the\nhook it tact, that is without any L2 tunnels on path)."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/core/lwtunnel.c"
                    ],
                    "versions": [
                        {
                            "version": "8989d328dfe7c7a3b9f4b9f0ef60006d277f81cc",
                            "lessThan": "19eec11f3ab5dd29ba58f5f209c24e946c95ef12",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8989d328dfe7c7a3b9f4b9f0ef60006d277f81cc",
                            "lessThan": "c00320b0e355c4bf0ae4743a53b4180fea237546",
                            "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/lwtunnel.c"
                    ],
                    "versions": [
                        {
                            "version": "6.19",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.19",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.1.5",
                            "lessThanOrEqual": "7.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.2",
                            "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": "6.19",
                                    "versionEndExcluding": "7.1.5"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.19",
                                    "versionEndExcluding": "7.2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/19eec11f3ab5dd29ba58f5f209c24e946c95ef12"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c00320b0e355c4bf0ae4743a53b4180fea237546"
                }
            ],
            "title": "net: lwtunnel: Drop skb metadata before LWT encapsulation",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}