CVE-2025-21765: ipv6: use RCU protection in ip6_default_advmss()
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ipv6: use RCU protection in ip6_default_advmss()
ip6_default_advmss() needs rcu protection to make sure the net structure it reads does not disappear.
The Linux kernel CVE team has assigned CVE-2025-21765 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.26 with commit 5578689a4e3c04f2d43ea39736fd3fa396d80c6e and fixed in 6.1.129 with commit 84212387caadb211cd9dadd6fd5563bd37dc1f5e Issue introduced in 2.6.26 with commit 5578689a4e3c04f2d43ea39736fd3fa396d80c6e and fixed in 6.6.79 with commit 4176a68b0db8fc74ac14fcd00ba8231371051dc2 Issue introduced in 2.6.26 with commit 5578689a4e3c04f2d43ea39736fd3fa396d80c6e and fixed in 6.12.16 with commit 713a40c892f40300d63691d9f85b2a23b48fe1e8 Issue introduced in 2.6.26 with commit 5578689a4e3c04f2d43ea39736fd3fa396d80c6e and fixed in 6.13.4 with commit 550ed693f47370502a71b85382e7f9e6417300b8 Issue introduced in 2.6.26 with commit 5578689a4e3c04f2d43ea39736fd3fa396d80c6e and fixed in 6.14-rc3 with commit 3c8ffcd248da34fc41e52a46e51505900115fc2a
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-21765
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/ipv6/route.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/84212387caadb211cd9dadd6fd5563bd37dc1f5e https://git.kernel.org/stable/c/4176a68b0db8fc74ac14fcd00ba8231371051dc2 https://git.kernel.org/stable/c/713a40c892f40300d63691d9f85b2a23b48fe1e8 https://git.kernel.org/stable/c/550ed693f47370502a71b85382e7f9e6417300b8 https://git.kernel.org/stable/c/3c8ffcd248da34fc41e52a46e51505900115fc2a