HIGH Introduced in 4.17
tracing SynthEvent UAF
CVE-2026-99233
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.8HIGH
01Description
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.
02KernelScan AI Analysis
Risk summary
A local attacker with CAP_SYS_ADMIN (obtainable in a user namespace) can trigger a use-after-free in the kernel tracing subsystem by manipulating histogram triggers on trace events that share a basename with a synthetic event. This allows arbitrary kernel memory read/write and code execution, leading to full privilege escalation.
Vulnerability analysis
The tracing histogram registration and unregistration paths incorrectly adjusted a synthetic event's reference count based only on the event basename. A non-synthetic trace event sharing the same basename as a synthetic event would cause the synthetic event's reference count to be decremented without a matching increment when a histogram was removed, freeing the synthetic event while an active histogram action still held a pointer to it. The fix adds a verification step that matches the event_call pointer before adjusting the reference count, ensuring only the correct synthetic event is affected. An attacker needs local access and the CAP_SYS_ADMIN capability (available in user namespaces) to configure trace events and trigger the bug.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 4.17 | 5.10.275 | e906114ac237 |
| 5.15 | 4.17 | 5.15.226 | 4c3b009bd035 |
| 6.1 | 4.17 | 6.1.191 | 381f543ed35c |
| 6.12 | 4.17 | 6.12.115 | 23b4106e8b35 |
| 6.18 | 4.17 | 6.18.60 | 06e816bed499 |
| 6.6 | 4.17 | 6.6.161 | 4472579bd1c8 |
| 7.2 | 4.17 | 7.2.14 | 5597bb8db685 |
| 7.3 | 4.17 | 7.3.1 | cf4e31d5da80 |
| mainline | 4.17 | 7.4-rc1 | 3403d9bb27eb |
| cip/6.12 | 4.17 | 6.12.117-cip35 | 23b4106e8b35 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.117-cip35 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip137) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip137-rt51) |