CVE-2022-49410

tracing: Fix potential double free in create_var_ref()

HIGH
7.8
CVSS Score
Published: February 26, 2025 at 02:12 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.17 ≤ v < 4.19.2474.17 ≤ v < 5.10.1214.17 ≤ v < 5.15.464.17 ≤ v < 5.17.144.17 ≤ v < 5.18.34.17 ≤ v < 5.194.17 ≤ v < 5.4.1984.20 ≤ v < 5.4.1985.11 ≤ v < 5.15.465.16 ≤ v < 5.17.145.18 ≤ v < 5.18.35.5 ≤ v < 5.10.1214.1767fe38e70f6e64960d26a79c4df5f1413d0f13
Vendor states this is fixed in 058cb6d86b9789377216c936506b346aaa1eb581 (fixed)
Vendor states this is fixed in 37443b3508b8cce6832f8d25cb4550b2f7801f50 (fixed)
Vendor states this is fixed in 4fdfb15e08598711dbf50daf56a33965232daf0e (fixed)
Vendor states this is fixed in 99696a2592bca641eb88cc9a80c90e591afebd0f (fixed)
Vendor states this is fixed in bd83ff3bbfb003832481c9bff999d12385f396ae (fixed)
Vendor states this is fixed in c27f744ceefadc7bbeb14233b6abc150ced617d2 (fixed)
Vendor states this is fixed in f8b383f83cb573152c577eca1ef101e89995b72a (fixed)
Vendor states this is fixed in 4.17 (unaffected)
Vendor states this is fixed in 4.19.247 (unaffected)
Vendor states this is fixed in 5.10.121 (unaffected)
Vendor states this is fixed in 5.15.46 (unaffected)
Vendor states this is fixed in 5.17.14 (unaffected)
Vendor states this is fixed in 5.18.3 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.4.198 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/058cb6d86b9789377216c936506b346aaa1eb581
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/37443b3508b8cce6832f8d25cb4550b2f7801f50
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4fdfb15e08598711dbf50daf56a33965232daf0e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/99696a2592bca641eb88cc9a80c90e591afebd0f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bd83ff3bbfb003832481c9bff999d12385f396ae
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c27f744ceefadc7bbeb14233b6abc150ced617d2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f8b383f83cb573152c577eca1ef101e89995b72a

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-415

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card