{"id":"CVE-2026-143165","summary":"net: dst_metadata: fix memcmp overread in skb_metadata_dst_cmp","details":"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.","modified":"2026-12-03T11:01:31.106848012Z","published":"2026-12-03T09:20:03.041Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143165.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5248f9d6aaa249895bd6b77e9543bc44ed8d14e0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/74a7db839308dd7d1c3f72dd1e3299784df3affb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b44e03bc44547970d86fad298e4fb78ee52bbc06"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c65956645893984760cec2890966cc5693844a0a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d8eed0cf8041923d811c09f35eca4e973a3eb6ce"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f007c10d88e145804e6442ec3b550415b59f28c4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143165.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143165"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0"},{"fixed":"d8eed0cf8041923d811c09f35eca4e973a3eb6ce"},{"fixed":"5248f9d6aaa249895bd6b77e9543bc44ed8d14e0"},{"fixed":"c65956645893984760cec2890966cc5693844a0a"},{"fixed":"b44e03bc44547970d86fad298e4fb78ee52bbc06"},{"fixed":"f007c10d88e145804e6442ec3b550415b59f28c4"},{"fixed":"74a7db839308dd7d1c3f72dd1e3299784df3affb"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143165.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.13.0"},{"fixed":"5.10.276"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.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-143165.json"}}],"schema_version":"1.9.2"}