CVE-2026-99233: tracing/histograms: Verify event_call identity when updating synth_event refcount
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
tracing/histograms: Verify event_call identity when updating synth_event refcount
In event_hist_trigger_parse() and hist_unreg_all(), the histogram registration and unregistration paths look up find_synth_event() using trace_event_name(file->event_call) and adjust se->ref if a match is found.
Because find_synth_event() only compares the event basename, registering or removing a histogram on a non-synthetic trace event whose basename matches a synthetic event erroneously modifies the synthetic event's reference count. If a histogram is registered on the non-synthetic event before the synthetic event is created and removed afterwards, se->ref is decremented without a matching increment, allowing the synthetic event to be freed while an active histogram action still holds a pointer to it.
Introduce find_synth_event_call() to verify that &se->call matches file->event_call before adjusting se->ref.
The Linux kernel CVE team has assigned CVE-2026-99233 to this issue.
Severity
========
CVSS v3.1: 7.8 HIGH
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected and fixed versions
===========================
Issue introduced in 4.17 with commit 4b147936fa509650beaf638b331573c23ba4d609 and fixed in 6.1.191 with commit 381f543ed35c434d5b707369aa5dcd69ecf440af Issue introduced in 4.17 with commit 4b147936fa509650beaf638b331573c23ba4d609 and fixed in 6.6.161 with commit 4472579bd1c83708b6fe623c870cdf728e947205 Issue introduced in 4.17 with commit 4b147936fa509650beaf638b331573c23ba4d609 and fixed in 6.12.115 with commit 23b4106e8b35823acc79e206c7745f55b9cfd78b Issue introduced in 4.17 with commit 4b147936fa509650beaf638b331573c23ba4d609 and fixed in 6.18.60 with commit 06e816bed499fe47f39f12044382cc5d064485fb Issue introduced in 4.17 with commit 4b147936fa509650beaf638b331573c23ba4d609 and fixed in 7.2.14 with commit 5597bb8db6855fcb97a67196d227fea359bcd81c Issue introduced in 4.17 with commit 4b147936fa509650beaf638b331573c23ba4d609 and fixed in 7.3.1 with commit cf4e31d5da80fae4c9cdbe7af55b7c3ad213f0e4
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-99233
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_events_hist.c
kernel/trace/trace_events_synth.c
kernel/trace/trace_synth.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/381f543ed35c434d5b707369aa5dcd69ecf440af https://git.kernel.org/stable/c/4472579bd1c83708b6fe623c870cdf728e947205 https://git.kernel.org/stable/c/23b4106e8b35823acc79e206c7745f55b9cfd78b https://git.kernel.org/stable/c/06e816bed499fe47f39f12044382cc5d064485fb https://git.kernel.org/stable/c/5597bb8db6855fcb97a67196d227fea359bcd81c https://git.kernel.org/stable/c/cf4e31d5da80fae4c9cdbe7af55b7c3ad213f0e4 https://git.kernel.org/stable/c/3403d9bb27ebc3572bd048620746b4414e073bf9