Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 634403C73C5 for ; Fri, 3 Apr 2026 15:25:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775229938; cv=none; b=uLAH2v/FEeewANOuo/82eQGf9rkhzw7fvEls2NLmsJgLeJ18fxvSapxQcebrz1zSlLGVKJDQ0LVDdX5Lj3Vvx4O+ZZfkCX+bEfH8ThNE8kMCREr01qWQnXqtU+6YrASTPyK9Sbq0ftUSPD+5XnsNhxnfrTxzqkgFokOUPjyMQpE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775229938; c=relaxed/simple; bh=dhuVeR5h2ccyUeDtQscBAwFV2GMKDMxi9lwGwPFPjrk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j46zqKVo3Jjb8bcEzofQy27jSIIAf1SHxFn1KoOLMrmdxOy3HdPlWt5NeIAik65/G0vo8/d10kCjHQEqYns5xFb3XxatSAuZPvdloSrxuYxP05ko5d79xxN5IxqrkJMctJYV4R9dm0I55wuCXX3caxQwzK8vGbCiVWM4xHBp/m4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oCsFvWlG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oCsFvWlG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A500FC4CEF7; Fri, 3 Apr 2026 15:25:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775229938; bh=dhuVeR5h2ccyUeDtQscBAwFV2GMKDMxi9lwGwPFPjrk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=oCsFvWlG5UlHIMMAhxtw9CS1cO4sMhcweb1Ju5gr/6XizktQkfClbOyoO2F1sFCE3 OE7ZsSKMnnUZJCDKttd/VvkDYy2QdmeqMzRsR+nduF0n2tW82QpsGjQLy2arM8h2+1 ZiapNVUq5HT6Av0y+Xjh/ggGNdqct2idTd4hrhIU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23439: udp_tunnel: fix NULL deref caused by udp_sock_create6 when CONFIG_IPV6=n Date: Fri, 3 Apr 2026 17:18:20 +0200 Message-ID: <2026040313-CVE-2026-23439-ed88@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4331; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JP6QrEczo8TlRXYvXDAzbF7VXqkuC0Tp4uxNgt6u3xY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnnb5my5qn9m+IaeVjs9gbFq9J1v8utju9x0a2Q/77u8 d6D3ZHPOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiXjIM8/NPRjzsuWI1rcrq 6A/bpdM/nPph4MMwh+v/kheRkQ/feTC5z+k8MbHa77agPQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: udp_tunnel: fix NULL deref caused by udp_sock_create6 when CONFIG_IPV6=n When CONFIG_IPV6 is disabled, the udp_sock_create6() function returns 0 (success) without actually creating a socket. Callers such as fou_create() then proceed to dereference the uninitialized socket pointer, resulting in a NULL pointer dereference. The captured NULL deref crash: BUG: kernel NULL pointer dereference, address: 0000000000000018 RIP: 0010:fou_nl_add_doit (net/ipv4/fou_core.c:590 net/ipv4/fou_core.c:764) [...] Call Trace: genl_family_rcv_msg_doit.constprop.0 (net/netlink/genetlink.c:1114) genl_rcv_msg (net/netlink/genetlink.c:1194 net/netlink/genetlink.c:1209) [...] netlink_rcv_skb (net/netlink/af_netlink.c:2550) genl_rcv (net/netlink/genetlink.c:1219) netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) netlink_sendmsg (net/netlink/af_netlink.c:1894) __sock_sendmsg (net/socket.c:727 (discriminator 1) net/socket.c:742 (discriminator 1)) __sys_sendto (./include/linux/file.h:62 (discriminator 1) ./include/linux/file.h:83 (discriminator 1) net/socket.c:2183 (discriminator 1)) __x64_sys_sendto (net/socket.c:2213 (discriminator 1) net/socket.c:2209 (discriminator 1) net/socket.c:2209 (discriminator 1)) do_syscall_64 (arch/x86/entry/syscall_64.c:63 (discriminator 1) arch/x86/entry/syscall_64.c:94 (discriminator 1)) entry_SYSCALL_64_after_hwframe (net/arch/x86/entry/entry_64.S:130) This patch makes udp_sock_create6 return -EPFNOSUPPORT instead, so callers correctly take their error paths. There is only one caller of the vulnerable function and only privileged users can trigger it. The Linux kernel CVE team has assigned CVE-2026-23439 to this issue. Affected and fixed versions =========================== Issue introduced in 3.18 with commit fd384412e199b62c3ddaabd18dce86d0e164c5b9 and fixed in 6.1.167 with commit ba7c9ddcdd077942b798979edb035207374d4096 Issue introduced in 3.18 with commit fd384412e199b62c3ddaabd18dce86d0e164c5b9 and fixed in 6.6.130 with commit a05a2149386f6dfb4245f522acdbef892acafc84 Issue introduced in 3.18 with commit fd384412e199b62c3ddaabd18dce86d0e164c5b9 and fixed in 6.12.78 with commit 9f036aa0fe46c19e938f03d10e02c23f4fffae5e Issue introduced in 3.18 with commit fd384412e199b62c3ddaabd18dce86d0e164c5b9 and fixed in 6.18.20 with commit 003343985f26dfefd0c94b1fe1316a2de74428b9 Issue introduced in 3.18 with commit fd384412e199b62c3ddaabd18dce86d0e164c5b9 and fixed in 6.19.10 with commit 12aa4b73a67d95bc739995a2d6943aec2f9785c9 Issue introduced in 3.18 with commit fd384412e199b62c3ddaabd18dce86d0e164c5b9 and fixed in 7.0-rc5 with commit b3a6df291fecf5f8a308953b65ca72b7fc9e015d Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-23439 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: include/net/udp_tunnel.h Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/ba7c9ddcdd077942b798979edb035207374d4096 https://git.kernel.org/stable/c/a05a2149386f6dfb4245f522acdbef892acafc84 https://git.kernel.org/stable/c/9f036aa0fe46c19e938f03d10e02c23f4fffae5e https://git.kernel.org/stable/c/003343985f26dfefd0c94b1fe1316a2de74428b9 https://git.kernel.org/stable/c/12aa4b73a67d95bc739995a2d6943aec2f9785c9 https://git.kernel.org/stable/c/b3a6df291fecf5f8a308953b65ca72b7fc9e015d