CVE-2022-48768
kernel: tracing/histogram: Fix a potential memory leak for kstrdup()
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · June 20, 2024
Updated · November 21, 2025
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).
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:L
CWE-402 · Transmission of Private Resources into a New Sphere ('Resource Leak')