Nixpkgs security tracker

Login with GitHub
⚠️ You are using a production deployment that is still only suitable for demo purposes. Any work done in this might be wiped later without notice.

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 3 weeks, 4 days ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
net: ip6_tunnel: require CAP_NET_ADMIN in the device netns for changelink

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.

Affected products

Linux
  • <3.12
  • <2496fa0b7d180b3ad356b514e7ff93bb14e6140a
  • =<6.6.*
  • <234cd54fc500f69db43e37de38603da617fbbeea
  • <2636d061bc237a2446a146e42dcc6563acfa7432
  • =<*
  • <7f68f7928484f463a5bc0d50e6fdd8d16f55a5aa
  • =<6.18.*
  • =<6.12.*
  • =<7.1.*
  • ==3.12
  • <d4bcc202a3530c856e1cb183384bc9cc8fddab22