CVE-2022-49410

tracing: Fix potential double free in create_var_ref()

High · published February 26, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
21.2
In the wild
Unconfirmed
What it is

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().

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00297 · 21.2th percentile
Published
2025-02-26T02:12Z
EPSS history
Timeline
  • 26 FEB 02:12Z
    tracing: Fix potential double free in create_var_ref()
    cvelistv5