CVE-2026-68341

Source
https://cve.org/CVERecord?id=CVE-2026-68341
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68341.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-68341
Downstream
Published
2026-08-10T12:03:17.821Z
Modified
2026-08-18T03:30:57.669100206Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
ovpn: fix use after free in unlock_ovpn()
Details

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

ovpn: fix use after free in unlock_ovpn()

unlockovpn() iterates over the releaselist using llistforeachentry() and drops the peer reference inside the loop body via ovpnpeer_put().

If this drops the last reference, the peer is eventually freed. However, llistforeachentry() reads peer->releaseentry.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 llistforeachentrysafe(), which caches the next pointer before executing the loop body.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68341.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
80747caef33d77f5c1b3d24644e6d7dae69066b5
Fixed
5b96227c0e8b212b74838424c929fc889aedb555
Fixed
4cdb209f12a89c5faf9be0c45edb90ccdf65db0c
Fixed
e1ad6fe5db719874efa45b2caf9934552e09fc43

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68341.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.16.0
Fixed
6.18.42
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68341.json"