Description
In the Linux kernel, the following vulnerability has been resolved: xfrm: xfrm_interface: require CAP_NET_ADMIN in the device netns for changelink xfrmi_changelink() operates on at most two netns, dev_net(dev) and the interface link netns xi->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 xi->net can rewrite an interface that lives in xi->net. Gate xfrmi_changelink() on rtnl_dev_link_net_capable() at its top, before any attribute is parsed.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
f203b76d78092faf248db3f851840fbecf80b40e to < 04c1aa57d08471b1953bf27c84ac9b3d78d71831affectedf203b76d78092faf248db3f851840fbecf80b40e to < bdfd1c21d90e628a58a9de79e024cdfcbedfa15caffectedf203b76d78092faf248db3f851840fbecf80b40e to < 80ec68bba11f7f387c0e4099c2d7b2c84943eb99affectedf203b76d78092faf248db3f851840fbecf80b40e to < e9c90756f10da334fb31552e52c61f1dba69f491affectedf203b76d78092faf248db3f851840fbecf80b40e to < 37b61946d278c7deb0d40ba8f2b6fc0478d61dabaffectedf203b76d78092faf248db3f851840fbecf80b40e to < 8ca2a19a987a7d1cb4c916ed9723a1c6993b4276affectedf203b76d78092faf248db3f851840fbecf80b40e to < 3ba2b2ef7d6a63b190f15cfc2b4ba0fba59928eaaffectedf203b76d78092faf248db3f851840fbecf80b40e to < 095515d89b19b6cc19dfcdc846f97403ed1ebce3affected
Linux Linux
Default version status: affected
4.19affected0 to < 4.19unaffected5.10.261 to ≤ 5.10.*unaffected5.15.212 to ≤ 5.15.*unaffected6.1.178 to ≤ 6.1.*unaffected6.6.145 to ≤ 6.6.*unaffected6.12.97 to ≤ 6.12.*unaffected6.18.40 to ≤ 6.18.*unaffected7.1.5 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/04c1aa57d08471b1953bf27c84ac9b3d78d71831 ↗
- https://git.kernel.org/stable/c/bdfd1c21d90e628a58a9de79e024cdfcbedfa15c ↗
- https://git.kernel.org/stable/c/80ec68bba11f7f387c0e4099c2d7b2c84943eb99 ↗
- https://git.kernel.org/stable/c/e9c90756f10da334fb31552e52c61f1dba69f491 ↗
- https://git.kernel.org/stable/c/37b61946d278c7deb0d40ba8f2b6fc0478d61dab ↗
- https://git.kernel.org/stable/c/8ca2a19a987a7d1cb4c916ed9723a1c6993b4276 ↗
- https://git.kernel.org/stable/c/3ba2b2ef7d6a63b190f15cfc2b4ba0fba59928ea ↗
- https://git.kernel.org/stable/c/095515d89b19b6cc19dfcdc846f97403ed1ebce3 ↗