# CVE-2025-38310: seg6: Fix validation of nexthop addresses

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-07-10T07:42:19.338Z
- Modified: 2026-11-05T21:18:25.833Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

seg6: Fix validation of nexthop addresses

The kernel currently validates that the length of the provided nexthop
address does not exceed the specified length. This can lead to the
kernel reading uninitialized memory if user space provided a shorter
length than the specified one.

Fix by validating that the provided length exactly matches the specified
one.

(As written by CVE List.)

## Affected

- Linux Linux: from d1df6fd8a1d22d37cffa0075ab8ad423ce656777 before 668923c474608dd9ebce0fbcc41bd8a27aa73dd6; from d1df6fd8a1d22d37cffa0075ab8ad423ce656777 before cef33a86bcb04ecf4dc10c56f6c42ee9d1c54bac; from d1df6fd8a1d22d37cffa0075ab8ad423ce656777 before d2507aeea45b3c5aa24d5daae0cf3db76895c0b7; from d1df6fd8a1d22d37cffa0075ab8ad423ce656777 before d5d9fd13bc19a3f9f2a951c5b6e934d84205789e; from d1df6fd8a1d22d37cffa0075ab8ad423ce656777 before cd4cd09810211fa23609c5c1018352e9e1cd8e5a; from d1df6fd8a1d22d37cffa0075ab8ad423ce656777 before 7632fedb266d93ed0ed9f487133e6c6314a9b2d1; 4.14 (not affected: before 4.14; from 5.15.186 up to 5.15.*; from 6.1.142 up to 6.1.*; from 6.6.94 up to 6.6.*; from 6.12.34 up to 6.12.*; from 6.15.3 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 4.14 before 5.15.186; from 5.16 before 6.1.142; from 6.2 before 6.6.94; from 6.7 before 6.12.34; from 6.13 before 6.15.3
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/668923c474608dd9ebce0fbcc41bd8a27aa73dd6> (patch)
- <https://git.kernel.org/stable/c/cef33a86bcb04ecf4dc10c56f6c42ee9d1c54bac> (patch)
- <https://git.kernel.org/stable/c/d2507aeea45b3c5aa24d5daae0cf3db76895c0b7> (patch)
- <https://git.kernel.org/stable/c/d5d9fd13bc19a3f9f2a951c5b6e934d84205789e> (patch)
- <https://git.kernel.org/stable/c/cd4cd09810211fa23609c5c1018352e9e1cd8e5a> (patch)
- <https://git.kernel.org/stable/c/7632fedb266d93ed0ed9f487133e6c6314a9b2d1> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38310](https://www.cve.org/CVERecord?id=CVE-2025-38310), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-38310](https://nvd.nist.gov/vuln/detail/CVE-2025-38310), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-38310 · Whole record: https://cve.day/CVE-2025-38310.json · Rebuilt by cve.day 2026-11-25T22:59:01.068Z
