{"api_version":"1","generated_at":"2026-10-25T08:26:20+00:00","cve":"CVE-2026-97923","urls":{"html":"https://cve.report/CVE-2026-97923","api":"https://cve.report/api/cve/CVE-2026-97923.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-97923","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-97923"},"summary":{"title":"tracing: Free histogram the var ref when its initialization fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Free histogram the var ref when its initialization fails\n\ncreate_var_ref() allocates a VAR_REF hist_field and then calls\ninit_var_ref() to fill it in. When that fails the field is leaked.\n\ncommit 656fe2ba85e8 (\"tracing: Use hist trigger's var_ref array to destroy\nvar_refs\") made destroy_hist_field() return early for\nHIST_FIELD_FL_VAR_REF, since var refs are freed by walking the trigger's\nvar_refs[] array instead. create_var_ref() adds the field to that array\nonly after init_var_ref() has succeeded, so on this path the field is in\nneither place and nothing frees it. The call was correct when it was\nwritten, before var refs were taken out of destroy_hist_field().\n\ninit_var_ref() cannot free it either. The caller owns the field, so\ninit_var_ref() undoes only its own string allocations and leaves the\nfield alone. Freeing it there would leave create_var_ref() passing freed\nmemory to destroy_hist_field(), which reads its flags.\n\nCall __destroy_hist_field(), which frees the field without consulting\nthe flag.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-09-25 11:17:19","updated_at":"2026-10-19 10:17:43"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/74375caa20fe5165807b4334c783d1790b01f02a","name":"https://git.kernel.org/stable/c/74375caa20fe5165807b4334c783d1790b01f02a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/516001d53e6b2ea95a251ee2ef54a1a689a3fd58","name":"https://git.kernel.org/stable/c/516001d53e6b2ea95a251ee2ef54a1a689a3fd58","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/608b7751926ec08fae6a1ac4e7308195da68c362","name":"https://git.kernel.org/stable/c/608b7751926ec08fae6a1ac4e7308195da68c362","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/352f84a381e7b4651b30366e93cb858f3fa9c91a","name":"https://git.kernel.org/stable/c/352f84a381e7b4651b30366e93cb858f3fa9c91a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a69baeac38677270656e85753d93856a076dee57","name":"https://git.kernel.org/stable/c/a69baeac38677270656e85753d93856a076dee57","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4870f9071c9ea3c1423a07741b85a794db30d672","name":"https://git.kernel.org/stable/c/4870f9071c9ea3c1423a07741b85a794db30d672","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4924328d6991f25b65bb7c8ff5d56c2a9b254851","name":"https://git.kernel.org/stable/c/4924328d6991f25b65bb7c8ff5d56c2a9b254851","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/222abcbe7866fef04563b6eb89fb21f627dcbc77","name":"https://git.kernel.org/stable/c/222abcbe7866fef04563b6eb89fb21f627dcbc77","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-97923","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97923","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 656fe2ba85e81d00e4447bf77b8da2be3c47acb2 608b7751926ec08fae6a1ac4e7308195da68c362 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 656fe2ba85e81d00e4447bf77b8da2be3c47acb2 4870f9071c9ea3c1423a07741b85a794db30d672 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 656fe2ba85e81d00e4447bf77b8da2be3c47acb2 352f84a381e7b4651b30366e93cb858f3fa9c91a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 656fe2ba85e81d00e4447bf77b8da2be3c47acb2 4924328d6991f25b65bb7c8ff5d56c2a9b254851 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 656fe2ba85e81d00e4447bf77b8da2be3c47acb2 74375caa20fe5165807b4334c783d1790b01f02a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 656fe2ba85e81d00e4447bf77b8da2be3c47acb2 222abcbe7866fef04563b6eb89fb21f627dcbc77 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 656fe2ba85e81d00e4447bf77b8da2be3c47acb2 a69baeac38677270656e85753d93856a076dee57 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 656fe2ba85e81d00e4447bf77b8da2be3c47acb2 516001d53e6b2ea95a251ee2ef54a1a689a3fd58 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 836717841a30d7845cdf9cb806ee0ff3bfa7135a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.19.100 4.20 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.0","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.0 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.271 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.222 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.189 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.158 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.111 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.53 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.7 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"97923","cve":"CVE-2026-97923","epss":"0.002100000","percentile":"0.102600000","score_date":"2026-10-05","updated_at":"2026-10-06 00:14:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["kernel/trace/trace_events_hist.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"608b7751926ec08fae6a1ac4e7308195da68c362","status":"affected","version":"656fe2ba85e81d00e4447bf77b8da2be3c47acb2","versionType":"git"},{"lessThan":"4870f9071c9ea3c1423a07741b85a794db30d672","status":"affected","version":"656fe2ba85e81d00e4447bf77b8da2be3c47acb2","versionType":"git"},{"lessThan":"352f84a381e7b4651b30366e93cb858f3fa9c91a","status":"affected","version":"656fe2ba85e81d00e4447bf77b8da2be3c47acb2","versionType":"git"},{"lessThan":"4924328d6991f25b65bb7c8ff5d56c2a9b254851","status":"affected","version":"656fe2ba85e81d00e4447bf77b8da2be3c47acb2","versionType":"git"},{"lessThan":"74375caa20fe5165807b4334c783d1790b01f02a","status":"affected","version":"656fe2ba85e81d00e4447bf77b8da2be3c47acb2","versionType":"git"},{"lessThan":"222abcbe7866fef04563b6eb89fb21f627dcbc77","status":"affected","version":"656fe2ba85e81d00e4447bf77b8da2be3c47acb2","versionType":"git"},{"lessThan":"a69baeac38677270656e85753d93856a076dee57","status":"affected","version":"656fe2ba85e81d00e4447bf77b8da2be3c47acb2","versionType":"git"},{"lessThan":"516001d53e6b2ea95a251ee2ef54a1a689a3fd58","status":"affected","version":"656fe2ba85e81d00e4447bf77b8da2be3c47acb2","versionType":"git"},{"status":"affected","version":"836717841a30d7845cdf9cb806ee0ff3bfa7135a","versionType":"git"},{"lessThan":"4.20","status":"affected","version":"4.19.100","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["kernel/trace/trace_events_hist.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.0"},{"lessThan":"5.0","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.271","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.222","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.189","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.158","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.111","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.53","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.271","versionStartIncluding":"5.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.222","versionStartIncluding":"5.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.189","versionStartIncluding":"5.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.158","versionStartIncluding":"5.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.111","versionStartIncluding":"5.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.53","versionStartIncluding":"5.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.7","versionStartIncluding":"5.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3","versionStartIncluding":"5.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19.100","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Free histogram the var ref when its initialization fails\n\ncreate_var_ref() allocates a VAR_REF hist_field and then calls\ninit_var_ref() to fill it in. When that fails the field is leaked.\n\ncommit 656fe2ba85e8 (\"tracing: Use hist trigger's var_ref array to destroy\nvar_refs\") made destroy_hist_field() return early for\nHIST_FIELD_FL_VAR_REF, since var refs are freed by walking the trigger's\nvar_refs[] array instead. create_var_ref() adds the field to that array\nonly after init_var_ref() has succeeded, so on this path the field is in\nneither place and nothing frees it. The call was correct when it was\nwritten, before var refs were taken out of destroy_hist_field().\n\ninit_var_ref() cannot free it either. The caller owns the field, so\ninit_var_ref() undoes only its own string allocations and leaves the\nfield alone. Freeing it there would leave create_var_ref() passing freed\nmemory to destroy_hist_field(), which reads its flags.\n\nCall __destroy_hist_field(), which frees the field without consulting\nthe flag."}],"providerMetadata":{"dateUpdated":"2026-10-19T09:10:50.106Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/608b7751926ec08fae6a1ac4e7308195da68c362"},{"url":"https://git.kernel.org/stable/c/4870f9071c9ea3c1423a07741b85a794db30d672"},{"url":"https://git.kernel.org/stable/c/352f84a381e7b4651b30366e93cb858f3fa9c91a"},{"url":"https://git.kernel.org/stable/c/4924328d6991f25b65bb7c8ff5d56c2a9b254851"},{"url":"https://git.kernel.org/stable/c/74375caa20fe5165807b4334c783d1790b01f02a"},{"url":"https://git.kernel.org/stable/c/222abcbe7866fef04563b6eb89fb21f627dcbc77"},{"url":"https://git.kernel.org/stable/c/a69baeac38677270656e85753d93856a076dee57"},{"url":"https://git.kernel.org/stable/c/516001d53e6b2ea95a251ee2ef54a1a689a3fd58"}],"title":"tracing: Free histogram the var ref when its initialization fails","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-97923","datePublished":"2026-09-25T10:22:42.300Z","dateReserved":"2026-09-25T10:18:58.202Z","dateUpdated":"2026-10-19T09:10:50.106Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-25 11:17:19","lastModifiedDate":"2026-10-19 10:17:43","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"97923","Ordinal":"1","Title":"tracing: Free histogram the var ref when its initialization fail","CVE":"CVE-2026-97923","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"97923","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Free histogram the var ref when its initialization fails\n\ncreate_var_ref() allocates a VAR_REF hist_field and then calls\ninit_var_ref() to fill it in. When that fails the field is leaked.\n\ncommit 656fe2ba85e8 (\"tracing: Use hist trigger's var_ref array to destroy\nvar_refs\") made destroy_hist_field() return early for\nHIST_FIELD_FL_VAR_REF, since var refs are freed by walking the trigger's\nvar_refs[] array instead. create_var_ref() adds the field to that array\nonly after init_var_ref() has succeeded, so on this path the field is in\nneither place and nothing frees it. The call was correct when it was\nwritten, before var refs were taken out of destroy_hist_field().\n\ninit_var_ref() cannot free it either. The caller owns the field, so\ninit_var_ref() undoes only its own string allocations and leaves the\nfield alone. Freeing it there would leave create_var_ref() passing freed\nmemory to destroy_hist_field(), which reads its flags.\n\nCall __destroy_hist_field(), which frees the field without consulting\nthe flag.","Type":"Description","Title":"tracing: Free histogram the var ref when its initialization fail"}]}}}