net: sit: require CAP_NET_ADMIN in the device netns for changelink
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: net: sit: require CAP_NET_ADMIN in the device netns for changelink ipip6_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 ipip6_changelink() on rtnl_dev_link_net_capable() at its top, before any attribute is parsed. sit was the one tunnel type not covered by the recent series that added this check to the other changelink() handlers.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 5e6700b3bf98fe98d630bf9c939ad4c85ce95592 · fixed in cb41b308e9d867725d965b291dd085028e36a480; From 5e6700b3bf98fe98d630bf9c939ad4c85ce95592 · fixed in c5a0ae895432596b2f464172da8218e2d84e2932; From 5e6700b3bf98fe98d630bf9c939ad4c85ce95592 · fixed in 7d139dec96691cde96cb40ed293e2d13d994fb4f; From 5e6700b3bf98fe98d630bf9c939ad4c85ce95592 · fixed in 388ccffbd2e7e5e4271f291085a7451865705305; From 5e6700b3bf98fe98d630bf9c939ad4c85ce95592 · fixed in c0ea1aedb37bb979e864ed7787975434bbd9db73; From 5e6700b3bf98fe98d630bf9c939ad4c85ce95592 · fixed in 3118e97dae533fb45964b87bbed1801afcff7c65; From 5e6700b3bf98fe98d630bf9c939ad4c85ce95592 · fixed in 99ae3248b33df94201915d9c32e7470cdf08cfcd; From 5e6700b3bf98fe98d630bf9c939ad4c85ce95592 · fixed in 27ccb68e7cccead5d8c611665a45d23032d468b3
- Linux Linux
3.11
- KernelLinux
From 3.11.0 · fixed in 5.10.261; From 5.11.0 · fixed in 5.15.212; From 5.16.0 · fixed in 6.1.178; From 6.2.0 · fixed in 6.6.145; From 6.7.0 · fixed in 6.12.97; From 6.13.0 · fixed in 6.18.40; From 6.19.0 · fixed in 7.1.5
References 8
git.kernel.org
- stable/c/cb41b308e9d867725d965b291dd085028e36a480
- stable/c/c5a0ae895432596b2f464172da8218e2d84e2932
- stable/c/7d139dec96691cde96cb40ed293e2d13d994fb4f
- stable/c/388ccffbd2e7e5e4271f291085a7451865705305
- stable/c/c0ea1aedb37bb979e864ed7787975434bbd9db73
- stable/c/3118e97dae533fb45964b87bbed1801afcff7c65
- stable/c/99ae3248b33df94201915d9c32e7470cdf08cfcd
- stable/c/27ccb68e7cccead5d8c611665a45d23032d468b3