CVE-2026-45846
Analyzed Analyzed - Analysis Complete

NULL pointer dereference in Linux kernel bareudp module

Vulnerability report for CVE-2026-45846, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-05-27

Last updated on: 2026-06-25

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: bareudp: fix NULL pointer dereference in bareudp_fill_metadata_dst() bareudp_fill_metadata_dst() passes bareudp->sock to udp_tunnel6_dst_lookup() in the IPv6 path without a NULL check. The socket is only created in bareudp_open() and NULLed in bareudp_stop(), so calling this function while the device is down triggers a NULL dereference via sock->sk. BUG: kernel NULL pointer dereference, address: 0000000000000018 RIP: 0010:udp_tunnel6_dst_lookup (net/ipv6/ip6_udp_tunnel.c:160) Call Trace: <TASK> bareudp_fill_metadata_dst (drivers/net/bareudp.c:532) do_execute_actions (net/openvswitch/actions.c:901) ovs_execute_actions (net/openvswitch/actions.c:1589) ovs_packet_cmd_execute (net/openvswitch/datapath.c:700) genl_family_rcv_msg_doit (net/netlink/genetlink.c:1114) genl_rcv_msg (net/netlink/genetlink.c:1209) netlink_rcv_skb (net/netlink/af_netlink.c:2550) </TASK> Add a NULL check returning -ESHUTDOWN, consistent with the xmit paths in the same driver.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-05-27
Last Modified
2026-06-25
Generated
2026-07-06
AI Q&A
2026-05-27
EPSS Evaluated
2026-07-05
NVD
EUVD

Affected Vendors & Products

Showing 8 associated CPEs
Vendor Product Version / Range
linux linux_kernel 7.1
linux linux_kernel From 6.2 (inc) to 6.6.141 (exc)
linux linux_kernel From 6.7 (inc) to 6.12.91 (exc)
linux linux_kernel From 6.13 (inc) to 6.18.33 (exc)
linux linux_kernel From 6.19 (inc) to 7.0.10 (exc)
linux linux_kernel From 5.16 (inc) to 6.1.175 (exc)
linux linux_kernel From 5.11 (inc) to 5.15.209 (exc)
linux linux_kernel From 5.7 (inc) to 5.10.258 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-476 The product dereferences a pointer that it expects to be valid but is NULL.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in the Linux kernel's bareudp driver, specifically in the function bareudp_fill_metadata_dst(). The function calls udp_tunnel6_dst_lookup() in the IPv6 path without checking if the socket (bareudp->sock) is NULL. Since the socket is only created in bareudp_open() and set to NULL in bareudp_stop(), calling bareudp_fill_metadata_dst() while the device is down causes a NULL pointer dereference, leading to a kernel crash.

The issue is fixed by adding a NULL check that returns an error code (-ESHUTDOWN) if the socket is NULL, preventing the kernel from dereferencing a NULL pointer.

Impact Analysis

This vulnerability can cause a kernel NULL pointer dereference, which typically results in a kernel crash or system instability. An attacker or a certain sequence of events could trigger this condition, potentially causing denial of service (DoS) by crashing the affected system.

Mitigation Strategies

The vulnerability is caused by a NULL pointer dereference in the bareudp_fill_metadata_dst() function when the device is down. To mitigate this vulnerability, ensure that your Linux kernel is updated to a version where this issue is fixed.

Specifically, apply the patch that adds a NULL check returning -ESHUTDOWN in bareudp_fill_metadata_dst(), consistent with the xmit paths in the same driver.

Until the patch is applied, avoid calling functions that trigger bareudp_fill_metadata_dst() while the device is down to prevent kernel crashes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-45846. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart