CVE-2026-143165: net: dst_metadata: fix memcmp overread in skb_metadata_dst_cmp
In the Linux kernel, the following vulnerability has been resolved:
net: dstmetadata: fix memcmp overread in skbmetadatadstcmp
Commit 3fcece12bc1b6 ("net: store port/representator id in metadatadst") dropped the optionslen equality check when converting skbmetadatadstcmp() to a type switch, so the memcmp length is taken from skb a alone. When skb b carries fewer options than a, the comparison reads past b's allocation.
Hit in practice with Cilium geneve GRO aggregation, comparing an skb carrying 12 bytes of tunnel options against one carrying none:
memcmp: detected buffer overflow: 108 byte read of buffer size 96 WARNING: CPU: 0 PID: 15 at lib/stringhelpers.c:1036 fortifyreport fortifypanic+0x9/0x10 skbmetadatadstcmp+0x11b/0x120 devgroreceive+0x303/0x620 grocellpoll+0x67/0xa0
Restore the check: unequal optionslen means different metadata and no aggregation; the memcmp only runs when both sides carry the same options length.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.276 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.227 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In skb_metadata_dst_cmp(), restore the options_len equality check so the memcmp runs only when both sides have the same tunnel-options length.
Event History
Frequently Asked Questions
Which deployments are most likely to encounter this issue?
The issue was observed with Cilium Geneve GRO aggregation when an skb with 12 bytes of tunnel options was compared with one carrying no options. Systems that do not perform this metadata comparison during GRO aggregation are not identified in the available information as affected in practice.
How can I tell whether this has occurred?
A kernel warning may report a memcmp-detected buffer overflow from skb_metadata_dst_cmp during GRO processing. The reported call path includes skb_metadata_dst_cmp, dev_gro_receive, and gro_cell_poll.
What changes with the fix?
The fix treats skbs with unequal options_len values as having different metadata, preventing their aggregation. memcmp is then performed only when both skbs have the same tunnel-options length, avoiding a read beyond the second skb allocation.