CVE-2026-98531: ipv6: sr: enforce exact attribute length for SEG6_ATTR_DST

Published Oct 18, 2026
·
Updated

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

ipv6: sr: enforce exact attribute length for SEG6ATTRDST

In seg6genlpolicy, SEG6ATTRDST is defined with .type = NLABINARY and .len = sizeof(struct in6addr). For NLABINARY, .len only enforces the maximum payload length and permits shorter payloads (e.g., 0 bytes). When seg6genlsettunsrc() copies sizeof(struct in6addr) bytes via kmemdup(val, sizeof(val), GFPKERNEL), a short SEG6ATTRDST attribute triggers a 16-byte out-of-bounds read past skb->tail into uninitialized skb->head memory, which is stored in sdata->tunsrc and leaked back to userspace via SEG6CMDGETTUNSRC.

Switch SEG6ATTRDST in seg6genlpolicy to NLAPOLICYEXACTLEN(sizeof(struct in6addr)) so that generic netlink validation rejects any attribute whose length is not exactly sizeof(struct in6addr) with -ERANGE.

Tested in QEMU against Linux 7.3.0-rc3 by sending a SEG6CMDSETTUNSRC Generic Netlink message with a 0-byte SEG6ATTRDST attribute followed by SEG6CMDGETTUNSRC. On the unfixed kernel, SEG6CMDSETTUNSRC succeeds (err = 0) and SEG6CMDGETTUNSRC leaks 16 bytes of uninitialized kernel heap memory (tunsrc = 836a61ecc4d25a1042a8d60411cfb378); with this patch applied, SEG6CMDSETTUNSRC is rejected by netlink policy validation with -ERANGE (-34) and tunsrc remains zeroed.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Patch 836a61ecc4d25a1042a8d60411cfb378

Event History

Oct 18, 2026
CVE Published
via MITRE·03:17 PM
Data Sourced
via MITRE·03:17 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