CVE-2026-45846

Source
https://cve.org/CVERecord?id=CVE-2026-45846
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45846.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-45846
Downstream
Related
Published
2026-05-27T09:24:52.122Z
Modified
2026-07-15T01:49:20.633044045Z
Summary
bareudp: fix NULL pointer dereference in bareudp_fill_metadata_dst()
Details

In the Linux kernel, the following vulnerability has been resolved:

bareudp: fix NULL pointer dereference in bareudpfillmetadata_dst()

bareudpfillmetadatadst() passes bareudp->sock to udptunnel6dstlookup() in the IPv6 path without a NULL check. The socket is only created in bareudpopen() and NULLed in bareudpstop(), 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:udptunnel6dstlookup (net/ipv6/ip6udptunnel.c:160) Call Trace: <TASK> bareudpfillmetadatadst (drivers/net/bareudp.c:532) doexecuteactions (net/openvswitch/actions.c:901) ovsexecuteactions (net/openvswitch/actions.c:1589) ovspacketcmdexecute (net/openvswitch/datapath.c:700) genlfamilyrcvmsgdoit (net/netlink/genetlink.c:1114) genlrcvmsg (net/netlink/genetlink.c:1209) netlinkrcvskb (net/netlink/afnetlink.c:2550) </TASK>

Add a NULL check returning -ESHUTDOWN, consistent with the xmit paths in the same driver.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45846.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
571912c69f0ed731bd1e071ade9dc7ca4aa52065
Fixed
31e010a106ff6cd8ccac4bfee547fd3fa1015574
Fixed
55193df8d6d33318435f19572bf5ea47a22eee28
Fixed
51eef9c072aa3405a6823a96ae666d38a3b48750
Fixed
a0f4e4e8e0f5e24ddd83e3d1221732621cf34636
Fixed
35a115a204be08f97450b0389413e218268ef4a2
Fixed
74a02921c48fcd35a7881956c9e5c52b86595f5d
Fixed
638905520fc4fae6a80991563f264131545ba3df
Fixed
aa6c6d9ee064aabfede4402fd1283424e649ca19

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45846.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.7.0
Fixed
5.10.258
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.209
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.175
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.141
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.91
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.33
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.10

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45846.json"