{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-143165",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.356Z",
        "datePublished": "2026-12-03T09:20:03.041Z",
        "dateUpdated": "2026-12-04T03:30:29.577Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-04T03:30:29.577Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dst_metadata: fix memcmp overread in skb_metadata_dst_cmp\n\nCommit 3fcece12bc1b6 (\"net: store port/representator id in\nmetadata_dst\") dropped the options_len equality check when converting\nskb_metadata_dst_cmp() to a type switch, so the memcmp length is taken\nfrom skb a alone.  When skb b carries fewer options than a, the\ncomparison reads past b's allocation.\n\nHit in practice with Cilium geneve GRO aggregation, comparing an skb\ncarrying 12 bytes of tunnel options against one carrying none:\n\n  memcmp: detected buffer overflow: 108 byte read of buffer size 96\n  WARNING: CPU: 0 PID: 15 at lib/string_helpers.c:1036 __fortify_report\n   __fortify_panic+0x9/0x10\n   skb_metadata_dst_cmp+0x11b/0x120\n   dev_gro_receive+0x303/0x620\n   gro_cell_poll+0x67/0xa0\n\nRestore the check: unequal options_len means different metadata and no\naggregation; the memcmp only runs when both sides carry the same\noptions length."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                        "baseScore": 7.5,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:N - A remote Geneve peer puts opt_len in the UDP payload; geneve_udp_encap_recv() passes it to geneve_rx(), which sets tun_info.options_len through udp_tun_rx_dst() and ip_tunnel_info_opts_set() and calls skb_dst_set(). gro_cells_receive() then reaches skb_metadata_dst_cmp() via gro_cell_poll(), napi_gro_receive(), dev_gro_receive(), and gro_list_prepare().\nAC:L - The sender chooses both opt_len values, the inner Ethernet header, and the outer 5-tuple so skb_get_hash_raw() matches and the longer-options skb stays GRO_HELD on the geneve gro_cells list until the shorter one is compared. gro_list_prepare() then always enters the memcmp; no race or slab layout is involved.\nPR:N - geneve_udp_encap_recv() is the UDP encap receive callback and performs no capable() or credential check. On a collect_md socket, geneve_lookup_skb() matches the external device using a zero VNI and a zero source address, so any host that can deliver the datagram is accepted.\nUI:N - The attacker sends both Geneve datagrams. skb_metadata_dst_cmp() runs in gro_cell_poll() softirq as those packets are received, with no mount or other action by a local user.\nS:U - The memcmp length check and the BUG() from __fortify_panic() in skb_metadata_dst_cmp() stay in the host kernel that owns the geneve netdev. They do not cross a guest, IOMMU, or sandbox boundary.\nC:N - The byte that differs is tun_info.options_len, stored by ip_tunnel_info_opts_set() inside the allocated ip_tunnel_info and before options[]. Unfortified memcmp() returns at that in-object mismatch, and the fortified wrapper calls __fortify_panic() before __underlying_memcmp(), so the excess bytes are not copied out.\nI:N - skb_metadata_dst_cmp() only feeds the memcmp result to gro_list_prepare() to clear same_flow. It does not write the metadata_dst, and the options_len mismatch makes the result unequal, so the two skbs are not spliced.\nA:H - On CONFIG_FORTIFY_SOURCE, memcmp() in skb_metadata_dst_cmp() sees the smaller tun_info's __struct_size() below sizeof(tun_info)+options_len and __fortify_panic() WARN()s then BUG()s in gro_cell_poll(), matching the reported 108-byte read of a 96-byte buffer. That oops is a kernel crash."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "include/net/dst_metadata.h"
                    ],
                    "versions": [
                        {
                            "version": "3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0",
                            "lessThan": "d8eed0cf8041923d811c09f35eca4e973a3eb6ce",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0",
                            "lessThan": "5248f9d6aaa249895bd6b77e9543bc44ed8d14e0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0",
                            "lessThan": "c65956645893984760cec2890966cc5693844a0a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0",
                            "lessThan": "b44e03bc44547970d86fad298e4fb78ee52bbc06",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0",
                            "lessThan": "f007c10d88e145804e6442ec3b550415b59f28c4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0",
                            "lessThan": "74a7db839308dd7d1c3f72dd1e3299784df3affb",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "include/net/dst_metadata.h"
                    ],
                    "versions": [
                        {
                            "version": "4.13",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.13",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.276",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.227",
                            "lessThanOrEqual": "5.15.*",
                            "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-rc3",
                            "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": "4.13",
                                    "versionEndExcluding": "5.10.276"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "5.15.227"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.12.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "7.4-rc3"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/d8eed0cf8041923d811c09f35eca4e973a3eb6ce"
                },
                {
                    "url": "https://git.kernel.org/stable/c/5248f9d6aaa249895bd6b77e9543bc44ed8d14e0"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c65956645893984760cec2890966cc5693844a0a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b44e03bc44547970d86fad298e4fb78ee52bbc06"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f007c10d88e145804e6442ec3b550415b59f28c4"
                },
                {
                    "url": "https://git.kernel.org/stable/c/74a7db839308dd7d1c3f72dd1e3299784df3affb"
                }
            ],
            "title": "net: dst_metadata: fix memcmp overread in skb_metadata_dst_cmp",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}