# CVE-2026-68341: ovpn: fix use after free in unlock\_ovpn()

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.56% (percentile 41, 2026-11-26)
- **Published:** 2026-08-10T12:03:17.821Z
- **Modified:** 2026-08-17T06:17:42.307Z

## Who should check

- Anyone running Linux \>= 80747caef33d77f5c1b3d24644e6d7dae69066b5, \< 5b96227c0e8b212b74838424c929fc889aedb555; \>= 80747caef33d77f5c1b3d24644e6d7dae69066b5, \< 4cdb209f12a89c5faf9be0c45edb90ccdf65db0c; \>= 80747caef33d77f5c1b3d24644e6d7dae69066b5, \< e1ad6fe5db719874efa45b2caf9934552e09fc43
- Anyone running Linux 6.16

## Description

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

ovpn: fix use after free in unlock\_ovpn()

unlock\_ovpn() iterates over the release\_list using llist\_for\_each\_entry()
and drops the peer reference inside the loop body via ovpn\_peer\_put().

If this drops the last reference, the peer is eventually freed. However,
llist\_for\_each\_entry() reads peer-\>release\_entry.next in the loop advance
expression, which runs after the body. By that time the peer may have
already been freed, resulting in a use after free when advancing to the
next list entry.

Fix this by using llist\_for\_each\_entry\_safe(), which caches the next
pointer before executing the loop body.

## Affected and fixed versions

- Linux: \>= 80747caef33d77f5c1b3d24644e6d7dae69066b5, \< 5b96227c0e8b212b74838424c929fc889aedb555; \>= 80747caef33d77f5c1b3d24644e6d7dae69066b5, \< 4cdb209f12a89c5faf9be0c45edb90ccdf65db0c; \>= 80747caef33d77f5c1b3d24644e6d7dae69066b5, \< e1ad6fe5db719874efa45b2caf9934552e09fc43 (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-68341. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-68341.md
Affected: Linux >= 80747caef33d77f5c1b3d24644e6d7dae69066b5, < 5b96227c0e8b212b74838424c929fc889aedb555; >= 80747caef33d77f5c1b3d24644e6d7dae69066b5, < 4cdb209f12a89c5faf9be0c45edb90ccdf65db0c; >= 80747caef33d77f5c1b3d24644e6d7dae69066b5, < e1ad6fe5db719874efa45b2caf9934552e09fc43; Linux 6.16
Fixed in: Linux 5b96227c0e8b212b74838424c929fc889aedb555, Linux 4cdb209f12a89c5faf9be0c45edb90ccdf65db0c

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-68341 being exploited?

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

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

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

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

Linux \>= 80747caef33d77f5c1b3d24644e6d7dae69066b5, \< 5b96227c0e8b212b74838424c929fc889aedb555; \>= 80747caef33d77f5c1b3d24644e6d7dae69066b5, \< 4cdb209f12a89c5faf9be0c45edb90ccdf65db0c; \>= 80747caef33d77f5c1b3d24644e6d7dae69066b5, \< e1ad6fe5db719874efa45b2caf9934552e09fc43; Linux 6.16.

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

Yes. Fixed in Linux 5b96227c0e8b212b74838424c929fc889aedb555, Linux 4cdb209f12a89c5faf9be0c45edb90ccdf65db0c. No fix listed yet: follow the vendor advisory.

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

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/5b96227c0e8b212b74838424c929fc889aedb555>
- other: <https://git.kernel.org/stable/c/4cdb209f12a89c5faf9be0c45edb90ccdf65db0c>
- other: <https://git.kernel.org/stable/c/e1ad6fe5db719874efa45b2caf9934552e09fc43>

## 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-68341>

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