net: ip6_tunnel: 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 |
|
≥ 0bd8762824e73a3cce7b7560a97463301764b616 · < 234cd54fc500f69db43e37de38603da617fbbeea| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: ip6_tunnel: require CAP_NET_ADMIN in the device netns for changelink
ip6_tnl_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 ip6_tnl_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_tunnel changelink path does not check CAP_NET_ADMIN in the tunnel link's network namespace. A caller with that capability in the device's namespace, but not the tunnel link's namespace, can change the tunnel when those namespaces differ.
Teams running the Linux kernel should check systems using ip6_tunnel; affected versions are not specified.