{"id":"CVE-2022-49410","aliases":["CVE-2022-49410"],"related":[],"kind":"vulnerability","state":"published","title":"tracing: Fix potential double free in create_var_ref()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Fix potential double free in create_var_ref()\n\nIn create_var_ref(), init_var_ref() is called to initialize the fields\nof variable ref_field, which is allocated in the previous function call\nto create_hist_field(). Function init_var_ref() allocates the\ncorresponding fields such as ref_field->system, but frees these fields\nwhen the function encounters an error. The caller later calls\ndestroy_hist_field() to conduct error handling, which frees the fields\nand the variable itself. This results in double free of the fields which\nare already freed in the previous function.\n\nFix this by storing NULL to the corresponding fields when they are freed\nin init_var_ref().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Fix potential double free in create_var_ref()\n\nIn create_var_ref(), init_var_ref() is called to initialize the fields\nof variable ref_field, which is allocated in the previous function call\nto create_hist_field(). Function init_var_ref() allocates the\ncorresponding fields such as ref_field->system, but frees these fields\nwhen the function encounters an error. The caller later calls\ndestroy_hist_field() to conduct error handling, which frees the fields\nand the variable itself. This results in double free of the fields which\nare already freed in the previous function.\n\nFix this by storing NULL to the corresponding fields when they are freed\nin init_var_ref().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: seguimiento: Se corrige la posible doble liberación en create_var_ref() En create_var_ref(), se llama a init_var_ref() para inicializar los campos de la variable ref_field, que se asigna en la llamada de función anterior a create_hist_field(). La función init_var_ref() asigna los campos correspondientes, como ref_field-&gt;system, pero libera estos campos cuando la función encuentra un error. El llamador luego llama a destroy_hist_field() para realizar la gestión de errores, que libera los campos y la variable misma. Esto da como resultado una doble liberación de los campos que ya están liberados en la función anterior. Corrija esto almacenando NULL en los campos correspondientes cuando se liberan en init_var_ref().","source":"nvd"}],"published":"2025-02-26T02:12:33.124Z","modified":"2026-08-05T08:55:04.239Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"067fe038e70f6e64960d26a79c4df5f1413d0f13","fixed":"f8b383f83cb573152c577eca1ef101e89995b72a","status":"affected"},{"type":"git","introduced":"067fe038e70f6e64960d26a79c4df5f1413d0f13","fixed":"c27f744ceefadc7bbeb14233b6abc150ced617d2","status":"affected"},{"type":"git","introduced":"067fe038e70f6e64960d26a79c4df5f1413d0f13","fixed":"058cb6d86b9789377216c936506b346aaa1eb581","status":"affected"},{"type":"git","introduced":"067fe038e70f6e64960d26a79c4df5f1413d0f13","fixed":"37443b3508b8cce6832f8d25cb4550b2f7801f50","status":"affected"},{"type":"git","introduced":"067fe038e70f6e64960d26a79c4df5f1413d0f13","fixed":"4fdfb15e08598711dbf50daf56a33965232daf0e","status":"affected"},{"type":"git","introduced":"067fe038e70f6e64960d26a79c4df5f1413d0f13","fixed":"bd83ff3bbfb003832481c9bff999d12385f396ae","status":"affected"},{"type":"git","introduced":"067fe038e70f6e64960d26a79c4df5f1413d0f13","fixed":"99696a2592bca641eb88cc9a80c90e591afebd0f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.17","status":"unaffected"},{"type":"semver","introduced":"4.19.247","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.198","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.121","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.46","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.17.14","lastAffected":"5.17.*","status":"unaffected"},{"type":"semver","introduced":"5.18.3","lastAffected":"5.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.17","fixed":"4.19.247"},{"status":"affected","introduced":"4.20","fixed":"5.4.198"},{"status":"affected","introduced":"5.5","fixed":"5.10.121"},{"status":"affected","introduced":"5.11","fixed":"5.15.46"},{"status":"affected","introduced":"5.16","fixed":"5.17.14"},{"status":"affected","introduced":"5.18","fixed":"5.18.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/f8b383f83cb573152c577eca1ef101e89995b72a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c27f744ceefadc7bbeb14233b6abc150ced617d2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/058cb6d86b9789377216c936506b346aaa1eb581","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/37443b3508b8cce6832f8d25cb4550b2f7801f50","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4fdfb15e08598711dbf50daf56a33965232daf0e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd83ff3bbfb003832481c9bff999d12385f396ae","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/99696a2592bca641eb88cc9a80c90e591afebd0f","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-10-01T19:41:12.408Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49410","url":"https://www.cve.org/CVERecord?id=CVE-2022-49410","licence":"CVE Terms of Use","modified":"2026-08-05T08:55:04.239Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49410","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49410","licence":"Public domain","modified":"2026-06-17T05:17:58.203Z"}],"updatedAt":"2026-11-25T22:58:20.510Z","epss":{"score":0.00297,"percentile":0.24081,"date":"2026-12-01T12:00:22.000Z"}}