Linux
net: ip6_gre: require CAP_NET_ADMIN in the device netns for changelink
In the Linux kernel, the following vulnerability has been resolved: net: ip6_gre: require CAP_NET_ADMIN in the device netns for changelink ip6gre_changelink() and ip6erspan_changelink() operate 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 both ops on rtnl_dev_link_net_capable() at their top, before any attribute is parsed.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 690afc165bb314354667f67157c1a1aea7dc797a, < 129f8939e5af683cec3a1a5edcb40a64636ad81e
- >= 690afc165bb314354667f67157c1a1aea7dc797a, < e3724dedf57761c6de52f4d604ec74f66fd61611
- >= 690afc165bb314354667f67157c1a1aea7dc797a, < 220162c9fedbe992da70d70f50a10da4f45f914c
- >= 690afc165bb314354667f67157c1a1aea7dc797a, < 1d4d8ee002083ca4ead5353662bf8362428af57f
- >= 690afc165bb314354667f67157c1a1aea7dc797a, < 0caa9f348f8b5356900de77b0bb89a697c4aff20
- >= 690afc165bb314354667f67157c1a1aea7dc797a, < 03d8843b143ebbbfaf48511922abc6e886575a61
- >= 690afc165bb314354667f67157c1a1aea7dc797a, < c38c8b0db3c65b597e7ece317b6cb59de3d15e69
- >= 690afc165bb314354667f67157c1a1aea7dc797a, < f00a50876d2818bd6dc86fa98b3ef360884c53c8
- d0201d2405dac8d9b16773e97709925e397552d0
- 7943bb0f06365cf5e32f3cf8a6b29eeae981fb8a
- >= 4.19.100, < 4.20
- >= 5.4.16, < 5.5
Fixed in 129f8939e5af683cec3a1a5edcb40a64636ad81e, e3724dedf57761c6de52f4d604ec74f66fd61611, 220162c9fedbe992da70d70f50a10da4f45f914c, 1d4d8ee002083ca4ead5353662bf8362428af57f, 0caa9f348f8b5356900de77b0bb89a697c4aff20, 03d8843b143ebbbfaf48511922abc6e886575a61, c38c8b0db3c65b597e7ece317b6cb59de3d15e69, f00a50876d2818bd6dc86fa98b3ef360884c53c8, 4.20, 5.5
- 5.5
Fixed in 0, 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to 129f8939e5af683cec3a1a5edcb40a64636ad81e or e3724dedf57761c6de52f4d604ec74f66fd61611 or 220162c9fedbe992da70d70f50a10da4f45f914c or 1d4d8ee002083ca4ead5353662bf8362428af57f or 0caa9f348f8b5356900de77b0bb89a697c4aff20 or 03d8843b143ebbbfaf48511922abc6e886575a61 or c38c8b0db3c65b597e7ece317b6cb59de3d15e69 or f00a50876d2818bd6dc86fa98b3ef360884c53c8 or 4.20 or 5.5 or later.
Upgrade Linux to 0 or 5.10.261 or 5.15.212 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.