# CVE-2026-23439: udp_tunnel: fix NULL deref caused by udp_sock_create6 when CONFIG_IPV6=n

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-04-03T15:15:23.734Z
- Modified: 2026-11-10T13:18:46.090Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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:
    <TASK>
    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.

(As written by CVE List.)

## Affected

- Linux Linux: from fd384412e199b62c3ddaabd18dce86d0e164c5b9 before dfc96ae0074cc47b5478a59e5aa19233e434243f; from fd384412e199b62c3ddaabd18dce86d0e164c5b9 before 66117dbb3dbae82f86735bf727b1d59cc677afa1; from fd384412e199b62c3ddaabd18dce86d0e164c5b9 before ba7c9ddcdd077942b798979edb035207374d4096; from fd384412e199b62c3ddaabd18dce86d0e164c5b9 before a05a2149386f6dfb4245f522acdbef892acafc84; from fd384412e199b62c3ddaabd18dce86d0e164c5b9 before 9f036aa0fe46c19e938f03d10e02c23f4fffae5e; from fd384412e199b62c3ddaabd18dce86d0e164c5b9 before 003343985f26dfefd0c94b1fe1316a2de74428b9; from fd384412e199b62c3ddaabd18dce86d0e164c5b9 before 12aa4b73a67d95bc739995a2d6943aec2f9785c9; from fd384412e199b62c3ddaabd18dce86d0e164c5b9 before b3a6df291fecf5f8a308953b65ca72b7fc9e015d; 3.18 (not affected: before 3.18; from 5.10.253 up to 5.10.*; from 5.15.203 up to 5.15.*; from 6.1.167 up to 6.1.*; from 6.6.130 up to 6.6.*; from 6.12.78 up to 6.12.*; from 6.18.20 up to 6.18.*; from 6.19.10 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 3.18.1 before 5.10.253; from 5.11 before 5.15.203; from 5.16 before 6.1.167; from 6.2 before 6.6.130; from 6.7 before 6.12.78; from 6.13 before 6.18.20; from 6.19 before 6.19.10; 3.18; 7.0

## References

- <https://git.kernel.org/stable/c/dfc96ae0074cc47b5478a59e5aa19233e434243f> (patch)
- <https://git.kernel.org/stable/c/66117dbb3dbae82f86735bf727b1d59cc677afa1> (patch)
- <https://git.kernel.org/stable/c/ba7c9ddcdd077942b798979edb035207374d4096> (patch)
- <https://git.kernel.org/stable/c/a05a2149386f6dfb4245f522acdbef892acafc84> (patch)
- <https://git.kernel.org/stable/c/9f036aa0fe46c19e938f03d10e02c23f4fffae5e> (patch)
- <https://git.kernel.org/stable/c/003343985f26dfefd0c94b1fe1316a2de74428b9> (patch)
- <https://git.kernel.org/stable/c/12aa4b73a67d95bc739995a2d6943aec2f9785c9> (patch)
- <https://git.kernel.org/stable/c/b3a6df291fecf5f8a308953b65ca72b7fc9e015d> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2026-23439](https://www.cve.org/CVERecord?id=CVE-2026-23439), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2026-23439](https://nvd.nist.gov/vuln/detail/CVE-2026-23439), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2026-23439 · Whole record: https://cve.day/CVE-2026-23439.json · Rebuilt by cve.day 2026-11-25T22:59:17.876Z
