cvelo
P4 · InfoEPSS 0.2%

net: ipv6: keep room for the mac header in dst_dev_overhead()

  • CVE-2026-98570
  • GHSA-4prh-wfp5-28j7
  • EUVD-2026-103615

Description

In the Linux kernel, the following vulnerability has been resolved: net: ipv6: keep room for the mac header in dst_dev_overhead() The seg6, ioam6 and rpl lwtunnels size their skb_cow_head() request as the length they are about to push plus dst_dev_overhead(), then push the new headers and rebuild the mac header below them with skb_mac_header_rebuild(). That rebuild needs skb->mac_len of headroom, but dst_dev_overhead() leaves LL_RESERVED_SPACE() of the egress device, 16 bytes for plain Ethernet. Where the mac header is longer than that, as it is on ingress through a VLAN device with reorder_hdr off, the rebuild runs out of room: skb_set_mac_header(skb, -skb->mac_len) computes a negative offset, stores it unchecked in the u16 skb->mac_header, and the memmove that follows writes skb->mac_len bytes about 64 KB past skb->head. Forwarding plain ping6 traffic through such a device reproduces it on all five seg6 encapsulation modes and on the rpl and ioam6 inline paths; skb->mac_header comes back as 65534 on a 704-byte head. Return the larger of the two. The helper already returns skb->mac_len when it has no dst, so this only makes the other branch agree, and it covers every caller rather than each call site in turn.

Text from the CVE.org record.

Recommendation

  • Linux

    • If you run a version from 6.12.16 to before 6.13update to 6.13 or laterMinor version change: check the release notes
    • If you run a version from 6.6.81 to before 6.7update to 6.7 or laterMinor version change: check the release notes
    • If you run a version from 6.1.130 to before 6.2update to 6.2 or laterMinor version change: check the release notes
    • If you run a version from 5.15.179 to before 5.16update to 5.16 or laterMinor version change: check the release notes
    • If you run a version from 5.10.235 to before 5.11update to 5.11 or laterMinor version change: check the release notes

    Some affected versions have no stated fix.

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Linux

    Affected versionsFixed in
    from 6.12.16 to before 6.136.13
    from 6.6.81 to before 6.76.7
    from 6.1.130 to before 6.26.2
    from 5.15.179 to before 5.165.16
    from 5.10.235 to before 5.115.11
    from 6.13.4 to before 6.14none stated
    6.14none stated
    before 6.14: not affectednone stated

    and 3 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.