{"id":"CVE-2026-63829","aliases":["CVE-2026-63829"],"related":[],"kind":"vulnerability","state":"published","title":"net: ip_gre: require CAP_NET_ADMIN in the device netns for changelink","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ip_gre: require CAP_NET_ADMIN in the device netns for changelink\n\nA tunnel changelink() operates on at most two netns, dev_net(dev) and\nthe tunnel link netns t->net. They differ once the device is created in\nor moved to a netns other than the one the request runs in. The rtnl\nchangelink path checks CAP_NET_ADMIN only against dev_net(dev), so a\ncaller privileged there but not in t->net can rewrite a tunnel that\nlives in t->net.\n\nAdd rtnl_dev_link_net_capable() next to rtnl_get_net_ns_capable() in\nnet/core/rtnetlink.c. It requires CAP_NET_ADMIN in the link netns and is\nskipped when the link netns is dev_net(dev), where the rtnl path already\nchecked it. The other patches in this series use the same helper.\n\nGate ipgre_changelink() and erspan_changelink() with it, at the top of\nthe op before any attribute is parsed, because the parsers update live\ntunnel fields first. ipgre_netlink_parms() sets t->collect_md before\nip_tunnel_changelink() runs.\n\nCommit 8b484efd5cb4 (\"ip6: vti: Use ip6_tnl.net in\nvti6_siocdevprivate().\") added the same check on the ioctl path. This\nadds it on RTM_NEWLINK.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ip_gre: require CAP_NET_ADMIN in the device netns for changelink\n\nA tunnel changelink() operates on at most two netns, dev_net(dev) and\nthe tunnel link netns t->net. They differ once the device is created in\nor moved to a netns other than the one the request runs in. The rtnl\nchangelink path checks CAP_NET_ADMIN only against dev_net(dev), so a\ncaller privileged there but not in t->net can rewrite a tunnel that\nlives in t->net.\n\nAdd rtnl_dev_link_net_capable() next to rtnl_get_net_ns_capable() in\nnet/core/rtnetlink.c. It requires CAP_NET_ADMIN in the link netns and is\nskipped when the link netns is dev_net(dev), where the rtnl path already\nchecked it. The other patches in this series use the same helper.\n\nGate ipgre_changelink() and erspan_changelink() with it, at the top of\nthe op before any attribute is parsed, because the parsers update live\ntunnel fields first. ipgre_netlink_parms() sets t->collect_md before\nip_tunnel_changelink() runs.\n\nCommit 8b484efd5cb4 (\"ip6: vti: Use ip6_tnl.net in\nvti6_siocdevprivate().\") added the same check on the ioctl path. This\nadds it on RTM_NEWLINK.","source":"cvelist"}],"published":"2026-07-19T12:02:23.191Z","modified":"2026-10-22T18:17:26.850Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-862"],"affected":[{"ranges":[{"type":"git","introduced":"b57708add31494175be741ed3fd24023b50c3423","fixed":"19275943d8fe903eb7b9aa53e380e41efd042ada","status":"affected"},{"type":"git","introduced":"b57708add31494175be741ed3fd24023b50c3423","fixed":"866b0f5ae599490bd496fd84581c68ac8b94e6af","status":"affected"},{"type":"git","introduced":"b57708add31494175be741ed3fd24023b50c3423","fixed":"92b766fc55156e0da2ecd0c2302c971118f8a229","status":"affected"},{"type":"git","introduced":"b57708add31494175be741ed3fd24023b50c3423","fixed":"e54c05ed3d9c28733fb9e5837219aca3691defa3","status":"affected"},{"type":"git","introduced":"b57708add31494175be741ed3fd24023b50c3423","fixed":"9831bc9ecb402957810c2045c663fbfe9b09e296","status":"affected"},{"type":"git","introduced":"b57708add31494175be741ed3fd24023b50c3423","fixed":"1697957eb0971d420dde42862b88eb43506a1105","status":"affected"},{"type":"git","introduced":"b57708add31494175be741ed3fd24023b50c3423","fixed":"47b5d3d506609b08b2e1f7c14f0b681a1953d572","status":"affected"},{"type":"git","introduced":"b57708add31494175be741ed3fd24023b50c3423","fixed":"8165f7ff57d9667d2bb477ef6af83ede7fed4ad7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.16","status":"unaffected"},{"type":"semver","introduced":"5.10.261","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.212","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.178","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.145","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.95","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.38","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.3","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.16","fixed":"5.10.261"},{"status":"affected","introduced":"5.11","fixed":"5.15.212"},{"status":"affected","introduced":"5.16","fixed":"6.1.178"},{"status":"affected","introduced":"6.2","fixed":"6.6.145"},{"status":"affected","introduced":"6.7","fixed":"6.12.95"},{"status":"affected","introduced":"6.13","fixed":"6.18.38"},{"status":"affected","introduced":"6.19","fixed":"7.1.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/19275943d8fe903eb7b9aa53e380e41efd042ada","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/866b0f5ae599490bd496fd84581c68ac8b94e6af","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92b766fc55156e0da2ecd0c2302c971118f8a229","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e54c05ed3d9c28733fb9e5837219aca3691defa3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9831bc9ecb402957810c2045c663fbfe9b09e296","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1697957eb0971d420dde42862b88eb43506a1105","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/47b5d3d506609b08b2e1f7c14f0b681a1953d572","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8165f7ff57d9667d2bb477ef6af83ede7fed4ad7","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:31:15.242Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-63829","url":"https://www.cve.org/CVERecord?id=CVE-2026-63829","licence":"CVE Terms of Use","modified":"2026-10-19T20:07:49.035Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-63829","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63829","licence":"Public domain","modified":"2026-10-22T18:17:26.850Z"}],"updatedAt":"2026-11-25T22:59:28.746Z","epss":{"score":0.00148,"percentile":0.04163,"date":"2026-12-01T12:00:22.000Z"}}