cvelo
P2 · HighCVSS 7.5EPSS 0.8%

net: dst_metadata: fix memcmp overread in skb_metadata_dst_cmp

  • CVE-2026-143165
  • GHSA-h4hq-q43p-55vv
  • EUVD-2026-142782

Description

In the Linux kernel, the following vulnerability has been resolved: net: dst_metadata: fix memcmp overread in skb_metadata_dst_cmp Commit 3fcece12bc1b6 ("net: store port/representator id in metadata_dst") dropped the options_len equality check when converting skb_metadata_dst_cmp() 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/string_helpers.c:1036 __fortify_report __fortify_panic+0x9/0x10 skb_metadata_dst_cmp+0x11b/0x120 dev_gro_receive+0x303/0x620 gro_cell_poll+0x67/0xa0 Restore the check: unequal options_len means different metadata and no aggregation; the memcmp only runs when both sides carry the same options length.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • Linux

    Affected versionsFixed in
    4.13none stated
    before 4.13: not affectednone stated
    from 5.10.276 up to 5.10.*: not affectednone stated
    from 5.15.227 up to 5.15.*: not affectednone stated
    from 6.12.120 up to 6.12.*: not affectednone stated
    from 6.18.66 up to 6.18.*: not affectednone stated
    from 7.3.7 up to 7.3.*: not affectednone stated
    from 7.4-rc3 onwards: not affectednone stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.