What’s Vulnerable › Vulnerabilities

CVE-2022-48768: tracing/histogram: Fix a potential memory leak for kstrdup()

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

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.96, 5.15.19, 5.16.5, 5.4.176. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-48768 or the next vulnerability affects your stack