CVE-2022-48768 json
tracing/histogram: Fix a potential memory leak for kstrdup()
published 2024-06-20 2 y ago modified 2026-06-17 4 mo ago also EUVD-2022-53647
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 11%
- public exploits
- 0
- none known
Summary
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).
Patch / fix
- Linux Linux 5.4.176, 5.6, 5.10.96, 5.15.19, 5.16.5, 5.17
- linux Debian 14, Debian 13, Debian 12 5.16.7-1
debian advisories DEBIAN-CVE-2022-48768
- linux Ubuntu 20.04 LTS 5.4.0-109.123
- linux-aws Ubuntu 20.04 LTS 5.4.0-1072.77
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1072.77
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1020.22
- linux-iot Ubuntu 20.04 LTS 5.4.0-1004.6
- linux-kvm Ubuntu 20.04 LTS 5.4.0-1062.65
- linux-azure Ubuntu 20.04 LTS 5.4.0-1077.80
- linux-gkeop Ubuntu 20.04 LTS 5.4.0-1039.40
ubuntu advisories UBUNTU-CVE-2022-48768
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- dtb-aarch64 openSUSE Leap 15.5 5.14.21-150500.55.73.1
- kernel-64kb SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.73.1
- kernel-syms SLE Module for Development Tools 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.73.1
- kernel-obs-qa openSUSE Leap 15.5 5.14.21-150500.55.73.1
- kernel-source SLE Module for Development Tools 15 SP5, SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.73.1
- kernel-default SLE Workstation Extension 15 SP5, SLE Module for Legacy 15 SP5, SLE Module for Basesystem 15 SP5 +5 more 5.14.21-150500.55.73.1
- kernel-kvmsmall openSUSE Leap 15.5 5.14.21-150500.55.73.1
- kernel-zfcpdump SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.73.1
suse advisories SUSE-SU-2024:2939-1SUSE-SU-2024:2929-1SUSE-SU-2024:2902-1SUSE-SU-2024:2394-1SUSE-SU-2024:2384-1SUSE-SU-2024:2372-1
- git.kernel.org/stable/c/8a8878ebb596281f50fc0b9a6e1f23f0d7f154e8 commit
- git.kernel.org/stable/c/d71b06aa995007eafd247626d0669b9364c42ad7 commit
- git.kernel.org/stable/c/e33fa4a46ee22de88a700e2e3d033da8214a5175 commit
- git.kernel.org/stable/c/df86e2fe808c3536a9dba353cc2bebdfea00d0cf commit
- git.kernel.org/stable/c/e629e7b525a179e29d53463d992bdee759c950fb commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-48768 updated cvss 5.1
kernel: tracing/histogram: Fix a potential memory leak for kstrdup()
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.21% chance of exploitation in the next 30 days, higher than 11% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-401 Missing Release of Memory after Effective Lifetime
- Technology feeds
References
-
git.kernel.org
/stable/c/8a8878ebb596281f50fc0b9a6e1f23f0d7f154e8
patch
-
git.kernel.org
/stable/c/d71b06aa995007eafd247626d0669b9364c42ad7
patch
-
git.kernel.org
/stable/c/e33fa4a46ee22de88a700e2e3d033da8214a5175
patch
-
git.kernel.org
/stable/c/df86e2fe808c3536a9dba353cc2bebdfea00d0cf
patch
-
git.kernel.org
/stable/c/e629e7b525a179e29d53463d992bdee759c950fb
patch
Sources
- CVE List CVE-2022-48768
- NVD CVE-2022-48768
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.