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

ovpn: fix race between deleting interface and adding new peer

While deleting an existing ovpn interface, there is a very
narrow window where adding a new peer via netlink may cause
the netdevice to hang and prevent its unregistration.

It may happen during ovpn_dellink(), when all existing peers are
freed and the device is queued for deregistration, but a
CMD_PEER_NEW message comes in adding a new peer that takes again
a reference to the netdev.

At this point there is no way to release the device because we are
under the assumption that all peers were already released.

Fix the race condition by releasing all peers in ndo_uninit(),
when the netdevice has already been removed from the netdev
list.

Also ovpn_peer_add() has now an extra check that forces the
function to bail out if the device reg_state is not REGISTERED.
This way any incoming CMD_PEER_NEW racing with the interface
deletion routine will simply stop before adding the peer.

Note that the above check happens while holding the netdev_lock
to prevent racing netdev state changes.

ovpn_dellink() is now empty and can be removed.
Published: 2026-07-19
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel the OpenVPN (ovpn) network device driver contains a race condition that can occur while an interface is being deleted. If a new peer is added via netlink during the narrow period where all peers have already been freed and the device is queued for deregistration, the netdevice can hang and fail to unregister. The result is a denial‑of‑service condition in which the affected network interface becomes unresponsive and cannot be removed until system restart, potentially disrupting traffic and system reliability.

Affected Systems

The vulnerability affects the OpenVPN (ovpn) driver integrated into the Linux kernel. All distributions that ship a kernel with the vulnerable ovpn module are impacted – specifically any kernel version that has not yet been patched after commit 097d62df38314c14b88fab9096f3461baf158e2b. The vulnerable code resides in the general Linux kernel, not limited to any particular vendor, so every installation running the affected kernel is at risk.

Risk and Exploitability

The EPSS score is below 1 %, indicating that historical exploitation is very unlikely, and the issue is not listed in the CISA KEV catalog. The flaw is a privilege‑bound race condition that requires a user with netlink or CAP_NET_ADMIN permissions to send a CMD_PEER_NEW message while an ovpn interface is in the process of being torn down. Because the attacker must be able to interact with the kernel’s netlink interface, the attack vector is local and privileged; remote exploitation is not feasible without additional compromise. The CVSS score is not supplied, so an official rating cannot be assigned, but the combination of a local privileged requirement, low EPSS, and the denial‑of‑service impact suggests a moderate overall risk for affected systems.

Generated by OpenCVE AI on July 30, 2026 at 20:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that incorporates the ovpn race‑condition fix (e.g., kernel commits above 097d62df38314c14b88fab9096f3461baf158e2b).
  • Restart networking or the entire system to ensure the fixed kernel module is loaded.
  • Avoid performing netlink OVPN peer additions while deleting an interface; if necessary, serialize the operations or stop the OVPN service before interface removal.

Generated by OpenCVE AI on July 30, 2026 at 20:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Mon, 20 Jul 2026 12:15:00 +0000


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

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ovpn: fix race between deleting interface and adding new peer While deleting an existing ovpn interface, there is a very narrow window where adding a new peer via netlink may cause the netdevice to hang and prevent its unregistration. It may happen during ovpn_dellink(), when all existing peers are freed and the device is queued for deregistration, but a CMD_PEER_NEW message comes in adding a new peer that takes again a reference to the netdev. At this point there is no way to release the device because we are under the assumption that all peers were already released. Fix the race condition by releasing all peers in ndo_uninit(), when the netdevice has already been removed from the netdev list. Also ovpn_peer_add() has now an extra check that forces the function to bail out if the device reg_state is not REGISTERED. This way any incoming CMD_PEER_NEW racing with the interface deletion routine will simply stop before adding the peer. Note that the above check happens while holding the netdev_lock to prevent racing netdev state changes. ovpn_dellink() is now empty and can be removed.
Title ovpn: fix race between deleting interface and adding new peer
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-07-19T15:39:29.225Z

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

Link: CVE-2026-64043

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity :

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

Links: CVE-2026-64043 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T21:00:22Z

Weaknesses
  • CWE-413

    Improper Resource Locking