Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-64045

published high CVSS 3.1 · 8.4

ovpn: tcp - use cached peer pointer in ovpn_tcp_close()

Published
19 Jul 2026, 15:39:30 UTC
Updated
05 Aug 2026, 12:38:37 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux11851cbd60ea1e5abbd97619d69845ead99303d6 to < e5460eb7238c19d651a9b22b2378b587033a4095 · 11851cbd60ea1e5abbd97619d69845ead99303d6 to < d3ef441907fca7c340979e577a3db3bb634bf166 · 11851cbd60ea1e5abbd97619d69845ead99303d6 to < 775d8d7ad02aa345e1588424a6a8b9ae49fb9012 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.16 (affected) · 0 to < 6.16 (unaffected · semver) · 6.18.34 through 6.18.* (unaffected · semver) · 7.0.11 through 7.0.* (unaffected · semver) · 7.1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2026-1881 Fixed Not stated Amazon Linux assessment
Ubuntu noble linux-azure-7.0 Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-azure-7.0-cloud-tools-7.0.0-1014 Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-azure-7.0-headers-7.0.0-1014 Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu noble linux-azure-7.0-tools-7.0.0-1014 Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-buildinfo-7.0.0-1011-gcp Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-buildinfo-7.0.0-1011-gcp-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-buildinfo-7.0.0-1011-oracle Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-buildinfo-7.0.0-1011-oracle-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-buildinfo-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-buildinfo-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-buildinfo-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-cloud-tools-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-gcp-7.0 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-gcp-7.0-headers-7.0.0-1011 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-gcp-7.0-tools-7.0.0-1011 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-headers-7.0.0-1011-gcp Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-headers-7.0.0-1011-gcp-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-headers-7.0.0-1011-oracle Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-headers-7.0.0-1011-oracle-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-headers-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-headers-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-headers-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-image-unsigned-7.0.0-1011-gcp Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-image-unsigned-7.0.0-1011-gcp-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-image-unsigned-7.0.0-1011-oracle Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-image-unsigned-7.0.0-1011-oracle-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-image-unsigned-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-image-unsigned-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-image-unsigned-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-modules-7.0.0-1011-gcp Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-modules-7.0.0-1011-gcp-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-modules-7.0.0-1011-oracle Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-modules-7.0.0-1011-oracle-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-modules-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-modules-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-modules-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-modules-iwlwifi-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-modules-nvidia-fs-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-modules-nvidia-fs-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-nvidia-7.0 Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-nvidia-7.0-headers-7.0.0-1016 Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-nvidia-7.0-tools-7.0.0-1016 Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-oracle-7.0 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-oracle-7.0-headers-7.0.0-1011 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-oracle-7.0-tools-7.0.0-1011 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-tools-7.0.0-1011-gcp Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-tools-7.0.0-1011-gcp-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-tools-7.0.0-1011-oracle Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-tools-7.0.0-1011-oracle-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-tools-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-tools-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-tools-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu resolute linux-aws Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-aws-cloud-tools-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-aws-headers-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-aws-tools-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-azure Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-azure-cloud-tools-7.0.0-1010 Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-azure-fde Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-azure-fde-cloud-tools-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-azure-fde-headers-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-azure-fde-tools-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-azure-headers-7.0.0-1010 Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-azure-tools-7.0.0-1010 Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-buildinfo-7.0.0-1008-oracle Advisory build 7.0.0-1008.8 USN-8593-1
Ubuntu resolute linux-buildinfo-7.0.0-1008-oracle-64k Advisory build 7.0.0-1008.8 USN-8593-1
Ubuntu resolute linux-buildinfo-7.0.0-1009-aws Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-buildinfo-7.0.0-1009-aws-64k Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-buildinfo-7.0.0-1009-azure-fde Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-buildinfo-7.0.0-1010-azure Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-buildinfo-7.0.0-1010-ibm Advisory build 7.0.0-1010.10 USN-8593-1
Ubuntu resolute linux-buildinfo-7.0.0-1015-raspi Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-buildinfo-7.0.0-1015-raspi-realtime Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-buildinfo-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16 USN-8663-1
Ubuntu resolute linux-buildinfo-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16 USN-8663-1
Ubuntu resolute linux-buildinfo-7.0.0-2016-nvidia-bos Advisory build 7.0.0-2016.16 USN-8664-1
Ubuntu resolute linux-buildinfo-7.0.0-2016-nvidia-bos-64k Advisory build 7.0.0-2016.16 USN-8664-1
Ubuntu resolute linux-cloud-tools-7.0.0-1009-aws Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-cloud-tools-7.0.0-1009-aws-64k Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-cloud-tools-7.0.0-1009-azure-fde Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-cloud-tools-7.0.0-1010-azure Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-headers-7.0.0-1008-oracle Advisory build 7.0.0-1008.8 USN-8593-1
Ubuntu resolute linux-headers-7.0.0-1008-oracle-64k Advisory build 7.0.0-1008.8 USN-8593-1
Ubuntu resolute linux-headers-7.0.0-1009-aws Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-headers-7.0.0-1009-aws-64k Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-headers-7.0.0-1009-azure-fde Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-headers-7.0.0-1010-azure Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-headers-7.0.0-1010-ibm Advisory build 7.0.0-1010.10 USN-8593-1
Ubuntu resolute linux-headers-7.0.0-1015-raspi Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-headers-7.0.0-1015-raspi-realtime Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-headers-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16 USN-8663-1
Ubuntu resolute linux-headers-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16 USN-8663-1
Ubuntu resolute linux-headers-7.0.0-2016-nvidia-bos Advisory build 7.0.0-2016.16 USN-8664-1
Ubuntu resolute linux-headers-7.0.0-2016-nvidia-bos-64k Advisory build 7.0.0-2016.16 USN-8664-1
Ubuntu resolute linux-ibm Advisory build 7.0.0-1010.10 USN-8593-1
Ubuntu resolute linux-ibm-headers-7.0.0-1010 Advisory build 7.0.0-1010.10 USN-8593-1
Ubuntu resolute linux-ibm-tools-7.0.0-1010 Advisory build 7.0.0-1010.10 USN-8593-1
Ubuntu resolute linux-image-7.0.0-1015-raspi Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-image-7.0.0-1015-raspi-realtime Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-image-unsigned-7.0.0-1008-oracle Advisory build 7.0.0-1008.8 USN-8593-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: ovpn: tcp - use cached peer pointer in ovpn_tcp_close() ovpn_tcp_close() loads the ovpn_socket via rcu_dereference_sk_user_data() under rcu_read_lock(), takes a reference on sock->peer, caches the peer pointer in a local, and drops the read lock. It then passes sock->peer (rather than the cached local) to ovpn_peer_del(), re-dereferencing the ovpn_socket after the RCU read section has ended. Unlike ovpn_tcp_sendmsg(), which uses the same "load under RCU, use after unlock" pattern but is protected by lock_sock() held across the function, ovpn_tcp_close() runs without the socket lock: inet_release() invokes sk_prot->close() without taking lock_sock first. ovpn_socket_release() can therefore complete its kref_put -> detach -> synchronize_rcu -> kfree(sock) sequence concurrently, in the window after ovpn_tcp_close() drops rcu_read_lock() but before it dereferences sock->peer. The synchronize_rcu() in ovpn_socket_release() protects readers that use the dereferenced pointer inside the RCU read section, not those that escape the pointer to a local and use it afterwards. A reproducer follows the pattern of commit 94560267d6c4 ("ovpn: tcp - don't deref NULL sk_socket member after tcp_close()"): trigger a peer removal (keepalive expiration or netlink OVPN_CMD_DEL_PEER) at the same moment userspace closes the TCP fd. That commit fixed the detach-side of the same race window; this one fixes the close-side at a different victim. Tighten the entry block to read sock->peer exactly once into the cached peer local, and route all subsequent uses (the hold check, the ovpn_peer_del() call, and the prot->close() invocation) through that local. sock->peer is only ever written once in ovpn_socket_new() under lock_sock(), before rcu_assign_sk_user_data() publishes the ovpn_socket, and is never reassigned afterwards - but the previous multi-read pattern made that invariant implicit rather than explicit. The same multi-read shape exists in ovpn_tcp_recvmsg(), ovpn_tcp_sendmsg(), ovpn_tcp_data_ready() and ovpn_tcp_write_space(); those will be cleaned up via a dedicated helper in a follow-up net-next series.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

10

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.4 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable code runs only in ovpn_tcp_close(), reached via the close() syscall path (inet_release() -> sk_prot->close) on a TCP socket attached to the ovpn driver. Remote network packets do not directly invoke this function. AC:L - The reproducer is a race between closing the TCP fd and concurrent peer removal (keepalive expiry or OVPN_CMD_DEL_PEER). The attacker controls both sides by timing close() against peer deletion, and can retry until the window is hit. PR:N - On an internet-facing OpenVPN server with kernel TCP offload, a remote VPN peer needs no Linux credentials: stopping traffic triggers kernel keepalive expiry and ovpn_socket_release(), while the local daemon concurrently closes the TCP socket as part of normal teardown. UI:N - Exploitation does not require any victim user action beyond normal automated VPN server operation reacting to peer timeout or disconnect. S:U - Impact is confined to kernel memory corruption and privilege escalation within the host kernel; it does not cross a VM, container, or IOMMU security boundary. C:H - This is a use-after-free: after RCU ends, ovpn_tcp_close() re-dereferences sock->peer on a freed ovpn_socket, enabling reads of attacker-influenced freed heap contents and potential information disclosure. I:H - The stale sock->peer pointer is passed to ovpn_peer_del(), which operates on peer structures and locks; corrupted pointers can cause arbitrary kernel memory corruption exploitable for control-flow hijacking. A:H - The UAF can cause kernel oops/panic during peer deletion or TCP close, and use-after-free on kmalloc objects routinely causes system crashes even when not fully weaponized.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 11851cbd60ea1e5abbd97619d69845ead99303d6 to < e5460eb7238c19d651a9b22b2378b587033a4095 (affected · git)11851cbd60ea1e5abbd97619d69845ead99303d6 to < d3ef441907fca7c340979e577a3db3bb634bf166 (affected · git)11851cbd60ea1e5abbd97619d69845ead99303d6 to < 775d8d7ad02aa345e1588424a6a8b9ae49fb9012 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.16 (affected)0 to < 6.16 (unaffected · semver)6.18.34 through 6.18.* (unaffected · semver)7.0.11 through 7.0.* (unaffected · semver)7.1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

ovpn: tcp - use cached peer pointer in ovpn_tcp_close()

Provenance

Schema
5.2
Searchable
yes
Content hash
4b54bc0f850c118fdd5ebd507c9be51d02e1f78256af1d93ed548acb1ef59241
Ingested
23 Sep 2026, 09:25:47 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected