{"id":"CVE-2026-143165","state":"PUBLISHED","title":"net: dst_metadata: fix memcmp overread in skb_metadata_dst_cmp","description":"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.","publishedAt":"2026-12-03T09:20:03.041Z","updatedAt":"2026-12-03T09:20:03.041Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0","status":"affected","lessThan":"d8eed0cf8041923d811c09f35eca4e973a3eb6ce","versionType":"git"},{"version":"3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0","status":"affected","lessThan":"5248f9d6aaa249895bd6b77e9543bc44ed8d14e0","versionType":"git"},{"version":"3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0","status":"affected","lessThan":"c65956645893984760cec2890966cc5693844a0a","versionType":"git"},{"version":"3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0","status":"affected","lessThan":"b44e03bc44547970d86fad298e4fb78ee52bbc06","versionType":"git"},{"version":"3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0","status":"affected","lessThan":"f007c10d88e145804e6442ec3b550415b59f28c4","versionType":"git"},{"version":"3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0","status":"affected","lessThan":"74a7db839308dd7d1c3f72dd1e3299784df3affb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/dst_metadata.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.13","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/dst_metadata.h"]}],"references":["https://git.kernel.org/stable/c/d8eed0cf8041923d811c09f35eca4e973a3eb6ce","https://git.kernel.org/stable/c/5248f9d6aaa249895bd6b77e9543bc44ed8d14e0","https://git.kernel.org/stable/c/c65956645893984760cec2890966cc5693844a0a","https://git.kernel.org/stable/c/b44e03bc44547970d86fad298e4fb78ee52bbc06","https://git.kernel.org/stable/c/f007c10d88e145804e6442ec3b550415b59f28c4","https://git.kernel.org/stable/c/74a7db839308dd7d1c3f72dd1e3299784df3affb"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143165.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143165","state":"PUBLISHED","datePublished":"2026-12-03T09:20:03.041Z","dateUpdated":"2026-12-03T09:20:03.041Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.356Z"},"containers":{"cna":{"title":"net: dst_metadata: fix memcmp overread in skb_metadata_dst_cmp","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0","status":"affected","lessThan":"d8eed0cf8041923d811c09f35eca4e973a3eb6ce","versionType":"git"},{"version":"3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0","status":"affected","lessThan":"5248f9d6aaa249895bd6b77e9543bc44ed8d14e0","versionType":"git"},{"version":"3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0","status":"affected","lessThan":"c65956645893984760cec2890966cc5693844a0a","versionType":"git"},{"version":"3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0","status":"affected","lessThan":"b44e03bc44547970d86fad298e4fb78ee52bbc06","versionType":"git"},{"version":"3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0","status":"affected","lessThan":"f007c10d88e145804e6442ec3b550415b59f28c4","versionType":"git"},{"version":"3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0","status":"affected","lessThan":"74a7db839308dd7d1c3f72dd1e3299784df3affb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/dst_metadata.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.13","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/dst_metadata.h"]}],"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"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:20:03.041Z"},"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"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}