CVE-2022-48768

published 20 Jun 2024 · updated 17 Nov 2026

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

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel e629e7b525a179e29d53463d992bdee759c950fb, Kernel 5.4.176, Kernel 5.6 and 7 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=d380dcde9a07ca5de4805dee11f58a98ec0ad6ff <e629e7b525a179e29d53463d992bdee759c950fb, >=5.4.19 <5.4.176, >=5.5.6 <5.6, >=d380dcde9a07ca5de4805dee11f58a98ec0ad6ff <d71b06aa995007eafd247626d0669b9364c42ad7, >=d380dcde9a07ca5de4805dee11f58a98ec0ad6ff <df86e2fe808c3536a9dba353cc2bebdfea00d0cf, >=d380dcde9a07ca5de4805dee11f58a98ec0ad6ff <e33fa4a46ee22de88a700e2e3d033da8214a5175, =5.6, =c78a2baf5e1fe1b38121d6b54bab77ccb81a1a86, >=38b67e60b6b582e81f9db1b2e7176cbbfbd3e574 <8a8878ebb596281f50fc0b9a6e1f23f0d7f154e8e629e7b525a179e29d53463d992bdee759c950fb, 5.4.176, 5.6, d71b06aa995007eafd247626d0669b9364c42ad7, df86e2fe808c3536a9dba353cc2bebdfea00d0cf, e33fa4a46ee22de88a700e2e3d033da8214a5175, 8a8878ebb596281f50fc0b9a6e1f23f0d7f154e8
linux-kernel: Kernel>=5.16.0 <5.16.5, >=5.4.19 <5.4.176, >=5.5.6 <5.6, >=5.6.0 <5.10.96, >=5.11.0 <5.15.195.16.5, 5.4.176, 5.6, 5.10.96, 5.15.19

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-48768 severity on Zeptric[![CVE-2022-48768](https://zeptric.io/badge/cve/CVE-2022-48768.svg)](https://zeptric.io/cve/CVE-2022-48768)