VDB

CVE-2026-98240

CVE-2026-98240 PUBLISHED

net: ip_tunnel: initialize `options_len` before referencing options

Reported by linux · Published October 6, 2026

In the Linux kernel, the following vulnerability has been resolved: net: ip_tunnel: initialize `options_len` before referencing options The following command triggers a kernel panic: ip link add d0 type dummy; ip link set d0 up ip route add 10.30.0.0/16 \ encap ip id 300 geneve_opts 4660:66:11223344 dev d0 memcpy: detected buffer overflow: 4 byte write of buffer size 0 kernel BUG at lib/string_helpers.c:1044! ... ip_tun_parse_opts.part.0.cold+0x10/0x10 ip_tun_build_state+0x116/0x2a0 On kernels built with GCC 15+ and `CONFIG_FORTIFY_SOURCE`, the fortified `memcpy()` got 0 sized destination with request of 4 bytes length: static int ip_tun_parse_opts_geneve(...) { ... attr = tb[LWTUNNEL_IP_OPT_GENEVE_DATA]; data_len = nla_len(attr); /* == 4 */ struct geneve_opt *opt = ip_tunnel_info_opts(info) + opts_len; memcpy(opt->opt_data, nla_data(attr), data_len); /* ^^^^^^^^^^^^^ 0 since options_len is assigned afterwards */ Fixed by initializing the counter before the options are referenced. Matching what `tunnel_key_opts_set()` already does.

EPSS 0.18% · 8.0th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
bpftool6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel-livepatch-6.18.54-121.166Amazon Linux1:1.0-0.amzn2023
python3-perf6.18Amazon Linux1:6.18.54-121.166.amzn2023

Risk scores

EPSS Score
0.18%
8.0th percentile

Affected products

VendorProductVersions
LinuxLinuxbb5e62f2d547c4de6d1b144cbce2373a76c33f18, bb5e62f2d547c4de6d1b144cbce2373a76c33f18, bb5e62f2d547c4de6d1b144cbce2373a76c33f18
LinuxLinux6.15, 0, 6.18.54
amazon:2023bpftool6.180
amazon:2023kernel-livepatch-6.18.54-121.1660
amazon:2023python3-perf6.180
LinuxLinux7.3, 7.2.8, 6.18.54
amazon:2023kernel6.18-tools0
amazon:2023perf6.180
amazon:2023kernel6.180
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.18-devel0
amazon:2023microvm-kernel6.180
linuxlinux_kernel6.15, 6.15, 6.15
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.18-headers0

Timeline

  • Oct 6, 2026 EPSS Score (8 in total, the first dated here)
  • Oct 6, 2026 Coalition ESS Score
  • Oct 6, 2026 CVE Published
  • Oct 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-98240
vulnetix vdb fixes CVE-2026-98240

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-98240/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›