Description
In the Linux kernel, the following vulnerability has been resolved:

tracing: Avoid NULL return from hist_field_name() on truncation

hist_field_name() returns "" everywhere except the fully-qualified
VAR_REF/EXPR case, where snprintf() truncation returns NULL early
and bypasses the bottom NULL->"" guard. Callers don't expect NULL:
strcat(expr, hist_field_name(field, 0)) at trace_events_hist.c:1758
and the strcmp() in the sort-key match loop at :4804 both deref it.

system and event_name are bounded by MAX_EVENT_NAME_LEN, but the
field name on a VAR_REF is kstrdup'd from a histogram variable
name parsed out of the trigger string and has no length cap, so
a long enough var name in a fully qualified reference can reach
the truncation path.

Keep the length check but leave field_name as "" on overflow.
Published: 2026-07-19
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel’s tracing subsystem contains a flaw in the helper function hist_field_name(). When a fully‑qualified variable reference is truncated by snprintf(), the function returns a NULL pointer, bypassing the normal guard that transforms a NULL output into an empty string. Callers such as trace_events_hist.c and the event‑sorting logic then dereference this pointer without checking for NULL, causing a kernel panic. This null pointer dereference is identified as CWE‑476 and can lead to a kernel crash, exposing the system to a denial‑of‑service condition.

Affected Systems

All Linux kernel implementations that employ the tracing subsystem and invoke hist_field_name() during histogram variable handling are affected, regardless of specific release numbers. Any kernel image that has not incorporated the recent patch to guard against the truncation path remains vulnerable.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, and the EPSS score of less than 1% suggests a low likelihood of exploitation. The vulnerability is not listed in CISA’s KEV catalog, further supporting its low prevalence. Based on the description, it is inferred that an attacker would need the ability to inject a trace event string with an excessively long variable name or otherwise trigger the truncation path. This would typically require local or privileged access to the kernel’s tracing interface. When successfully triggered, the resulting kernel crash constitutes a denial‑of‑service that could, in turn, facilitate a compromise if the system remains operational in a compromised state.

Generated by OpenCVE AI on August 4, 2026 at 06:09 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that includes the hist_field_name() null‑guard fix.
  • Avoid creating trace events that contain fully‑qualified variable references with very long names to prevent triggering the truncation path.
  • If a kernel update is not immediately possible, consider disabling or limiting histogram handling for long variable names in the tracing configuration until the patch can be applied.

Generated by OpenCVE AI on August 4, 2026 at 06:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 22 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Sun, 19 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: tracing: Avoid NULL return from hist_field_name() on truncation hist_field_name() returns "" everywhere except the fully-qualified VAR_REF/EXPR case, where snprintf() truncation returns NULL early and bypasses the bottom NULL->"" guard. Callers don't expect NULL: strcat(expr, hist_field_name(field, 0)) at trace_events_hist.c:1758 and the strcmp() in the sort-key match loop at :4804 both deref it. system and event_name are bounded by MAX_EVENT_NAME_LEN, but the field name on a VAR_REF is kstrdup'd from a histogram variable name parsed out of the trigger string and has no length cap, so a long enough var name in a fully qualified reference can reach the truncation path. Keep the length check but leave field_name as "" on overflow.
Title tracing: Avoid NULL return from hist_field_name() on truncation
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-19T15:39:19.102Z

Reserved: 2026-07-19T07:54:57.028Z

Link: CVE-2026-64028

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Low

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-64028 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T06:15:04Z

Weaknesses