# CVE-2026-68342: ovpn: avoid putting unrelated P2P peer on socket release

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-08-10T12:03:18.852Z
- **Modified:** 2026-08-17T06:17:42.420Z

## Who should check

- Anyone running Linux \>= f6226ae7a0cd47aaa9175aca6a1e19600f884cbf, \< c5bf6b39be235ef578af4d39872f0c68cda3b937; \>= f6226ae7a0cd47aaa9175aca6a1e19600f884cbf, \< 016a50379d17b886d12a4efa5211a418e035fe70; \>= f6226ae7a0cd47aaa9175aca6a1e19600f884cbf, \< b52c5103f64ee825996ca1ab8df7283cde8c5f86
- Anyone running Linux 6.16

## Description

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

ovpn: avoid putting unrelated P2P peer on socket release

ovpn\_peer\_release\_p2p() is called when an OVPN UDP socket is being
destroyed. It checks the currently published P2P peer and releases it only
if that peer still uses the socket being destroyed.

A peer replacement can publish a new peer before the old UDP socket is
destroyed. When the old socket destruction path runs afterwards,
ovpn\_peer\_release\_p2p() observes the new peer through ovpn-\>peer. Since the
new peer uses a different socket, the function takes the socket mismatch
branch.

That branch still calls ovpn\_peer\_put(peer). At this point, however, peer
is the currently published replacement peer, not the peer associated with
the socket being destroyed. Dropping its reference can free it while
ovpn-\>peer still points to it, leading to later use-after-free accesses
from the peer and socket cleanup paths.

KASAN reports this as a slab-use-after-free on the kmalloc-1k ovpn\_peer
object. In the reproducer, the object is allocated from ovpn\_peer\_new() via
ovpn\_nl\_peer\_new\_doit(), and freed through ovpn\_peer\_release\_rcu() from RCU
callback processing. Observed access sites include ovpn\_peer\_remove(),
ovpn\_socket\_release(), ovpn\_nl\_peer\_del\_notify(), and unlock\_ovpn().

Fix this by returning from the socket mismatch branch without putting the
peer.

## Affected and fixed versions

- Linux: \>= f6226ae7a0cd47aaa9175aca6a1e19600f884cbf, \< c5bf6b39be235ef578af4d39872f0c68cda3b937; \>= f6226ae7a0cd47aaa9175aca6a1e19600f884cbf, \< 016a50379d17b886d12a4efa5211a418e035fe70; \>= f6226ae7a0cd47aaa9175aca6a1e19600f884cbf, \< b52c5103f64ee825996ca1ab8df7283cde8c5f86 (cvelist)
- Linux: 6.16 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-68342. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-68342.md
Affected: Linux >= f6226ae7a0cd47aaa9175aca6a1e19600f884cbf, < c5bf6b39be235ef578af4d39872f0c68cda3b937; >= f6226ae7a0cd47aaa9175aca6a1e19600f884cbf, < 016a50379d17b886d12a4efa5211a418e035fe70; >= f6226ae7a0cd47aaa9175aca6a1e19600f884cbf, < b52c5103f64ee825996ca1ab8df7283cde8c5f86; Linux 6.16
Fixed in: Linux 016a50379d17b886d12a4efa5211a418e035fe70

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-68342 being exploited?

There is no confirmed exploitation: CVE-2026-68342 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-68342?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-68342?

Linux \>= f6226ae7a0cd47aaa9175aca6a1e19600f884cbf, \< c5bf6b39be235ef578af4d39872f0c68cda3b937; \>= f6226ae7a0cd47aaa9175aca6a1e19600f884cbf, \< 016a50379d17b886d12a4efa5211a418e035fe70; \>= f6226ae7a0cd47aaa9175aca6a1e19600f884cbf, \< b52c5103f64ee825996ca1ab8df7283cde8c5f86; Linux 6.16.

### Is there a fix for CVE-2026-68342?

Yes. Fixed in Linux 016a50379d17b886d12a4efa5211a418e035fe70. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-68342?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/c5bf6b39be235ef578af4d39872f0c68cda3b937>
- other: <https://git.kernel.org/stable/c/016a50379d17b886d12a4efa5211a418e035fe70>
- other: <https://git.kernel.org/stable/c/b52c5103f64ee825996ca1ab8df7283cde8c5f86>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-68342>

HTML: <https://flawdb.com/CVE-2026-68342> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-68342>
