# CVE-2026-98531: ipv6: sr: enforce exact attribute length for SEG6\_ATTR\_DST

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-10-18T15:17:49.632Z
- **Modified:** 2026-10-19T10:19:08.527Z

## Who should check

- Anyone running Linux \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 050a0aa3c80907b8c60a396b7e04d48d8b1a9e70; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 209eefebee54c4a5f01d68b61e8ac9881eca2de9; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< e3ac68c1cdc2535d127b2bfd50c263d16c8e4199; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 66bf65fa109326e4c4ddeb0b94093379f72838fd; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 195813bb7324c338eaba0aaa02b18681ee65b670; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 6fcfc362344edea745a69f3a705de50b731f3418; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 94214cf0a08dd2c5f37aeeea46078d9dfe8e4a0e; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 2d959c75c27f90e9ec489d18ce5ee6b852ad4741
- Anyone running Linux 4.10

## 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.

## Affected and fixed versions

- Linux: \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 050a0aa3c80907b8c60a396b7e04d48d8b1a9e70; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 209eefebee54c4a5f01d68b61e8ac9881eca2de9; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< e3ac68c1cdc2535d127b2bfd50c263d16c8e4199; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 66bf65fa109326e4c4ddeb0b94093379f72838fd; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 195813bb7324c338eaba0aaa02b18681ee65b670; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 6fcfc362344edea745a69f3a705de50b731f3418; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 94214cf0a08dd2c5f37aeeea46078d9dfe8e4a0e; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 2d959c75c27f90e9ec489d18ce5ee6b852ad4741 (cvelist)
- Linux: 4.10 (cvelist)

## Mitigation

- Upgrade Linux to 2d959c75c27f90e9ec489d18ce5ee6b852ad4741 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98531. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98531.md
Affected: Linux >= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, < 050a0aa3c80907b8c60a396b7e04d48d8b1a9e70; >= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, < 209eefebee54c4a5f01d68b61e8ac9881eca2de9; >= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, < e3ac68c1cdc2535d127b2bfd50c263d16c8e4199; >= 915d7e5e5930b4f01d0971d…
Fixed in: Linux 050a0aa3c80907b8c60a396b7e04d48d8b1a9e70, Linux 209eefebee54c4a5f01d68b61e8ac9881eca2de9, Linux 66bf65fa109326e4c4ddeb0b94093379f72838fd, Linux 195813bb7324c338eaba0aaa02b18681ee65b670, Linux 6fcfc362344edea745a69f3a705de50b731f3418, Linux 94214cf0a08dd2c5f37aeeea46078d9dfe8e4a0e, Linux 2d959…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98531 being exploited?

There is no confirmed exploitation: CVE-2026-98531 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98531?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98531?

Linux \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 050a0aa3c80907b8c60a396b7e04d48d8b1a9e70; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 209eefebee54c4a5f01d68b61e8ac9881eca2de9; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< e3ac68c1cdc2535d127b2bfd50c263d16c8e4199; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 66bf65fa109326e4c4ddeb0b94093379f72838fd; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 195813bb7324c338eaba0aaa02b18681ee65b670; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 6fcfc362344edea745a69f3a705de50b731f3418; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 94214cf0a08dd2c5f37aeeea46078d9dfe8e4a0e; \>= 915d7e5e5930b4f01d0971d93b9b25ed17d221aa, \< 2d959c75c27f90e9ec489d18ce5ee6b852ad4741; Linux 4.10.

### Is there a fix for CVE-2026-98531?

Yes. Fixed in Linux 050a0aa3c80907b8c60a396b7e04d48d8b1a9e70, Linux 209eefebee54c4a5f01d68b61e8ac9881eca2de9, Linux 66bf65fa109326e4c4ddeb0b94093379f72838fd, Linux 195813bb7324c338eaba0aaa02b18681ee65b670, Linux 6fcfc362344edea745a69f3a705de50b731f3418, Linux 94214cf0a08dd2c5f37aeeea46078d9dfe8e4a0e, Linux 2d959c75c27f90e9ec489d18ce5ee6b852ad4741. Upgrade Linux to 2d959c75c27f90e9ec489d18ce5ee6b852ad4741 or later.

### How do I check if I'm affected by CVE-2026-98531?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/050a0aa3c80907b8c60a396b7e04d48d8b1a9e70>
- other: <https://git.kernel.org/stable/c/209eefebee54c4a5f01d68b61e8ac9881eca2de9>
- other: <https://git.kernel.org/stable/c/e3ac68c1cdc2535d127b2bfd50c263d16c8e4199>
- other: <https://git.kernel.org/stable/c/66bf65fa109326e4c4ddeb0b94093379f72838fd>
- other: <https://git.kernel.org/stable/c/195813bb7324c338eaba0aaa02b18681ee65b670>
- other: <https://git.kernel.org/stable/c/6fcfc362344edea745a69f3a705de50b731f3418>
- other: <https://git.kernel.org/stable/c/94214cf0a08dd2c5f37aeeea46078d9dfe8e4a0e>
- other: <https://git.kernel.org/stable/c/2d959c75c27f90e9ec489d18ce5ee6b852ad4741>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98531>

HTML: <https://flawdb.com/CVE-2026-98531> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98531>
