Linux
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0bd8762824e73a3cce7b7560a97463301764b616, < 2d53ee7daabe733deb81f51d2cc90188f8ad59a1
- >= 0bd8762824e73a3cce7b7560a97463301764b616, < 82e53e7281c71e174f9f5877c566a623c637b406
- >= 0bd8762824e73a3cce7b7560a97463301764b616, < 5252db8fb604321133138c7069d6fc3fcd89cdee
- >= 0bd8762824e73a3cce7b7560a97463301764b616, < 2636d061bc237a2446a146e42dcc6563acfa7432
- >= 0bd8762824e73a3cce7b7560a97463301764b616, < 7f68f7928484f463a5bc0d50e6fdd8d16f55a5aa
- >= 0bd8762824e73a3cce7b7560a97463301764b616, < 234cd54fc500f69db43e37de38603da617fbbeea
- >= 0bd8762824e73a3cce7b7560a97463301764b616, < d4bcc202a3530c856e1cb183384bc9cc8fddab22
- >= 0bd8762824e73a3cce7b7560a97463301764b616, < 2496fa0b7d180b3ad356b514e7ff93bb14e6140a
Fixed in 2d53ee7daabe733deb81f51d2cc90188f8ad59a1, 82e53e7281c71e174f9f5877c566a623c637b406, 5252db8fb604321133138c7069d6fc3fcd89cdee, 2636d061bc237a2446a146e42dcc6563acfa7432, 7f68f7928484f463a5bc0d50e6fdd8d16f55a5aa, 234cd54fc500f69db43e37de38603da617fbbeea, d4bcc202a3530c856e1cb183384bc9cc8fddab22, 2496fa0b7d180b3ad356b514e7ff93bb14e6140a
- 3.12
Fixed in 0, 5.10.266, 5.15.217, 6.1.184, 6.6.148, 6.12.101, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to 2d53ee7daabe733deb81f51d2cc90188f8ad59a1 or 82e53e7281c71e174f9f5877c566a623c637b406 or 5252db8fb604321133138c7069d6fc3fcd89cdee or 2636d061bc237a2446a146e42dcc6563acfa7432 or 7f68f7928484f463a5bc0d50e6fdd8d16f55a5aa or 234cd54fc500f69db43e37de38603da617fbbeea or d4bcc202a3530c856e1cb183384bc9cc8fddab22 or 2496fa0b7d180b3ad356b514e7ff93bb14e6140a or later.
Upgrade Linux to 0 or 5.10.266 or 5.15.217 or 6.1.184 or 6.6.148 or 6.12.101 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.