VDB

CVE-2026-98076

CVE-2026-98076 PUBLISHED

tracing/probes: Fix use-after-free on field name/type of events with multiple probes

Reported by linux · Published September 25, 2026

In the Linux kernel, the following vulnerability has been resolved: tracing/probes: Fix use-after-free on field name/type of events with multiple probes The fields of a probe-based dynamic event (kprobe, uprobe, eprobe and fprobe events) are created in traceprobe_define_arg_fields() by handing the probe_arg name/type strings to trace_define_field(), which only stores the pointers without copying. Those strings are owned by the trace_probe and are freed when that probe is removed. An event can have several probes attached. The field list is defined only once, by the first probe that registers the event, but it is kept alive by any surviving sibling probe. Deleting just that first probe by symbol - # primary A: fields are defined from A's args echo 'p:kprobes/ev vfs_read a1=$arg1' > kprobe_events # append B: shares A's event call echo 'p:kprobes/ev vfs_write a1=$arg1' >> kprobe_events # delete only A (matched by symbol), B survives echo '-:kprobes/ev vfs_read' >> kprobe_events frees A's args (trace_probe_cleanup() -> traceprobe_free_probe_arg()), but trace_probe_unlink() keeps the trace_probe_event because the probe list is not empty. The event call stays registered via B while its fields now reference freed memory. Any field lookup then reads it, e.g. echo 'a1 == 1' > events/kprobes/ev/filter BUG: KASAN: slab-use-after-free in strcmp+0xa7/0xb0 Call Trace: strcmp trace_find_event_field parse_pred process_preds create_filter apply_event_filter event_filter_write field->name references parg->name (kstrdup'd, freed with the probe) and, for array arguments, field->type references parg->fmt (kmalloc'd, freed with the probe) - the scalar type otherwise points at the static fmttype rodata, which is safe. Have traceprobe_define_arg_fields() duplicate the name and type strings and anchor the copies on the trace_probe_event, which embeds the event call and outlives every individual probe; trace_probe_event_free() releases them. The reproducer above triggers reliably; the field lookup and the delete both run under event_mutex, so this is a dangling reference after removal rather than a race. The issue was found by the autokbug dynamic kernel fuzzer at Tencent Yunding Lab.

EPSS 0.16% · 5.7th percentile

Fixed versions

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

PackageEcosystemFixed in
kernel6.18-develAmazon Linux1:6.18.54-121.166.amzn2023
perfAmazon Linux1:6.1.189-236.399.amzn2023
kernel6.18-toolsAmazon Linux1:6.18.54-121.166.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.111-136.204.amzn2023
kernelAmazon Linux1:6.1.189-236.399.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.54-121.166.amzn2023
kernel-develAmazon Linux1:6.1.189-236.399.amzn2023
perf6.12Amazon Linux1:6.12.111-136.204.amzn2023
kernel6.18-modules-extraAmazon Linux1:6.18.54-121.166.amzn2023
kernel-toolsAmazon Linux1:6.1.189-236.399.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.111-136.204.amzn2023
kernel6.18Amazon Linux1:6.18.54-121.166.amzn2023

21 more packages have a fixed version. See every fix in Lookup.

Risk scores

EPSS Score
0.16%
5.7th percentile

Affected products

VendorProductVersions
LinuxLinuxca89bc071d5e4e981dcc52e0ca90f4500d332e42, ca89bc071d5e4e981dcc52e0ca90f4500d332e42, ca89bc071d5e4e981dcc52e0ca90f4500d332e42
LinuxLinux5.4, 0, 5.10.271
amazon:2023kernel6.18-devel0
amazon:2023perf0
amazon:2023kernel6.18-tools0
amazon:2023kernel6.12-tools0
amazon:2023kernel0
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel-devel0
amazon:2023perf6.120
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel-tools0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.180
amazon:2023python3-perf6.180
amazon:2023kernel6.12-headers0
amazon:2023bpftool6.180
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-livepatch-6.12.111-136.2040
amazon:2023kernel-livepatch-6.18.54-121.1660

…and 19 more

Timeline

  • Sep 25, 2026 CVE Published
  • Sep 26, 2026 EPSS Score (10 in total, the first dated here)
  • Oct 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-98076
vulnetix vdb fixes CVE-2026-98076

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-98076/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 ›