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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-06-20T11:13:43.830Z
- Modified: 2026-06-17T05:16:08.900Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 38b67e60b6b582e81f9db1b2e7176cbbfbd3e574 before 8a8878ebb596281f50fc0b9a6e1f23f0d7f154e8; from d380dcde9a07ca5de4805dee11f58a98ec0ad6ff before d71b06aa995007eafd247626d0669b9364c42ad7; from d380dcde9a07ca5de4805dee11f58a98ec0ad6ff before e33fa4a46ee22de88a700e2e3d033da8214a5175; from d380dcde9a07ca5de4805dee11f58a98ec0ad6ff before df86e2fe808c3536a9dba353cc2bebdfea00d0cf; from d380dcde9a07ca5de4805dee11f58a98ec0ad6ff before e629e7b525a179e29d53463d992bdee759c950fb; c78a2baf5e1fe1b38121d6b54bab77ccb81a1a86; from 5.4.19 before 5.4.176; from 5.5.6 before 5.6; 5.6 (not affected: before 5.6; from 5.4.176 up to 5.4.*; from 5.10.96 up to 5.10.*; from 5.15.19 up to 5.15.*; from 5.16.5 up to 5.16.*; from 5.17 up to *)
- linux linux_kernel: from 5.4.19 before 5.4.176; from 5.6 before 5.10.96; from 5.11 before 5.15.19; from 5.16 before 5.16.5; 5.17

## References

- <https://git.kernel.org/stable/c/8a8878ebb596281f50fc0b9a6e1f23f0d7f154e8> (patch)
- <https://git.kernel.org/stable/c/d71b06aa995007eafd247626d0669b9364c42ad7> (patch)
- <https://git.kernel.org/stable/c/e33fa4a46ee22de88a700e2e3d033da8214a5175> (patch)
- <https://git.kernel.org/stable/c/df86e2fe808c3536a9dba353cc2bebdfea00d0cf> (patch)
- <https://git.kernel.org/stable/c/e629e7b525a179e29d53463d992bdee759c950fb> (patch)

## Sources

- CVE List: [CVE-2022-48768](https://www.cve.org/CVERecord?id=CVE-2022-48768), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2022-48768](https://nvd.nist.gov/vuln/detail/CVE-2022-48768), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-48768 · Whole record: https://cve.day/CVE-2022-48768.json · Rebuilt by cve.day 2026-11-25T22:58:19.860Z
