Linux
net: ipip: require CAP_NET_ADMIN in the device netns for changelink
In the Linux kernel, the following vulnerability has been resolved: net: ipip: require CAP_NET_ADMIN in the device netns for changelink ipip_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 ipip_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
- >= 6c742e714d8c282fd8f8b22d3e20b5141738c1ee, < a7d2642a50282322bc33f34ee7305f2b793df494
- >= 6c742e714d8c282fd8f8b22d3e20b5141738c1ee, < 068ad9b85f681755f751ebab82ae98146cec163d
- >= 6c742e714d8c282fd8f8b22d3e20b5141738c1ee, < 91571643e554ae89a91942380d5f5361fb7060a2
- >= 6c742e714d8c282fd8f8b22d3e20b5141738c1ee, < 983cc4aa7e6f633b34c3ee743771252d7afa9a90
- >= 6c742e714d8c282fd8f8b22d3e20b5141738c1ee, < 26544021d5c49cc6ae8a968ccb5033e6363854a4
- >= 6c742e714d8c282fd8f8b22d3e20b5141738c1ee, < 68cadc3698c7de88966d306d12ec9c6217da228a
- >= 6c742e714d8c282fd8f8b22d3e20b5141738c1ee, < d49edcc65e0a37cc9b386a94415c5d6670ca8b71
- >= 6c742e714d8c282fd8f8b22d3e20b5141738c1ee, < 8211a26324667980a463c069469a818e71207e02
Fixed in a7d2642a50282322bc33f34ee7305f2b793df494, 068ad9b85f681755f751ebab82ae98146cec163d, 91571643e554ae89a91942380d5f5361fb7060a2, 983cc4aa7e6f633b34c3ee743771252d7afa9a90, 26544021d5c49cc6ae8a968ccb5033e6363854a4, 68cadc3698c7de88966d306d12ec9c6217da228a, d49edcc65e0a37cc9b386a94415c5d6670ca8b71, 8211a26324667980a463c069469a818e71207e02
- 3.12
Fixed in 0, 5.10.266, 5.15.217, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to a7d2642a50282322bc33f34ee7305f2b793df494 or 068ad9b85f681755f751ebab82ae98146cec163d or 91571643e554ae89a91942380d5f5361fb7060a2 or 983cc4aa7e6f633b34c3ee743771252d7afa9a90 or 26544021d5c49cc6ae8a968ccb5033e6363854a4 or 68cadc3698c7de88966d306d12ec9c6217da228a or d49edcc65e0a37cc9b386a94415c5d6670ca8b71 or 8211a26324667980a463c069469a818e71207e02 or later.
Upgrade Linux to 0 or 5.10.266 or 5.15.217 or 6.1.178 or 6.6.145 or 6.12.97 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.