Skip to main content
← All vulnerabilities
CVE-2022-48768

tracing/histogram: Fix a potential memory leak for kstrdup()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.176, 5.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

In the Linux kernel, the following vulnerability has been resolved: tracing/histogram: Fix a potential memory leak for kstrdup() kfree() is missing on an error path to free the memory allocated by kstrdup(): p = param = kstrdup(data->params[i], GFP_KERNEL); So it is better to free it via kfree(p).

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 5.4.19 · fixed in 5.4.176; From 5.5.6 · fixed in 5.6

  • Linux Linux

    5.6

References 5

git.kernel.org