CVE-2022-48768Published Jun 20, 2024 · Jun 20Updated 2d ago
tracing/histogram: Fix a potential memory leak for kstrdup()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
c78a2baf5e1fe1b38121d6b54bab77ccb81a1a86| No fix yet |
| Linux Linux |
|
|
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).
From the CVE record · Linux
The Linux kernel tracing histogram code can leak memory allocated by kstrdup() because an error path does not free it. The input does not specify how the error path can be reached or whether authentication or user interaction is required.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.