SecurityContext

CVE-2026-97921: Linux Kernel - Memory Leak

  • Cve: CVE-2026-97921
  • Name: Linux Kernel - Memory Leak
  • Description: In the Linux kernel, the following vulnerability has been resolved: tracing: Free histogram the field rejected for a bad modifier Writing a hist trigger whose value or variable carries a modifier that is not allowed there leaks the fields that were built for it. __create_val_field() takes the field from parse_expr() and stores it in hist_data->fields[] only after the modifier checks have run: hist_field = parse_expr(hist_data, file, field_str, flags, var_name, &n_subexprs); ... if (hist_field->flags & HIST_FIELD_FL_VAR) { if (hist_field->flags & (...)) goto err; } else { if (hist_field->flags & (...)) goto err; } hist_data->fields[val_idx] = hist_field; Both checks jump past that store, and the err label returns without freeing anything. The error unwinds to create_hist_data(), which calls destroy_hist_data() -> destroy_hist_fields(), and that reaches a field only by walking fields[]. A field that never got there is unreachable. commit e0213434fe3e ("tracing: Do not let histogram values have some modifiers") set ret to -EINVAL and fell through to the store, which left the field owned by fields[] and freed along with the rest of hist_data. Splitting the check into a value case and a variable case replaced that fall-through with a goto that skips it. With CONFIG_DEBUG_KMEMLEAK, 200 writes of # echo 'hist:keys=prev_pid:vals=next_pid.log2' > \ events/sched/sched_switch/trigger each correctly rejected with -EINVAL, leave 332 unreferenced objects (63744 bytes) reported at create_hist_field(); 200 install and remove cycles of a valid trigger leave none. A '.log2' field is two allocations, since create_hist_field() puts the plain field in operands[0] of the log2 field, and both are reported. Use destroy_hist_field() rather than __destroy_hist_field() so that operands[0] is freed as well. It returns early for HIST_FIELD_FL_VAR_REF, which is what an operand owned by hist_data->var_refs[] needs; the rejected field itself is never a var ref, because a var ref never carries a modifier flag.
  • Impact: Attackers can cause memory leaks leading to resource exhaustion and potential denial of service.
  • Remediation: Update to the latest Linux kernel version containing the fix for histogram field modifier checks.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Cvss vector: N/A
  • Epss score: 0.00211
  • Epss percentile: 0.11224
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2026-09-25T11:17:19Z
  • Age in days: 60
  • Modified at: 2026-10-19T10:17:42Z
  • Patch available: yes
  • References total: 6
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-97921
  • Nvd status: received
  • Checked, none or zero: cwe, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: vulnerability type, requirements, severity, cvss score, hackerone

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://git.kernel.org/stable/c/230234d12ce42ab04132a32c3a848f07a5d27a71
https://git.kernel.org/stable/c/3d42fed18b2c5707b6332ebe87b789fd768eb01b
https://git.kernel.org/stable/c/891c21f6d5673b2a519b536243bfc6dd2d35beb6
https://git.kernel.org/stable/c/a2652fcf96b63e9da04951e4e58e6a0672df695d
https://git.kernel.org/stable/c/b22dc0add7d72b8bd9cae3188db0dd65da1c8652
https://git.kernel.org/stable/c/e787361bb6b0026ea3eb4d3fa7a304c7fcb99555

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel>= 6.4, < 7.3; >= 6.4, < 7.2.7; >= 6.4, < 6.18.53; >= 6.4, < 6.12.111; >= 6.4, < 6.6.158; >= 6.3.7; >= 6.1.33, < 6.1.189nocna/v1/products/linux/linux_kernel

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/v1/repositories/torvalds/linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports