CVE-2022-48768

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

State
Published
Severity
Not scored
Published
Jun 20, 2024
Updated
May 23, 2026
Reserved
Jun 20, 2024

Read the record on cve.org

Description

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).

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 38b67e60b6b582e81f9db1b2e7176cbbfbd3e574 to before 8a8878ebb596281f50fc0b9a6e1f23f0d7f154e8Affected
  • d380dcde9a07ca5de4805dee11f58a98ec0ad6ff to before d71b06aa995007eafd247626d0669b9364c42ad7Affected
  • d380dcde9a07ca5de4805dee11f58a98ec0ad6ff to before e33fa4a46ee22de88a700e2e3d033da8214a5175Affected
  • d380dcde9a07ca5de4805dee11f58a98ec0ad6ff to before df86e2fe808c3536a9dba353cc2bebdfea00d0cfAffected
  • d380dcde9a07ca5de4805dee11f58a98ec0ad6ff to before e629e7b525a179e29d53463d992bdee759c950fbAffected
  • c78a2baf5e1fe1b38121d6b54bab77ccb81a1a86Affected
  • 5.4.19 to before 5.4.176Affected
  • 5.5.6 to before 5.6Affected
LinuxLinux
  • 5.6Affected
  • before 5.6Not affected
  • 5.4.176 through 5.4.*Not affected
  • 5.10.96 through 5.10.*Not affected
  • 5.15.19 through 5.15.*Not affected
  • 5.16.5 through 5.16.*Not affected
  • 5.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.