rtnetlink: add missing netlink_ns_capable() check for peer netns
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.246.19.147.0In the Linux kernel, the following vulnerability has been resolved:
rtnetlink: add missing netlink_ns_capable() check for peer netns
rtnl_newlink() lacks a CAP_NET_ADMIN capability check on the peer network namespace when creating paired devices (veth, vxcan, netkit). This allows an unprivileged user with a user namespace to create interfaces in arbitrary network namespaces, including init_net.
Add a netlink_ns_capable() check for CAP_NET_ADMIN in the peer namespace before allowing device creation to proceed.
From the CVE record · Linux
The Linux kernel’s rtnl_newlink() lacks a capability check in the peer network namespace when creating paired devices. A local unprivileged user with a user namespace can create interfaces in arbitrary network namespaces, including init_net, without CAP_NET_ADMIN in the peer namespace.
Administrators running Linux kernels that allow unprivileged users to use user namespaces should check their systems; affected versions were not specified.