CVE-2026-97922: tracing: Free histogram var refs regardless of how often they are referenced

Published Sep 25, 2026
·
Updated

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

tracing: Free histogram var refs regardless of how often they are referenced

Using the same variable three or more times in one hist trigger leaks the variable reference and its strings when the trigger is removed.

commit 656fe2ba85e8 ("tracing: Use hist trigger's varref array to destroy varrefs") made a trigger's varrefs[] array the only owner of a var ref: destroyhistfield() returns early for HISTFIELDFLVARREF, so the field expressions never destroy one. One entry, freed once, no count needed.

commit 8bcebc77e85f ("tracing: Fix histogram code when expression has same var as value") then made repeated references share one object and added a count of them. Only the increment side exists, since those expressions still return early and never drop a reference, so destroyhistfield() sees how many references were created rather than how many are left. It frees when the decremented count is 0 or 1, so two references work and three or more leak.

Sharing kept one array entry per object, and createvarref() searches and appends within a single trigger, so nothing outside it holds the object. Removing a trigger whose variables are still referenced is already refused by checkvarrefs() with -EBUSY. Drop the count and free unconditionally.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 25, 2026
CVE Published
via MITRE·10:22 AM
Data Sourced
via MITRE·10:22 AM
Description
Data Sourced
via NVD·11:17 AM
Description

Frequently Asked Questions

1

What condition triggers the leak?

A histogram trigger must use the same variable three or more times. When that trigger is removed, the shared variable reference and its associated strings are leaked.

2

Are repeated references in separate histogram triggers relevant?

The shared variable-reference object is tracked within a single trigger. The described issue applies to repeated use of the same variable within one histogram trigger, not references held outside that trigger.

3

What is the impact of removing an affected trigger?

Removing the trigger does not free the variable reference or its strings when the variable was referenced three or more times. This results in a kernel memory leak.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203