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

ipv6: sr: enforce exact attribute length for SEG6_ATTR_DST

In seg6_genl_policy, SEG6_ATTR_DST is defined with .type = NLA_BINARY and
.len = sizeof(struct in6_addr). For NLA_BINARY, .len only enforces the
maximum payload length and permits shorter payloads (e.g., 0 bytes).
When seg6_genl_set_tunsrc() copies sizeof(struct in6_addr) bytes via
kmemdup(val, sizeof(*val), GFP_KERNEL), a short SEG6_ATTR_DST attribute
triggers a 16-byte out-of-bounds read past skb->tail into uninitialized
skb->head memory, which is stored in sdata->tun_src and leaked back to
userspace via SEG6_CMD_GET_TUNSRC.

Switch SEG6_ATTR_DST in seg6_genl_policy to
NLA_POLICY_EXACT_LEN(sizeof(struct in6_addr)) so that generic netlink
validation rejects any attribute whose length is not exactly
sizeof(struct in6_addr) with -ERANGE.

Tested in QEMU against Linux 7.3.0-rc3 by sending a SEG6_CMD_SET_TUNSRC
Generic Netlink message with a 0-byte SEG6_ATTR_DST attribute followed
by SEG6_CMD_GET_TUNSRC. On the unfixed kernel, SEG6_CMD_SET_TUNSRC
succeeds (err = 0) and SEG6_CMD_GET_TUNSRC leaks 16 bytes of
uninitialized kernel heap memory (tun_src =
836a61ecc4d25a1042a8d60411cfb378); with this patch applied,
SEG6_CMD_SET_TUNSRC is rejected by netlink policy validation with
-ERANGE (-34) and tun_src remains zeroed.
Published: 2026-10-18
Score: n/a
EPSS: n/a
KEV: No
Impact: Information Disclosure via Out-of-Bounds Read
Action: Immediate Patch
AI Analysis

Impact

The vulnerability resides in the Linux kernel's IPv6 Segment Routing (seg6) handling. When a user sends a Generic Netlink command with a SEG6_ATTR_DST attribute that is too short, the kernel allows a 16‑byte read beyond the valid buffer. This out‑of‑bounds read copies uninitialized kernel heap data into the tunsrc field and returns it to userspace, leaking sensitive memory. The primary consequence is the disclosure of kernel information that can assist further attacks. The weakness stems from insufficient policy validation that permits shorter payloads for a NLA_BINARY attribute.

Affected Systems

All Linux kernels that implement the IPv6 Segment Routing Netlink interface before the patch that changes SEG6_ATTR_DST from NLA_BINARY to NLA_POLICY_EXACT_LEN. The fix was validated on kernel 7.3.0‑rc3, so any pre‑patch kernel is vulnerable.

Risk and Exploitability

The issue is local; an attacker must be able to send Generic Netlink messages on the host. No network exposure is required, so the exploit is limited to a local user or process. The EPSS score is unavailable and the vulnerability is not in the CISA KEV catalog, indicating that current exploitation rates are unknown. Nonetheless, a local attacker can leverage the leak to aid other attacks, but the impact is confined to information disclosure rather than immediate privilege escalation.

Generated by OpenCVE AI on October 18, 2026 at 17:26 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the seg6 attribute length enforcement, such as upgrading to Linux 7.3.0 or later, or backporting the relevant patch to older kernels.
  • If updating is not immediately possible, restrict Generic Netlink access to trusted processes by enforcing SELinux/AppArmor policies or by assigning the CAP_NET_ADMIN capability only to authorized users.
  • Monitor system logs for anomalous SEG6 command traffic and verify that the seg6 attribute length policy is enabled.

Generated by OpenCVE AI on October 18, 2026 at 17:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 18 Oct 2026 17:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20
CWE-200

Sun, 18 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ipv6: sr: enforce exact attribute length for SEG6_ATTR_DST In seg6_genl_policy, SEG6_ATTR_DST is defined with .type = NLA_BINARY and .len = sizeof(struct in6_addr). For NLA_BINARY, .len only enforces the maximum payload length and permits shorter payloads (e.g., 0 bytes). When seg6_genl_set_tunsrc() copies sizeof(struct in6_addr) bytes via kmemdup(val, sizeof(*val), GFP_KERNEL), a short SEG6_ATTR_DST attribute triggers a 16-byte out-of-bounds read past skb->tail into uninitialized skb->head memory, which is stored in sdata->tun_src and leaked back to userspace via SEG6_CMD_GET_TUNSRC. Switch SEG6_ATTR_DST in seg6_genl_policy to NLA_POLICY_EXACT_LEN(sizeof(struct in6_addr)) so that generic netlink validation rejects any attribute whose length is not exactly sizeof(struct in6_addr) with -ERANGE. Tested in QEMU against Linux 7.3.0-rc3 by sending a SEG6_CMD_SET_TUNSRC Generic Netlink message with a 0-byte SEG6_ATTR_DST attribute followed by SEG6_CMD_GET_TUNSRC. On the unfixed kernel, SEG6_CMD_SET_TUNSRC succeeds (err = 0) and SEG6_CMD_GET_TUNSRC leaks 16 bytes of uninitialized kernel heap memory (tun_src = 836a61ecc4d25a1042a8d60411cfb378); with this patch applied, SEG6_CMD_SET_TUNSRC is rejected by netlink policy validation with -ERANGE (-34) and tun_src remains zeroed.
Title ipv6: sr: enforce exact attribute length for SEG6_ATTR_DST
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-18T15:17:49.632Z

Reserved: 2026-09-25T10:25:14.355Z

Link: CVE-2026-98531

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T16:17:04.653

Modified: 2026-10-18T16:17:04.653

Link: CVE-2026-98531

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T17:30:16Z

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor