Linux
net: ip_vti: require CAP_NET_ADMIN in the device netns for changelink
In the Linux kernel, the following vulnerability has been resolved: net: ip_vti: require CAP_NET_ADMIN in the device netns for changelink vti_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 vti_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
- >= 895de9a3488abcdd186680f0af3cce7f2d4d4a6e, < 1caf737e625143c6f23c32d2b747b1a3e42e5699
- >= 895de9a3488abcdd186680f0af3cce7f2d4d4a6e, < 32edf8aa297745226854eda2d96c0fac66c1bb15
- >= 895de9a3488abcdd186680f0af3cce7f2d4d4a6e, < 973ead9e565423642e4533e1547b5d2c0476fb03
- >= 895de9a3488abcdd186680f0af3cce7f2d4d4a6e, < 33fd93961557ec8e3e9958995b28684c5f949394
- >= 895de9a3488abcdd186680f0af3cce7f2d4d4a6e, < 6d8bc0dc99472d62c57c2a3d436e6ab408592bda
- >= 895de9a3488abcdd186680f0af3cce7f2d4d4a6e, < 9571af2eec8023af9a1671b7f2cd4ab400011724
- >= 895de9a3488abcdd186680f0af3cce7f2d4d4a6e, < 88b33ee458a6ca5fbef6c53b9dba772da69dab68
- >= 895de9a3488abcdd186680f0af3cce7f2d4d4a6e, < 95cceadbfd52d7239bd730afdda0655287d77425
Fixed in 1caf737e625143c6f23c32d2b747b1a3e42e5699, 32edf8aa297745226854eda2d96c0fac66c1bb15, 973ead9e565423642e4533e1547b5d2c0476fb03, 33fd93961557ec8e3e9958995b28684c5f949394, 6d8bc0dc99472d62c57c2a3d436e6ab408592bda, 9571af2eec8023af9a1671b7f2cd4ab400011724, 88b33ee458a6ca5fbef6c53b9dba772da69dab68, 95cceadbfd52d7239bd730afdda0655287d77425
- 3.15
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 1caf737e625143c6f23c32d2b747b1a3e42e5699 or 32edf8aa297745226854eda2d96c0fac66c1bb15 or 973ead9e565423642e4533e1547b5d2c0476fb03 or 33fd93961557ec8e3e9958995b28684c5f949394 or 6d8bc0dc99472d62c57c2a3d436e6ab408592bda or 9571af2eec8023af9a1671b7f2cd4ab400011724 or 88b33ee458a6ca5fbef6c53b9dba772da69dab68 or 95cceadbfd52d7239bd730afdda0655287d77425 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.