Linux
vxlan: require CAP_NET_ADMIN in the device netns for changelink
In the Linux kernel, the following vulnerability has been resolved: vxlan: require CAP_NET_ADMIN in the device netns for changelink A tunnel changelink() operates on at most two netns, dev_net(dev) and the sticky underlay netns vxlan->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 vxlan->net can rewrite a vxlan device whose underlay lives in vxlan->net. vxlan_changelink() validates and applies the new configuration against vxlan->net (vxlan_config_validate(vxlan->net, ...)) and can reopen the underlay socket in that netns, so the same reasoning as the tunnel changelink series applies here. Gate vxlan_changelink() with rtnl_dev_link_net_capable(), at the top of the op before any attribute is parsed, matching ipgre_changelink() and the rest of the "require CAP_NET_ADMIN in the device netns for changelink" series. Found by 0sec automated security-research tooling (https://0sec.ai).
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 8bcdc4f3a20be949df54b67e5ae2734daabb5792, < b95a8743e58f7efed5ddc4cb73829b66f17feab0
- >= 8bcdc4f3a20be949df54b67e5ae2734daabb5792, < 7465ade989ba84adc2bfa58bad3ca25d249f0f7a
- >= 8bcdc4f3a20be949df54b67e5ae2734daabb5792, < 0aa580a8bbbed2507b4582a1f0ef581d480d06ed
- >= 8bcdc4f3a20be949df54b67e5ae2734daabb5792, < b3793d7dccb192ffff29894d11824db6251acdd5
- >= 8bcdc4f3a20be949df54b67e5ae2734daabb5792, < 32d10c46bfde3e9b274e9e1bd6399d0ebea8f60f
- >= 8bcdc4f3a20be949df54b67e5ae2734daabb5792, < 730c7e5fea7f06e0cdf21c547222ec93234fd1d6
- >= 8bcdc4f3a20be949df54b67e5ae2734daabb5792, < e8ad0d311e225939a9a6c745d6cc384c7364ec87
- >= 8bcdc4f3a20be949df54b67e5ae2734daabb5792, < 3a61bd9637f3d929aa846e4eb3d98b48c26fcb0e
Fixed in b95a8743e58f7efed5ddc4cb73829b66f17feab0, 7465ade989ba84adc2bfa58bad3ca25d249f0f7a, 0aa580a8bbbed2507b4582a1f0ef581d480d06ed, b3793d7dccb192ffff29894d11824db6251acdd5, 32d10c46bfde3e9b274e9e1bd6399d0ebea8f60f, 730c7e5fea7f06e0cdf21c547222ec93234fd1d6, e8ad0d311e225939a9a6c745d6cc384c7364ec87, 3a61bd9637f3d929aa846e4eb3d98b48c26fcb0e
- 4.11
Fixed in 0, 5.10.265, 5.15.216, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to b95a8743e58f7efed5ddc4cb73829b66f17feab0 or 7465ade989ba84adc2bfa58bad3ca25d249f0f7a or 0aa580a8bbbed2507b4582a1f0ef581d480d06ed or b3793d7dccb192ffff29894d11824db6251acdd5 or 32d10c46bfde3e9b274e9e1bd6399d0ebea8f60f or 730c7e5fea7f06e0cdf21c547222ec93234fd1d6 or e8ad0d311e225939a9a6c745d6cc384c7364ec87 or 3a61bd9637f3d929aa846e4eb3d98b48c26fcb0e or later.
Upgrade Linux to 0 or 5.10.265 or 5.15.216 or 6.1.183 or 6.6.148 or 6.12.101 or 6.18.42 or 7.1.6 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.