CVE-2026-98531
ipv6: sr: enforce exact attribute length for SEG6_ATTR_DST
Check your servers for CVE-2026-98531
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98531 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.28% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, before 050a0aa3c80907b8c60a396b7e04d48d8b1a9e70 affected from 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, before 209eefebee54c4a5f01d68b61e8ac9881eca2de9 affected from 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, before e3ac68c1cdc2535d127b2bfd50c263d16c8e4199 affected from 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, before 66bf65fa109326e4c4ddeb0b94093379f72838fd affected from 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, before 195813bb7324c338eaba0aaa02b18681ee65b670 affected from 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, before 6fcfc362344edea745a69f3a705de50b731f3418 affected from 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, before 94214cf0a08dd2c5f37aeeea46078d9dfe8e4a0e affected from 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, before 2d959c75c27f90e9ec489d18ce5ee6b852ad4741
Other versions: unaffected
|
| Linux |
affected 4.10 unaffected before 4.10 unaffected from 5.10.271 up to and including 5.10.* unaffected from 5.15.222 up to and including 5.15.* unaffected from 6.1.189 up to and including 6.1.* unaffected from 6.6.158 up to and including 6.6.* unaffected from 6.12.112 up to and including 6.12.* unaffected from 6.18.55 up to and including 6.18.* unaffected from 7.2.9 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98531 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98531
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-98531
trivy image --scanners vuln IMAGE | grep CVE-2026-98531
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/050a0aa3c80907b8c60a396b7e04d48d8b1a9e70 git.kernel.org
- https://git.kernel.org/stable/c/209eefebee54c4a5f01d68b61e8ac9881eca2de9 git.kernel.org
- https://git.kernel.org/stable/c/e3ac68c1cdc2535d127b2bfd50c263d16c8e4199 git.kernel.org
- https://git.kernel.org/stable/c/66bf65fa109326e4c4ddeb0b94093379f72838fd git.kernel.org
- https://git.kernel.org/stable/c/195813bb7324c338eaba0aaa02b18681ee65b670 git.kernel.org
- https://git.kernel.org/stable/c/6fcfc362344edea745a69f3a705de50b731f3418 git.kernel.org
- https://git.kernel.org/stable/c/94214cf0a08dd2c5f37aeeea46078d9dfe8e4a0e git.kernel.org
- https://git.kernel.org/stable/c/2d959c75c27f90e9ec489d18ce5ee6b852ad4741 git.kernel.org
Source: the record CVE-2026-98531 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse