net: ip_vti: 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: 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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 895de9a3488abcdd186680f0af3cce7f2d4d4a6e · fixed in 1caf737e625143c6f23c32d2b747b1a3e42e5699; From 895de9a3488abcdd186680f0af3cce7f2d4d4a6e · fixed in 32edf8aa297745226854eda2d96c0fac66c1bb15; From 895de9a3488abcdd186680f0af3cce7f2d4d4a6e · fixed in 973ead9e565423642e4533e1547b5d2c0476fb03; From 895de9a3488abcdd186680f0af3cce7f2d4d4a6e · fixed in 33fd93961557ec8e3e9958995b28684c5f949394; From 895de9a3488abcdd186680f0af3cce7f2d4d4a6e · fixed in 6d8bc0dc99472d62c57c2a3d436e6ab408592bda; From 895de9a3488abcdd186680f0af3cce7f2d4d4a6e · fixed in 9571af2eec8023af9a1671b7f2cd4ab400011724; From 895de9a3488abcdd186680f0af3cce7f2d4d4a6e · fixed in 88b33ee458a6ca5fbef6c53b9dba772da69dab68; From 895de9a3488abcdd186680f0af3cce7f2d4d4a6e · fixed in 95cceadbfd52d7239bd730afdda0655287d77425
- Linux Linux
3.15
- KernelLinux
From 3.15.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/1caf737e625143c6f23c32d2b747b1a3e42e5699
- stable/c/32edf8aa297745226854eda2d96c0fac66c1bb15
- stable/c/973ead9e565423642e4533e1547b5d2c0476fb03
- stable/c/33fd93961557ec8e3e9958995b28684c5f949394
- stable/c/6d8bc0dc99472d62c57c2a3d436e6ab408592bda
- stable/c/9571af2eec8023af9a1671b7f2cd4ab400011724
- stable/c/88b33ee458a6ca5fbef6c53b9dba772da69dab68
- stable/c/95cceadbfd52d7239bd730afdda0655287d77425