CVE-2026-68342
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
10/08/2026
Last modified:
17/08/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
ovpn: avoid putting unrelated P2P peer on socket release<br />
<br />
ovpn_peer_release_p2p() is called when an OVPN UDP socket is being<br />
destroyed. It checks the currently published P2P peer and releases it only<br />
if that peer still uses the socket being destroyed.<br />
<br />
A peer replacement can publish a new peer before the old UDP socket is<br />
destroyed. When the old socket destruction path runs afterwards,<br />
ovpn_peer_release_p2p() observes the new peer through ovpn->peer. Since the<br />
new peer uses a different socket, the function takes the socket mismatch<br />
branch.<br />
<br />
That branch still calls ovpn_peer_put(peer). At this point, however, peer<br />
is the currently published replacement peer, not the peer associated with<br />
the socket being destroyed. Dropping its reference can free it while<br />
ovpn->peer still points to it, leading to later use-after-free accesses<br />
from the peer and socket cleanup paths.<br />
<br />
KASAN reports this as a slab-use-after-free on the kmalloc-1k ovpn_peer<br />
object. In the reproducer, the object is allocated from ovpn_peer_new() via<br />
ovpn_nl_peer_new_doit(), and freed through ovpn_peer_release_rcu() from RCU<br />
callback processing. Observed access sites include ovpn_peer_remove(),<br />
ovpn_socket_release(), ovpn_nl_peer_del_notify(), and unlock_ovpn().<br />
<br />
Fix this by returning from the socket mismatch branch without putting the<br />
peer.


