Description
In the Linux kernel, the following vulnerability has been resolved:

net: ip_gre: require CAP_NET_ADMIN in the device netns for changelink

A tunnel 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.

Add rtnl_dev_link_net_capable() next to rtnl_get_net_ns_capable() in
net/core/rtnetlink.c. It requires CAP_NET_ADMIN in the link netns and is
skipped when the link netns is dev_net(dev), where the rtnl path already
checked it. The other patches in this series use the same helper.

Gate ipgre_changelink() and erspan_changelink() with it, at the top of
the op before any attribute is parsed, because the parsers update live
tunnel fields first. ipgre_netlink_parms() sets t->collect_md before
ip_tunnel_changelink() runs.

Commit 8b484efd5cb4 ("ip6: vti: Use ip6_tnl.net in
vti6_siocdevprivate().") added the same check on the ioctl path. This
adds it on RTM_NEWLINK.
Published: 2026-07-19
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises in the Linux kernel's handling of tunnel link configuration changes. When a changelink operation is invoked, the system verifies the CAP_NET_ADMIN capability only against the device's native network namespace (dev_net(dev)). If the tunnel link resides in a different network namespace (t->net), the capability check is not performed in that namespace. Consequently, a process that has CAP_NET_ADMIN in dev_net(dev) can change a GRE or ERSPAN tunnel that is located in t->net without possessing the required capability there. This results in a local privilege escalation for the process, allowing it to reconfigure tunnels that it otherwise should not be able to modify. The flaw maps to CWE‑266: Least Privilege Violation.

Affected Systems

Any Linux kernel version compiled without the patch that adds the capability check for the tunnel link's network namespace is susceptible. No specific version numbers are provided in the CNA data; therefore, administrators should review the kernel version on systems to determine if the patch (commits adding rtnl_dev_link_net_capable()) has been applied.

Risk and Exploitability

The CVSS score of 8.8 indicates a high severity vulnerability that could compromise configuration integrity of the host's networking stack. The EPSS score is reported as < 1 %, implying a low probability of exploitation at the time of analysis. The flaw is not listed in CISA KEV. The likely attack vector involves a local process with CAP_NET_ADMIN in the device namespace attempting to modify a tunnel in a different namespace; based on the description, it is inferred that the exploitation requires the target tunnel to exist in another namespace. No external network interaction is necessary.

Generated by OpenCVE AI on July 30, 2026 at 22:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the patch correcting the capability check during tunnel changelink operations.
  • If an immediate kernel upgrade is not possible, apply the specific commit that introduces rtnl_dev_link_net_capable() into the kernel source and rebuild the kernel.
  • Reboot the system to load the updated kernel, ensuring the new capability restriction is active.
  • Restrict CAP_NET_ADMIN privileges on processes that operate across multiple network namespaces to reduce the attack surface.

Generated by OpenCVE AI on July 30, 2026 at 22:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4717-1 linux security update
Debian DLA Debian DLA DLA-4720-1 linux security update
Debian DLA Debian DLA DLA-4723-1 linux-6.1 security update
History

Fri, 24 Jul 2026 18:30:00 +0000


Tue, 21 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-266
References
Metrics threat_severity

None

threat_severity

Important


Mon, 20 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}


Sun, 19 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: ip_gre: require CAP_NET_ADMIN in the device netns for changelink A tunnel 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. Add rtnl_dev_link_net_capable() next to rtnl_get_net_ns_capable() in net/core/rtnetlink.c. It requires CAP_NET_ADMIN in the link netns and is skipped when the link netns is dev_net(dev), where the rtnl path already checked it. The other patches in this series use the same helper. Gate ipgre_changelink() and erspan_changelink() with it, at the top of the op before any attribute is parsed, because the parsers update live tunnel fields first. ipgre_netlink_parms() sets t->collect_md before ip_tunnel_changelink() runs. Commit 8b484efd5cb4 ("ip6: vti: Use ip6_tnl.net in vti6_siocdevprivate().") added the same check on the ioctl path. This adds it on RTM_NEWLINK.
Title net: ip_gre: require CAP_NET_ADMIN in the device netns for changelink
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:36:12.246Z

Reserved: 2026-07-19T07:54:57.014Z

Link: CVE-2026-63829

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-63829 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T22:15:13Z

Weaknesses
  • CWE-266

    Incorrect Privilege Assignment