{"api_version":"1","generated_at":"2026-08-17T10:18:36+00:00","cve":"CVE-2026-68341","urls":{"html":"https://cve.report/CVE-2026-68341","api":"https://cve.report/api/cve/CVE-2026-68341.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-68341","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-68341"},"summary":{"title":"ovpn: fix use after free in unlock_ovpn()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\novpn: fix use after free in unlock_ovpn()\n\nunlock_ovpn() iterates over the release_list using llist_for_each_entry()\nand drops the peer reference inside the loop body via ovpn_peer_put().\n\nIf this drops the last reference, the peer is eventually freed. However,\nllist_for_each_entry() reads peer->release_entry.next in the loop advance\nexpression, which runs after the body. By that time the peer may have\nalready been freed, resulting in a use after free when advancing to the\nnext list entry.\n\nFix this by using llist_for_each_entry_safe(), which caches the next\npointer before executing the loop body.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-08-10 13:20:24","updated_at":"2026-08-17 06:17:42"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"8.8","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"8.8","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":8.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/5b96227c0e8b212b74838424c929fc889aedb555","name":"https://git.kernel.org/stable/c/5b96227c0e8b212b74838424c929fc889aedb555","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4cdb209f12a89c5faf9be0c45edb90ccdf65db0c","name":"https://git.kernel.org/stable/c/4cdb209f12a89c5faf9be0c45edb90ccdf65db0c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e1ad6fe5db719874efa45b2caf9934552e09fc43","name":"https://git.kernel.org/stable/c/e1ad6fe5db719874efa45b2caf9934552e09fc43","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-68341","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68341","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 80747caef33d77f5c1b3d24644e6d7dae69066b5 5b96227c0e8b212b74838424c929fc889aedb555 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 80747caef33d77f5c1b3d24644e6d7dae69066b5 4cdb209f12a89c5faf9be0c45edb90ccdf65db0c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 80747caef33d77f5c1b3d24644e6d7dae69066b5 e1ad6fe5db719874efa45b2caf9934552e09fc43 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.16","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.42 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1.6 7.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"68341","cve":"CVE-2026-68341","epss":"0.005650000","percentile":"0.442330000","score_date":"2026-08-16","updated_at":"2026-08-17 00:01:08"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/net/ovpn/peer.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"5b96227c0e8b212b74838424c929fc889aedb555","status":"affected","version":"80747caef33d77f5c1b3d24644e6d7dae69066b5","versionType":"git"},{"lessThan":"4cdb209f12a89c5faf9be0c45edb90ccdf65db0c","status":"affected","version":"80747caef33d77f5c1b3d24644e6d7dae69066b5","versionType":"git"},{"lessThan":"e1ad6fe5db719874efa45b2caf9934552e09fc43","status":"affected","version":"80747caef33d77f5c1b3d24644e6d7dae69066b5","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/net/ovpn/peer.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.16"},{"lessThan":"6.16","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.42","versionType":"semver"},{"lessThanOrEqual":"7.1.*","status":"unaffected","version":"7.1.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.42","versionStartIncluding":"6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.1.6","versionStartIncluding":"6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2","versionStartIncluding":"6.16","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\novpn: fix use after free in unlock_ovpn()\n\nunlock_ovpn() iterates over the release_list using llist_for_each_entry()\nand drops the peer reference inside the loop body via ovpn_peer_put().\n\nIf this drops the last reference, the peer is eventually freed. However,\nllist_for_each_entry() reads peer->release_entry.next in the loop advance\nexpression, which runs after the body. By that time the peer may have\nalready been freed, resulting in a use after free when advancing to the\nnext list entry.\n\nFix this by using llist_for_each_entry_safe(), which caches the next\npointer before executing the loop body."}],"metrics":[{"cvssV3_1":{"baseScore":8.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:N - unlock_ovpn() is reached directly from remote-peer activity: a malformed/aborted OpenVPN TCP stream schedules ovpn_tcp_peer_del_work() -> ovpn_peer_del() (tcp.c:154/287/506), peer disconnect hits ovpn_tcp_close(), and remote peers falling silent make ovpn_peer_keepalive_work() queue peers onto release_list. No local action is needed to enter the vulnerable loop.\nAC:L - The attacker controls both the trigger and its repetition rate: a remote peer can force transport errors, reconnects and keepalive expiries arbitrarily often, and in MP mode can control how many peers land on release_list at once, plus generate traffic-driven allocation pressure to influence slab reuse of the freed ovpn_peer.\nPR:L - The vulnerable loop only runs for peers already installed in the kernel, which the openvpn userspace daemon does for a connected client, so the attacker acts as an established (low-privileged) VPN peer rather than an unauthenticated stranger; no administrative rights on the target are needed.\nUI:N - Peer removal and the subsequent list walk happen automatically inside the kernel's TCP error/close handling and keepalive worker; no administrator or user action on the victim host is required.\nS:U - The use-after-free corrupts kernel heap state within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The freed ovpn_peer is re-read to obtain the next list pointer, so a reclaimed and re-populated slab object lets the attacker steer the walk onto arbitrary memory that is then dereferenced (peer->sock, peer->refcount), yielding a kernel-memory read primitive and disclosure of sensitive kernel data.\nI:H - Continuing the walk onto a stale/attacker-groomed object causes rcu_replace_pointer() writes, lock_sock() and kref_put() (a controlled decrement plus invocation of a release callback) on a bogus struct ovpn_peer, giving heap-spray-based write and control-flow-hijack potential typical of exploitable UAFs.\nA:H - Dereferencing freed or recycled memory as an ovpn_peer reliably produces oops/panic or slab corruption, taking down the VPN gateway kernel; the path is remotely repeatable, so it is a dependable denial of service."}]}],"providerMetadata":{"dateUpdated":"2026-08-17T05:03:41.213Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/5b96227c0e8b212b74838424c929fc889aedb555"},{"url":"https://git.kernel.org/stable/c/4cdb209f12a89c5faf9be0c45edb90ccdf65db0c"},{"url":"https://git.kernel.org/stable/c/e1ad6fe5db719874efa45b2caf9934552e09fc43"}],"title":"ovpn: fix use after free in unlock_ovpn()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-68341","datePublished":"2026-08-10T12:03:17.821Z","dateReserved":"2026-07-30T09:28:09.384Z","dateUpdated":"2026-08-17T05:03:41.213Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-08-10 13:20:24","lastModifiedDate":"2026-08-17 06:17:42","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"68341","Ordinal":"1","Title":"ovpn: fix use after free in unlock_ovpn()","CVE":"CVE-2026-68341","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"68341","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\novpn: fix use after free in unlock_ovpn()\n\nunlock_ovpn() iterates over the release_list using llist_for_each_entry()\nand drops the peer reference inside the loop body via ovpn_peer_put().\n\nIf this drops the last reference, the peer is eventually freed. However,\nllist_for_each_entry() reads peer->release_entry.next in the loop advance\nexpression, which runs after the body. By that time the peer may have\nalready been freed, resulting in a use after free when advancing to the\nnext list entry.\n\nFix this by using llist_for_each_entry_safe(), which caches the next\npointer before executing the loop body.","Type":"Description","Title":"ovpn: fix use after free in unlock_ovpn()"}]}}}