CVE-2022-49410

Source
https://cve.org/CVERecord?id=CVE-2022-49410
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49410.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49410
Downstream
Related
Published
2025-02-26T02:12:33.124Z
Modified
2026-03-12T03:25:09.563058Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
tracing: Fix potential double free in create_var_ref()
Details

In the Linux kernel, the following vulnerability has been resolved:

tracing: Fix potential double free in createvarref()

In createvarref(), initvarref() is called to initialize the fields of variable reffield, which is allocated in the previous function call to createhistfield(). Function initvarref() allocates the corresponding fields such as reffield->system, but frees these fields when the function encounters an error. The caller later calls destroyhistfield() to conduct error handling, which frees the fields and the variable itself. This results in double free of the fields which are already freed in the previous function.

Fix this by storing NULL to the corresponding fields when they are freed in initvarref().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49410.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
067fe038e70f6e64960d26a79c4df5f1413d0f13
Fixed
f8b383f83cb573152c577eca1ef101e89995b72a
Fixed
c27f744ceefadc7bbeb14233b6abc150ced617d2
Fixed
058cb6d86b9789377216c936506b346aaa1eb581
Fixed
37443b3508b8cce6832f8d25cb4550b2f7801f50
Fixed
4fdfb15e08598711dbf50daf56a33965232daf0e
Fixed
bd83ff3bbfb003832481c9bff999d12385f396ae
Fixed
99696a2592bca641eb88cc9a80c90e591afebd0f

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49410.json"