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

Summary

CVECVE-2026-97922
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-09-25 11:17:19 UTC
Updated2026-10-19 10:17:42 UTC
DescriptionIn 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 var_ref array to destroy var_refs") made a trigger's var_refs[] array the only owner of a var ref: destroy_hist_field() returns early for HIST_FIELD_FL_VAR_REF, 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 __destroy_hist_field() 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 create_var_ref() 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 check_var_refs() with -EBUSY. Drop the count and free unconditionally.

Risk And Classification

EPSS: 0.002050000 probability, percentile 0.095610000 (date 2026-10-05)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 8bcebc77e85f3d7536f96845a0fe94b1dddb6af0 a1f1d64a0a9791c842c4646253daf6ac0313eac7 git Not specified
CNA Linux Linux affected 8bcebc77e85f3d7536f96845a0fe94b1dddb6af0 b513a4c60a7aa1f4b4c2a48544ab003cb36f1e94 git Not specified
CNA Linux Linux affected 8bcebc77e85f3d7536f96845a0fe94b1dddb6af0 e7b6d67b43caee9183a4374d23641578ea556e6c git Not specified
CNA Linux Linux affected 8bcebc77e85f3d7536f96845a0fe94b1dddb6af0 4cff53bb19412c6f2d90b50678de5c3903f7f96a git Not specified
CNA Linux Linux affected 8bcebc77e85f3d7536f96845a0fe94b1dddb6af0 94bbd65da4ae26592fa1977a74ee94218ab02a26 git Not specified
CNA Linux Linux affected 8bcebc77e85f3d7536f96845a0fe94b1dddb6af0 4bddcb346a6cf4615ca77f69a589623b877ca267 git Not specified
CNA Linux Linux affected ce28d664054df01997baace61d1defca77689798 git Not specified
CNA Linux Linux affected bf470f051556b610265ea02ad2102de75e8e619c git Not specified
CNA Linux Linux affected 4.19.100 4.20 semver Not specified
CNA Linux Linux affected 5.4.16 5.5 semver Not specified
CNA Linux Linux affected 5.5 Not specified
CNA Linux Linux unaffected 5.5 semver Not specified
CNA Linux Linux unaffected 6.1.189 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.158 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.111 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.53 6.18.* semver Not specified
CNA Linux Linux unaffected 7.2.7 7.2.* semver Not specified
CNA Linux Linux unaffected 7.3 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/e7b6d67b43caee9183a4374d23641578ea556e6c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4bddcb346a6cf4615ca77f69a589623b877ca267 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b513a4c60a7aa1f4b4c2a48544ab003cb36f1e94 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a1f1d64a0a9791c842c4646253daf6ac0313eac7 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/94bbd65da4ae26592fa1977a74ee94218ab02a26 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4cff53bb19412c6f2d90b50678de5c3903f7f96a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report