CVE-2026-64043: ovpn: fix race between deleting interface and adding new peer

Published Jul 19, 2026
·
Updated

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 ovpndellink(), when all existing peers are freed and the device is queued for deregistration, but a CMDPEERNEW 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 ndouninit(), when the netdevice has already been removed from the netdev list.

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

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

ovpndellink() is now empty and can be removed.

Affected Software

7 affected components
Linux Linux kernel
Linux Linux kernel>=6.16<6.18.34
Linux Linux kernel>=6.19<7.0.11
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3
Linux Linux kernel=7.1-rc4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Fix the OpenVPN netdevice deletion race by releasing all peers in ndo_uninit(), and make ovpn_peer_add() bail out while holding netdev_lock when the device reg_state is not REGISTERED, preventing CMD_PEER_NEW from adding a peer during interface deletion.

Event History

Jul 19, 2026
CVE Published
via MITRE·03:39 PM
Data Sourced
via MITRE·03:39 PM
Description
Data Sourced
via NVD·04:17 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Who can trigger this issue?

An attacker needs local access and low-privileged permissions to send a CMD_PEER_NEW netlink request while an existing ovpn interface is being deleted. Exploitation depends on winning a very narrow race window.

2

What is the practical impact if the race succeeds?

A new peer can retain a reference to the netdevice after deletion has begun, causing the device to hang and preventing its unregistration. The reported impact is availability only; no confidentiality or integrity impact is specified.

3

Are systems affected during normal ovpn operation?

The race requires concurrent interface deletion and peer creation. The described condition occurs specifically while an ovpn interface is being removed and a CMD_PEER_NEW message arrives before deregistration completes.

4

What does the fix change?

The fix releases peers during ndo_uninit(), after the netdevice has been removed from the netdevice list, and rejects peer additions unless the device registration state is REGISTERED. The registration-state check is performed while holding netdev_lock to avoid state-change races.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203