Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2813C496D4F for ; Fri, 25 Sep 2026 10:35:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332555; cv=none; b=m3vbtnnkGZMU86WElqA515yU1TwpNBzwVc1tzggzRqzXOE2YZIiy/IkOhppRyNKcaQnCNd7EePZLWNBtKndoXcVfRwpReNBt/QjrahXYVkhGi/Yw6vzHPSGYFI9FeU0JyypSHER6UsM8ZuYFwjeJaysnH38qYJ8ElzCncGIx/yo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332555; c=relaxed/simple; bh=bAyaIwSLsc2lL+6IAkW80x05HERMqus6ywnVdVQLt4Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n9w+jYJsl42UQnO4sUikQKh7+q0Ajt2+C4blANjwrreofdI/PF3OGVP1CKjE5cLvlsZp/dX42FmC+GaGRY1Ailo3y+xftYZtnBvDgBGqvcVmGeoxSKuI9HsQnIHNn0+09gNnS9/NdsYTysj25J0mKL54C6gU8gz9RaUJGK27bmc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HsYZIVJg; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HsYZIVJg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 465D61F00893; Fri, 25 Sep 2026 10:35:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332552; bh=4GGfoQXIORp9lrNMVb4mHnh1wQVb+WYTzd+bsOnodok=; h=From:To:Cc:Subject:Date:Reply-To; b=HsYZIVJgOPuJkRZBVEw13c5lGaWu+Jg7MLMljoBtgMuzVLzLlmZejeNVrFmioeUTa RzNHCgTN6oLTUe/VzA8VSLT1IPNs5VqQbecEukYDCC07KfuAxbr8bHgSTnkNdib8XF zY3mn4p5ZzFY3C+28r/ri3S9vTTFhQ6BglBwDOtE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98076: tracing/probes: Fix use-after-free on field name/type of events with multiple probes Date: Fri, 25 Sep 2026 12:26:18 +0200 Message-ID: <2026092537-CVE-2026-98076-c4db@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4434; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AE7vuEZks8MnVonryTBhXsZ2LzZm16rwBL9ES67st44=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvHPvL1huWl+0Xy86WFTezaDil8LplUY9xl9+Z2cf9 mU7tjOtI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaSxsYwz1TJ9tT1q6em8PB2 XdhVterBySIDf4YFO4980P4V1K/uYzfhhstF2bYzPI5GAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== 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. The Linux kernel CVE team has assigned CVE-2026-98076 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit ca89bc071d5e4e981dcc52e0ca90f4500d332e42 and fixed in 6.12.111 with commit 68ae584169c7a41fc9bc4677c1d368983cf44b21 Issue introduced in 5.4 with commit ca89bc071d5e4e981dcc52e0ca90f4500d332e42 and fixed in 6.18.53 with commit 411c9080a776577664531b4f7d3ee53b7a747ba8 Issue introduced in 5.4 with commit ca89bc071d5e4e981dcc52e0ca90f4500d332e42 and fixed in 7.2.7 with commit 178ff2e011e21fbebdf57f5d58a408fe59136d82 Issue introduced in 5.4 with commit ca89bc071d5e4e981dcc52e0ca90f4500d332e42 and fixed in 7.3-rc2 with commit 86b7a239ec6b14a7544200ede85474c6f5526049 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-98076 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: kernel/trace/trace_probe.c kernel/trace/trace_probe.h Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/68ae584169c7a41fc9bc4677c1d368983cf44b21 https://git.kernel.org/stable/c/411c9080a776577664531b4f7d3ee53b7a747ba8 https://git.kernel.org/stable/c/178ff2e011e21fbebdf57f5d58a408fe59136d82 https://git.kernel.org/stable/c/86b7a239ec6b14a7544200ede85474c6f5526049