KernelScan.io

HIGH Introduced in 6.3

tracing SynthField OOBRead

CVE-2026-99163

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI7.2HIGH

01

In the Linux kernel, the following vulnerability has been resolved: tracing/histograms: Reject non-stacktrace fields for synthetic stacktrace fields In check_synth_field(), when a synthetic event field is a stacktrace (field->is_stack) and the histogram field is not a "long[" stacktrace array, validation falls through to the generic size and signedness comparison. Because parse_synth_field() sets a stacktrace field's type to "__data_loc unsigned long[]", its size is sizeof(u64) and synth_field_signed() marks it as signed. Consequently, any 8-byte signed scalar histogram field passes the fallback check, and its scalar value is subsequently dereferenced as a kernel stacktrace pointer in get_field_size() and trace_stack(). Furthermore, checking strstr(hist_field->type, "long[") is insufficient because tracepoint fields defined with __bitmask() or __rel_bitmask() also have type "__data_loc unsigned long[]" or "__rel_loc unsigned long[]", whilst create_hist_field() treats them as 4-byte scalar values without HIST_FIELD_FL_STACKTRACE. Propagate HIST_FIELD_FL_STACKTRACE to variable references and field variables (whilst excluding variable aliases from per-element stacktrace capture), and reject any mismatch between HIST_FIELD_FL_STACKTRACE and field->is_stack in check_synth_field().

02

Engine v0.9.0

Risk summary

A local attacker with CAP_SYS_ADMIN (typically root) can craft a synthetic event with a stacktrace field that passes validation but points to an arbitrary kernel address, enabling arbitrary kernel memory reads and potential kernel crashes. This allows bypassing KASLR and leaking sensitive kernel data.

Affectedkernel/trace/trace_events_hist.c (tracing/histograms)

Vulnerability analysis

The tracing histogram subsystem fails to properly validate synthetic events that declare stacktrace fields. When a synthetic event requests a stacktrace, the validation code only checks for a text pattern in the field type and falls back to a basic size and sign comparison. Since the synthetic stacktrace type happens to be represented as an 8-byte signed integer, any histogram field of the same size and signedness passes the check — even if it is a simple scalar value. The kernel then interprets this attacker-controlled scalar as a pointer to a kernel stacktrace and dereferences it, providing an arbitrary kernel memory read primitive and a reliable denial-of-service vector. The fix ensures that the stacktrace property is tracked explicitly through variable references and field variables, and rejects any synthetic event where the histogram field's stacktrace flag does not exactly match the synthetic field's expectation.

03

BranchIntroducedFixed inPatch commit
5.105.10.2375.10.273eba0a6365a0f
5.155.15.1245.15.224326c45c9e201
6.16.1.436.1.1916c4e4946febb
6.126.36.12.115648687f2b448
6.186.36.18.591f36e4ddd05d
6.66.36.6.1617e0d05a6234a
7.26.37.2.13deb336ae7c7b
mainline6.37.3a244c241593b
cip/6.126.36.12.117-cip35648687f2b448

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.117-cip35
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)