CVE-2026-98570: net: ipv6: keep room for the mac header in dst_dev_overhead()

Published Oct 18, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

The seg6, ioam6 and rpl lwtunnels size their skbcowhead() request as the length they are about to push plus dstdevoverhead(), then push the new headers and rebuild the mac header below them with skbmacheaderrebuild(). That rebuild needs skb->maclen of headroom, but dstdevoverhead() leaves LLRESERVEDSPACE() 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 reorderhdr off, the rebuild runs out of room: skbsetmacheader(skb, -skb->maclen) computes a negative offset, stores it unchecked in the u16 skb->macheader, and the memmove that follows writes skb->maclen 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->macheader comes back as 65534 on a 704-byte head.

Return the larger of the two. The helper already returns skb->maclen 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.

Affected Software

1 affected component
Linux Linux kernel

Event History

Oct 18, 2026
CVE Published
via MITRE·03:18 PM
Data Sourced
via MITRE·03:18 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203