# CVE-2026-45846: bareudp: fix NULL pointer dereference in bareudp\_fill\_metadata\_dst()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-27 · Modified: 2026-11-06
- Aliases: UBUNTU-CVE-2026-45846, DEBIAN-CVE-2026-45846
- Record: https://cvemate.com/vulnerability/CVE-2026-45846 · JSON: https://cvemate.com/vulnerability/CVE-2026-45846/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.173%, percentile 7.01%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 158)

- debian linux (Debian): \< 6.1.176-1 \| \< 6.12.94-1 \| \< 7.0.10-1
- ubuntu linux (Ubuntu): \< 5.15.0-186.196 \| \< 6.8.0-136.136 \| All versions (No fix recorded) \| \< 7.0.0-28.28
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1112.119 \| \< 6.8.0-1061.64 \| All versions (No fix recorded) \| \< 7.0.0-1009.9
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1112.119~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1061.64~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1112.119+fips1 \| \< 6.8.0-1061.64+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1117.126 \| \< 6.8.0-1063.71 \| \< 7.0.0-1010.10
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 51)

- <https://git.kernel.org/stable/c/31e010a106ff6cd8ccac4bfee547fd3fa1015574>
- <https://git.kernel.org/stable/c/55193df8d6d33318435f19572bf5ea47a22eee28>
- <https://git.kernel.org/stable/c/51eef9c072aa3405a6823a96ae666d38a3b48750>
- <https://git.kernel.org/stable/c/a0f4e4e8e0f5e24ddd83e3d1221732621cf34636>
- <https://git.kernel.org/stable/c/35a115a204be08f97450b0389413e218268ef4a2>
- <https://git.kernel.org/stable/c/74a02921c48fcd35a7881956c9e5c52b86595f5d>
- <https://git.kernel.org/stable/c/638905520fc4fae6a80991563f264131545ba3df>
- <https://git.kernel.org/stable/c/aa6c6d9ee064aabfede4402fd1283424e649ca19>
- <https://ubuntu.com/security/CVE-2026-45846>
- <https://www.cve.org/CVERecord?id=CVE-2026-45846>
- <https://git.kernel.org/linus/aa6c6d9ee064aabfede4402fd1283424e649ca19>
- <https://ubuntu.com/security/notices/USN-8566-1>
- <https://ubuntu.com/security/notices/USN-8568-1>
- <https://ubuntu.com/security/notices/USN-8569-1>
- <https://ubuntu.com/security/notices/USN-8567-1>
- <https://ubuntu.com/security/notices/USN-8574-1>
- <https://ubuntu.com/security/notices/USN-8575-1>
- <https://ubuntu.com/security/notices/USN-8576-1>
- <https://ubuntu.com/security/notices/USN-8593-1>
- <https://ubuntu.com/security/notices/USN-8574-2>

---

Data as of 2026-12-05T03:59:39.513Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
