net: ipv6: fix dst ref loops in rpl, seg6 and ioam6 lwtunnels
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
IPv6 RPL, seg6, and ioam6 lwtunnels can cache a reference to themselves when a packet’s destination does not change after transformation. This prevents the lwtunnel state from being freed, causing a memory leak. The input does not specify whether authentication, local or network access, or user interaction is required.
Engineers running Linux kernels that use IPv6 RPL, seg6, or ioam6 lwtunnels should check their kernel version; affected versions are not specified.