CVE-2022-49410
HIGHLinux kernel - Use After Free
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)
Scores
CVSS v3
7.8
EPSS
0.0004
EPSS Percentile
10.3%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Classification
CWE
CWE-415
Status
published
Affected Products (7)
linux/linux_kernel
< 4.19.247
linux/Kernel
< 4.19.247linux
linux/Kernel
< 5.4.198linux
linux/Kernel
< 5.10.121linux
linux/Kernel
< 5.15.46linux
linux/Kernel
< 5.17.14linux
linux/Kernel
< 5.18.3linux
Timeline
Published
Feb 26, 2025
Tracked Since
Feb 18, 2026