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.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade kernel6.18-develUpgrade bpftool6.18Upgrade kernel6.18-toolsUpgrade perf6.18Upgrade kernel6.18-modules-extra-commonUpgrade kernel6.18-modules-extraUpgrade kernel6.18-tools-develUpgrade kernel6.18Upgrade kernel-livepatch-6.18.35-68.127Upgrade python3-perf6.18-debuginfoUpgrade bpftool6.18-debuginfoUpgrade kernel6.18-debuginfo-common-aarch64Upgrade perf6.18-debuginfoUpgrade kernel6.18-debuginfoUpgrade kernel6.18-debuginfo-common-x86_64Upgrade microvm-kernel6.18Upgrade kernel6.18-headersUpgrade kernel6.18-tools-debuginfoUpgrade python3-perf6.18 | Aug 10, 2026 | Jul 19, 2026 |
| Ubuntu | — | Upgrade linux-image-oracle-64kUpgrade linux-image-7.0.0-1008-oracleUpgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-raspi-7.0Upgrade linux-image-gcpUpgrade linux-image-7.0.0-1015-raspi-realtimeUpgrade linux-image-gcp-64k-7.0Upgrade linux-image-7.0.0-1009-awsUpgrade linux-image-azure-fdeUpgrade linux-image-nvidia-bosUpgrade linux-image-raspi-realtimeUpgrade linux-image-azure-7.0Upgrade linux-image-gcp-7.0Upgrade linux-image-7.0.0-1008-oracle-64kUpgrade linux-image-gcp-64kUpgrade linux-image-nvidia-7.0Upgrade linux-image-oracleUpgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-7.0.0-1009-azure-fdeUpgrade linux-image-7.0.0-1011-oracleUpgrade linux-image-7.0.0-1014-azureUpgrade linux-image-nvidia-64kUpgrade linux-image-oracle-64k-7.0Upgrade linux-image-awsUpgrade linux-image-ibm-7.0Upgrade linux-image-raspiUpgrade linux-image-nvidiaUpgrade linux-image-7.0.0-1010-azureUpgrade linux-image-nvidia-bos-7.0Upgrade linux-image-ibmUpgrade linux-image-7.0.0-1016-nvidia-64kUpgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-raspi-realtime-7.0Upgrade linux-image-7.0.0-1011-oracle-64kUpgrade linux-image-7.0.0-2016-nvidia-bos-64kUpgrade linux-image-7.0.0-2016-nvidia-bosUpgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-7.0.0-1010-ibmUpgrade linux-image-nvidia-64k-7.0Upgrade linux-image-nvidia-bos-64kUpgrade linux-image-7.0.0-1015-raspiUpgrade linux-image-aws-64kUpgrade linux-image-azure-fde-7.0Upgrade linux-image-aws-7.0Upgrade linux-image-aws-64k-7.0Upgrade linux-image-7.0.0-1016-nvidiaUpgrade linux-image-oracle-7.0Upgrade linux-image-7.0.0-1009-aws-64kUpgrade linux-image-azure | Jul 21, 2026 | Jul 20, 2026 |
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub