bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-98570

—unknown

linux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases

Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.

Reach linux · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

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.

Published 2026-10-18NVD

References 2
Review Av26.10.0x86_64Not affectedFable 5.2 · high confidence · 2026-11-19

The fix is not in this tree: dst_dev_overhead() in include/net/dst.h still returns only LL_RESERVED_SPACE(dst->dev), and none of the 139 applied patches touches it. However, the helper is a static inline whose only callers are net/ipv6/seg6_iptunnel.c, net/ipv6/rpl_iptunnel.c and net/ipv6/ioam6_iptunnel.c, and none of these is compiled.

CONFIG_IPV6_SEG6_LWTUNNEL, CONFIG_IPV6_RPL_LWTUNNEL and CONFIG_IPV6_IOAM6_LWTUNNEL are all "not set" in the kernel .config, and no object files exist for those sources in the build directory. The vulnerable code path is therefore absent from the x86_64 image, even though CONFIG_LWTUNNEL, CONFIG_IPV6 and CONFIG_VLAN_8021Q are enabled.

Evidence 11
  1. `dst_dev_overhead()` is still the unfixed version: it returns `LL_RESERVED_SPACE(dst->dev)` when a dst exists, not the larger of that and `skb->mac_len`. The fix is not in the source.

    output/build/linux-6.18.60/include/net/dst.h:454-461

  2. No applied patch name matches dst, seg6, rpl, ioam, lwt or ipv6; the only hits for a broad search are unrelated brcmfmac and sparx5 patches. Patch contents were not opened; the unfixed helper above is the direct evidence.

    output/build/linux-6.18.60/.applied_patches_list

  3. Callers of `dst_dev_overhead()` in the seg6 encap and inline paths.

    output/build/linux-6.18.60/net/ipv6/seg6_iptunnel.c:142,243,339

  4. Caller of `dst_dev_overhead()` in the rpl path.

    output/build/linux-6.18.60/net/ipv6/rpl_iptunnel.c:157

  5. Callers of `dst_dev_overhead()` in the ioam6 paths. A search of all `.c` and `.h` files in the kernel tree finds no callers beyond these three files.

    output/build/linux-6.18.60/net/ipv6/ioam6_iptunnel.c:265,306

  6. `seg6_iptunnel.o`, `rpl_iptunnel.o` and `ioam6_iptunnel.o` are built only under `CONFIG_IPV6_SEG6_LWTUNNEL`, `CONFIG_IPV6_RPL_LWTUNNEL` and `CONFIG_IPV6_IOAM6_LWTUNNEL` respectively.

    output/build/linux-6.18.60/net/ipv6/Makefile:25,27,28

  7. `# CONFIG_IPV6_SEG6_LWTUNNEL is not set`, `# CONFIG_IPV6_SEG6_HMAC is not set`, `# CONFIG_IPV6_RPL_LWTUNNEL is not set`, `# CONFIG_IPV6_IOAM6_LWTUNNEL is not set`.

    output/build/linux-6.18.60/.config:1110-1113

  8. All three options are plain bools (not tristate), so they cannot be shipped as loadable modules either; "not set" means the code is absent.

    output/build/linux-6.18.60/net/ipv6/Kconfig:290-341

  9. Only the three `.c` sources exist; there are no `.o` files, confirming they were not compiled in the configured build directory.

    output/build/linux-6.18.60/net/ipv6/ (find *iptunnel*)

  10. `CONFIG_LWTUNNEL=y` is set (also `output/build/linux-6.18.60/.config:1601`), but the defconfig contains no SEG6, RPL or IOAM6 symbol, so the generic lwtunnel core is present without the three affected encapsulations.

    board/x86_64/linux_defconfig:253

  11. The source is 6.18.60, matching the SBOM entry, so the version match itself is not wrong.

    output/build/linux-6.18.60/Makefile:2-4

Version and patches

The built source is 6.18.60 (output/build/linux-6.18.60/Makefile:2-4), so the NVD match on version is plausible and this is not a false positive. The upstream affected range and fixed stable version could not be checked, because the kernel.org commits are not reachable from this tree and NVD has no range yet (status Received).

The fix (return the larger of LL_RESERVED_SPACE() and skb->mac_len) is not in include/net/dst.h, and no applied patch name in .applied_patches_list suggests it. Not-affected status rests solely on the kernel configuration: the three lwtunnel options that contain every caller are disabled.

Recommendation

Document as not applicable for the x86_64 build: the vulnerable callers are not compiled, so no upgrade or backport needs prioritising for this CVE.

Record the condition with it: the finding becomes applicable if CONFIG_IPV6_SEG6_LWTUNNEL, CONFIG_IPV6_RPL_LWTUNNEL or CONFIG_IPV6_IOAM6_LWTUNNEL is ever enabled, since the helper itself is unfixed. Pick up the fix through the next routine stable kernel bump.

Open questions

Only the x86_64 kernel configuration named in the brief was reviewed. Other Infix board defconfigs (for example aarch64) were not checked and should be reviewed separately if they ship the same kernel.

The exact upstream affected range and the first fixed 6.18.y release were not verified, as the fix commits are not available offline.

Members of Kernel Kit decide. Sign in if you are one.