net: ip6_gre: 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 4.20, 5.5, 5.10.261, 5.15.212, 6.1.178, and 4 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: ip6_gre: require CAP_NET_ADMIN in the device netns for changelink ip6gre_changelink() and ip6erspan_changelink() operate 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 both ops on rtnl_dev_link_net_capable() at their 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 690afc165bb314354667f67157c1a1aea7dc797a · fixed in 129f8939e5af683cec3a1a5edcb40a64636ad81e; From 690afc165bb314354667f67157c1a1aea7dc797a · fixed in e3724dedf57761c6de52f4d604ec74f66fd61611; From 690afc165bb314354667f67157c1a1aea7dc797a · fixed in 220162c9fedbe992da70d70f50a10da4f45f914c; From 690afc165bb314354667f67157c1a1aea7dc797a · fixed in 1d4d8ee002083ca4ead5353662bf8362428af57f; From 690afc165bb314354667f67157c1a1aea7dc797a · fixed in 0caa9f348f8b5356900de77b0bb89a697c4aff20; From 690afc165bb314354667f67157c1a1aea7dc797a · fixed in 03d8843b143ebbbfaf48511922abc6e886575a61; From 690afc165bb314354667f67157c1a1aea7dc797a · fixed in c38c8b0db3c65b597e7ece317b6cb59de3d15e69; From 690afc165bb314354667f67157c1a1aea7dc797a · fixed in f00a50876d2818bd6dc86fa98b3ef360884c53c8; From 4.19.100 · fixed in 4.20; From 5.4.16 · fixed in 5.5
- Linux Linux
5.5
- KernelLinux
From 5.5.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/129f8939e5af683cec3a1a5edcb40a64636ad81e
- stable/c/e3724dedf57761c6de52f4d604ec74f66fd61611
- stable/c/220162c9fedbe992da70d70f50a10da4f45f914c
- stable/c/1d4d8ee002083ca4ead5353662bf8362428af57f
- stable/c/0caa9f348f8b5356900de77b0bb89a697c4aff20
- stable/c/03d8843b143ebbbfaf48511922abc6e886575a61
- stable/c/c38c8b0db3c65b597e7ece317b6cb59de3d15e69
- stable/c/f00a50876d2818bd6dc86fa98b3ef360884c53c8