# CVE-2025-21768: net: ipv6: fix dst ref loops in rpl, seg6 and ioam6 lwtunnels

- 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.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-02-27T02:18:17.553Z
- Modified: 2026-11-05T21:17:42.660Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

net: ipv6: fix dst ref loops in rpl, seg6 and ioam6 lwtunnels

Some lwtunnels have a dst cache for post-transformation dst.
If the packet destination did not change we may end up recording
a reference to the lwtunnel in its own cache, and the lwtunnel
state will never be freed.

Discovered by the ioam6.sh test, kmemleak was recently fixed
to catch per-cpu memory leaks. I'm not sure if rpl and seg6
can actually hit this, but in principle I don't see why not.

(As written by CVE List.)

## Affected

- Linux Linux: from 6c8702c60b88651072460f3f4026c7dfe2521d12 before 26f0b472ae2a82920e38c7cf41583951046d586a; from 6c8702c60b88651072460f3f4026c7dfe2521d12 before e2ef3fa31353b30bda94358fe5205c141289746d; from 6c8702c60b88651072460f3f4026c7dfe2521d12 before 5ab11a4e219e93b8b31a27f8ec98d42afadd8b7a; from 6c8702c60b88651072460f3f4026c7dfe2521d12 before 4c0f200c7d06fedddde82209c099014d63f4a6c0; from 6c8702c60b88651072460f3f4026c7dfe2521d12 before 92191dd1073088753821b862b791dcc83e558e07; 4.10 (not affected: before 4.10; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.16 up to 6.12.*; from 6.13.4 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 4.10 before 6.12.16; from 6.13 before 6.13.4; 6.14

## References

- <https://git.kernel.org/stable/c/26f0b472ae2a82920e38c7cf41583951046d586a>
- <https://git.kernel.org/stable/c/e2ef3fa31353b30bda94358fe5205c141289746d>
- <https://git.kernel.org/stable/c/5ab11a4e219e93b8b31a27f8ec98d42afadd8b7a> (patch)
- <https://git.kernel.org/stable/c/4c0f200c7d06fedddde82209c099014d63f4a6c0> (patch)
- <https://git.kernel.org/stable/c/92191dd1073088753821b862b791dcc83e558e07> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2025-21768 · Whole record: https://cve.day/CVE-2025-21768.json · Rebuilt by cve.day 2026-11-25T22:58:54.548Z
