net: ip6_vti: require CAP_NET_ADMIN in the device netns for changelink
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 61220ab349485d911083d0b7990ccd3db6c63297 · < 0b2f9c908f930ec4be17d389723f9a202d6a883c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: ip6_vti: require CAP_NET_ADMIN in the device netns for changelink
vti6_changelink() operates on at most two netns, dev_net(dev) and the tunnel link netns t->net. They differ once the device is created in or moved to a netns other than the one the request runs in. The rtnl changelink path checks CAP_NET_ADMIN only against dev_net(dev), so a caller privileged there but not in t->net can rewrite a tunnel that lives in t->net.
Gate vti6_changelink() on rtnl_dev_link_net_capable() at its top, before any attribute is parsed.
From the CVE record · Linux
The Linux kernel's ip6_vti changelink path checks CAP_NET_ADMIN in the device's network namespace but not the tunnel link's network namespace. A caller with CAP_NET_ADMIN in the device namespace, but not the tunnel link namespace, can rewrite a tunnel when those namespaces differ. The input does not specify any additional user interaction.
Operators running the Linux kernel should check whether their version is affected; no affected versions are specified.