{"id":"CVE-2026-45918","published":"2026-05-27T12:17:34Z","modified":"2026-05-27T12:17:34Z","title":"ovpn: tcp - don't deref NULL sk_socket member after tcp_close()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\novpn: tcp - don't deref NULL sk_socket member after tcp_close()\n\nWhen deleting a peer in case of keepalive expiration, the peer is\nremoved from the OpenVPN hashtable and is temporary inserted in a\n\"release list\" for further processing.\n\nThis happens in:\novpn_peer_keepalive_work()\n  unlock_ovpn(release_list)\n\nThis processing includes detaching from the socket being used to\ntalk to this peer, by restoring its original proto and socket\nops/callbacks.\n\nIn case of TCP it may happen that, while the peer is sitting in\nthe release list, userspace decides to close the socket.\nThis will result in a concurrent execution of:\n\ntcp_close(sk)\n  __tcp_close(sk)\n    sock_orphan(sk)\n      sk_set_socket(sk, NULL)\n\nThe last function call will set sk->sk_socket to NULL.\n\nWhen the releasing routine is resumed, ovpn_tcp_socket_detach()\nwill attempt to dereference sk->sk_socket to restore its original\nops member. This operation will crash due to sk->sk_socket being NULL.\n\nFix this race condition by testing-and-accessing\nsk->sk_socket atomically under sk->sk_callback_lock.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00163,"percentile":0.05485,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f998b2c4bec487063a586695159f9a1856e81c56","tags":[]},{"url":"https://git.kernel.org/stable/c/b9142cf4e066c825ec68752a7dcaceda700bbe26","tags":[]},{"url":"https://git.kernel.org/stable/c/94560267d6c41b1ff3fafbab726e3f8a55a6af34","tags":[]}],"priority":{"score":1.1,"factors":[{"name":"EPSS percentile","points":1.1}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 11851cbd60ea1e5abbd97619d69845ead99303d6, < f998b2c4bec487063a586695159f9a1856e81c56",">= 11851cbd60ea1e5abbd97619d69845ead99303d6, < b9142cf4e066c825ec68752a7dcaceda700bbe26",">= 11851cbd60ea1e5abbd97619d69845ead99303d6, < 94560267d6c41b1ff3fafbab726e3f8a55a6af34"]},{"vendor":"Linux","product":"Linux","versions":["6.16"]}],"euvd":{"id":"EUVD-2026-32384","exploited":false,"provenance":"source"}}