CVE-2026-98531: Software Security Vulnerability Vulnerability

UNKNOWN
Advisory Identifier: GHSA-365h-h8v6-r47m
Published
Advisory Summary

CVE-2026-98531 is a security vulnerability vulnerability (General Security Weakness) affecting Software libraries in the Maven ecosystem. Remediation is available in the latest vendor maintenance releases.

CVE-2026-98531 at a Glance

CVE Identifier CVE-2026-98531
GHSA Identifier GHSA-365h-h8v6-r47m
Severity N/A
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2026-98531

To remediate this vulnerability, upgrade all affected Software dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-98531, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree

Analyze the terminal output to locate any version of Software in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Software, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

References

Frequently Asked Questions

What is CVE-2026-98531?
CVE-2026-98531 is a security vulnerability in Software classified as a security vulnerability vulnerability under General Security Weakness.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2026-98531?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2026-98531?
CVE-2026-98531 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2026-98531?
Run the dependency tree command: 'mvn dependency:tree'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-365h-h8v6-r47m",
  "modified" : "2026-10-18T18:31:52Z",
  "published" : "2026-10-18T18:31:52Z",
  "aliases" : [ "CVE-2026-98531" ],
  "details" : "In the Linux kernel, the following vulnerability has been resolved:\n\nipv6: sr: enforce exact attribute length for SEG6_ATTR_DST\n\nIn seg6_genl_policy, SEG6_ATTR_DST is defined with .type = NLA_BINARY and\n.len = sizeof(struct in6_addr). For NLA_BINARY, .len only enforces the\nmaximum payload length and permits shorter payloads (e.g., 0 bytes).\nWhen seg6_genl_set_tunsrc() copies sizeof(struct in6_addr) bytes via\nkmemdup(val, sizeof(*val), GFP_KERNEL), a short SEG6_ATTR_DST attribute\ntriggers a 16-byte out-of-bounds read past skb->tail into uninitialized\nskb->head memory, which is stored in sdata->tun_src and leaked back to\nuserspace via SEG6_CMD_GET_TUNSRC.\n\nSwitch SEG6_ATTR_DST in seg6_genl_policy to\nNLA_POLICY_EXACT_LEN(sizeof(struct in6_addr)) so that generic netlink\nvalidation rejects any attribute whose length is not exactly\nsizeof(struct in6_addr) with -ERANGE.\n\nTested in QEMU against Linux 7.3.0-rc3 by sending a SEG6_CMD_SET_TUNSRC\nGeneric Netlink message with a 0-byte SEG6_ATTR_DST attribute followed\nby SEG6_CMD_GET_TUNSRC. On the unfixed kernel, SEG6_CMD_SET_TUNSRC\nsucceeds (err = 0) and SEG6_CMD_GET_TUNSRC leaks 16 bytes of\nuninitialized kernel heap memory (tun_src =\n836a61ecc4d25a1042a8d60411cfb378); with this patch applied,\nSEG6_CMD_SET_TUNSRC is rejected by netlink policy validation with\n-ERANGE (-34) and tun_src remains zeroed.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-98531"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/050a0aa3c80907b8c60a396b7e04d48d8b1a9e70"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/195813bb7324c338eaba0aaa02b18681ee65b670"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/209eefebee54c4a5f01d68b61e8ac9881eca2de9"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/2d959c75c27f90e9ec489d18ce5ee6b852ad4741"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/66bf65fa109326e4c4ddeb0b94093379f72838fd"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/6fcfc362344edea745a69f3a705de50b731f3418"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/94214cf0a08dd2c5f37aeeea46078d9dfe8e4a0e"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/e3ac68c1cdc2535d127b2bfd50c263d16c8e4199"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : null,
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2026-10-18T16:17:04Z"
  }
}