CVE-2022-49410
HIGHLinux Kernel - Use-After-Free in create_var_ref Error Handling
Title source: llmDescription
In the Linux kernel, the following vulnerability has been resolved: tracing: Fix potential double free in create_var_ref() In create_var_ref(), init_var_ref() is called to initialize the fields of variable ref_field, which is allocated in the previous function call to create_hist_field(). Function init_var_ref() allocates the corresponding fields such as ref_field->system, but frees these fields when the function encounters an error. The caller later calls destroy_hist_field() 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 init_var_ref().
References (7)
Core 7
Core References
Scores
CVSS v3
7.8
EPSS
0.0028
EPSS Percentile
19.7%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
total
Details
CWE
CWE-415
Status
published
Products (23)
linux/Kernel
4.17.0 - 4.19.247linux
linux/Kernel
4.20.0 - 5.4.198linux
linux/Kernel
5.11.0 - 5.15.46linux
linux/Kernel
5.16.0 - 5.17.14linux
linux/Kernel
5.18.0 - 5.18.3linux
linux/Kernel
5.5.0 - 5.10.121linux
Linux/Linux
< 4.17
Linux/Linux
067fe038e70f6e64960d26a79c4df5f1413d0f13 - 058cb6d86b9789377216c936506b346aaa1eb581
Linux/Linux
067fe038e70f6e64960d26a79c4df5f1413d0f13 - 37443b3508b8cce6832f8d25cb4550b2f7801f50
Linux/Linux
067fe038e70f6e64960d26a79c4df5f1413d0f13 - 4fdfb15e08598711dbf50daf56a33965232daf0e
... and 13 more
Published
Feb 26, 2025
Tracked Since
Feb 18, 2026