Skip to main content

Linux Kernel CVE-2026-64045

| EUVDEUVD-2026-45618 HIGH
NULL Pointer Dereference (CWE-476)
2026-07-19 Linux GHSA-xr5j-v9xh-823c
8.4
CVSS 3.1 · Vendor: Linux
Share

Severity by source

Vendor (Linux) PRIMARY
8.4 HIGH
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI
7.0 HIGH

Local UAF requiring an established ovpn TCP socket and a concurrent peer removal; the timing window makes AC:H and the setup/trigger requires local privilege, so PR:L, with full kernel-memory impact.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE
HIGH
qualitative

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Generated
Jul 20, 2026 - 17:05 vuln.today
CVSS changed
Jul 20, 2026 - 15:22 NVD
8.4 (HIGH)
Patch available
Jul 19, 2026 - 17:03 EUVD
CVE Published
Jul 19, 2026 - 15:39 cve.org
HIGH 8.4
CVE Published
Jul 19, 2026 - 15:39 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

AnalysisAI

Use-after-free in the Linux kernel's in-kernel OpenVPN data channel offload (ovpn) TCP transport allows a local attacker to corrupt kernel memory by racing a TCP socket close against peer removal. The flaw lives in ovpn_tcp_close(), which caches a peer pointer under an RCU read lock but then escapes and dereferences sock->peer after the lock is dropped and without holding lock_sock(), so ovpn_socket_release() can free the socket concurrently. There is no public exploit identified at time of analysis and EPSS is low (0.18%), but the CVSS 8.4 rating reflects full high impact to confidentiality, integrity, and availability if the race is won. A vendor patch is available.

Technical ContextAI

The affected component is the ovpn module - the kernel-native OpenVPN data channel offload (DCO) subsystem introduced in Linux 6.16 that moves OpenVPN's encrypted packet path into the kernel. The specific code is the TCP transport's close handler, ovpn_tcp_close(). It uses rcu_dereference_sk_user_data() under rcu_read_lock() to load the ovpn_socket, takes a reference on the peer, caches the peer in a local, then drops the RCU read lock - but subsequently re-dereferences sock->peer (the struct member) rather than the cached local for the hold check, the ovpn_peer_del() call, and the prot->close() invocation. The root cause class is a use-after-free / concurrency race (CWE-416 use-after-free driven by CWE-362 race condition; NVD lists CWE as N/A). Unlike ovpn_tcp_sendmsg(), which uses the same load-under-RCU-use-after-unlock pattern but is serialized by lock_sock() held across the function, ovpn_tcp_close() runs with no socket lock because inet_release() calls sk_prot->close() without first taking lock_sock. That leaves a window in which ovpn_socket_release()'s kref_put -> detach -> synchronize_rcu -> kfree(sock) sequence can free the ovpn_socket before the stale sock->peer member is read. The synchronize_rcu() only protects readers that stay inside the RCU read section, not those that escaped the pointer to a local. This is the close-side counterpart to the detach-side race fixed by commit 94560267d6c4. CPE data identifies the affected product as cpe:2.3:a:linux:linux:*.

RemediationAI

Vendor-released patch: update to a fixed Linux kernel - 6.18.34, 7.0.11, or 7.1 (or later) - which route the hold check, ovpn_peer_del() call, and prot->close() invocation through the single cached peer local so sock->peer is read exactly once inside the RCU section. Apply the fix commits from kernel.org stable: https://git.kernel.org/stable/c/e5460eb7238c19d651a9b22b2378b587033a4095, https://git.kernel.org/stable/c/d3ef441907fca7c340979e577a3db3bb634bf166, and https://git.kernel.org/stable/c/775d8d7ad02aa345e1588424a6a8b9ae49fb9012, and consult https://nvd.nist.gov/vuln/detail/CVE-2026-64045. If you cannot patch immediately, the most effective compensating control is to avoid the kernel-native OpenVPN data channel offload over TCP: unload or blacklist the ovpn kernel module where it is not required, or run OpenVPN in userspace / use UDP transport instead of the in-kernel TCP path, which removes exposure to ovpn_tcp_close() at the cost of losing DCO performance for affected tunnels. Additionally restrict CAP_NET_ADMIN and netlink OVPN_CMD_DEL_PEER access to trusted management processes to reduce an attacker's ability to deterministically trigger the peer-removal side of the race, accepting that this narrows but does not eliminate the keepalive-expiration trigger path.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 16.0 Affected

Share

CVE-2026-64045 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy