# CVE-2022-49410: tracing: Fix potential double free in create\_var\_ref()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2025-02-26T02:12:33.124Z
- **Modified:** 2026-08-05T08:55:04.239Z

## Who should check

- Anyone running Linux \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< f8b383f83cb573152c577eca1ef101e89995b72a; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< c27f744ceefadc7bbeb14233b6abc150ced617d2; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< 058cb6d86b9789377216c936506b346aaa1eb581; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< 37443b3508b8cce6832f8d25cb4550b2f7801f50; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< 4fdfb15e08598711dbf50daf56a33965232daf0e; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< bd83ff3bbfb003832481c9bff999d12385f396ae; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< 99696a2592bca641eb88cc9a80c90e591afebd0f
- Anyone running Linux 4.17

## 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 and fixed versions

- Linux: \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< f8b383f83cb573152c577eca1ef101e89995b72a; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< c27f744ceefadc7bbeb14233b6abc150ced617d2; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< 058cb6d86b9789377216c936506b346aaa1eb581; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< 37443b3508b8cce6832f8d25cb4550b2f7801f50; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< 4fdfb15e08598711dbf50daf56a33965232daf0e; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< bd83ff3bbfb003832481c9bff999d12385f396ae; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< 99696a2592bca641eb88cc9a80c90e591afebd0f (cvelist)
- Linux: 4.17 (cvelist)

## Mitigation

- Upgrade Linux to 99696a2592bca641eb88cc9a80c90e591afebd0f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49410. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49410.md
Affected: Linux >= 067fe038e70f6e64960d26a79c4df5f1413d0f13, < f8b383f83cb573152c577eca1ef101e89995b72a; >= 067fe038e70f6e64960d26a79c4df5f1413d0f13, < c27f744ceefadc7bbeb14233b6abc150ced617d2; >= 067fe038e70f6e64960d26a79c4df5f1413d0f13, < 058cb6d86b9789377216c936506b346aaa1eb581; >= 067fe038e70f6e64960d26a…
Fixed in: Linux 058cb6d86b9789377216c936506b346aaa1eb581, Linux 37443b3508b8cce6832f8d25cb4550b2f7801f50, Linux 4fdfb15e08598711dbf50daf56a33965232daf0e, Linux 99696a2592bca641eb88cc9a80c90e591afebd0f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49410 being exploited?

There is no confirmed exploitation: CVE-2022-49410 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49410?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49410?

Linux \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< f8b383f83cb573152c577eca1ef101e89995b72a; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< c27f744ceefadc7bbeb14233b6abc150ced617d2; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< 058cb6d86b9789377216c936506b346aaa1eb581; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< 37443b3508b8cce6832f8d25cb4550b2f7801f50; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< 4fdfb15e08598711dbf50daf56a33965232daf0e; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< bd83ff3bbfb003832481c9bff999d12385f396ae; \>= 067fe038e70f6e64960d26a79c4df5f1413d0f13, \< 99696a2592bca641eb88cc9a80c90e591afebd0f; Linux 4.17.

### Is there a fix for CVE-2022-49410?

Yes. Fixed in Linux 058cb6d86b9789377216c936506b346aaa1eb581, Linux 37443b3508b8cce6832f8d25cb4550b2f7801f50, Linux 4fdfb15e08598711dbf50daf56a33965232daf0e, Linux 99696a2592bca641eb88cc9a80c90e591afebd0f. Upgrade Linux to 99696a2592bca641eb88cc9a80c90e591afebd0f or later.

### How do I check if I'm affected by CVE-2022-49410?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/f8b383f83cb573152c577eca1ef101e89995b72a>
- patch: <https://git.kernel.org/stable/c/c27f744ceefadc7bbeb14233b6abc150ced617d2>
- patch: <https://git.kernel.org/stable/c/058cb6d86b9789377216c936506b346aaa1eb581>
- patch: <https://git.kernel.org/stable/c/37443b3508b8cce6832f8d25cb4550b2f7801f50>
- patch: <https://git.kernel.org/stable/c/4fdfb15e08598711dbf50daf56a33965232daf0e>
- patch: <https://git.kernel.org/stable/c/bd83ff3bbfb003832481c9bff999d12385f396ae>
- patch: <https://git.kernel.org/stable/c/99696a2592bca641eb88cc9a80c90e591afebd0f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49410>

HTML: <https://flawdb.com/CVE-2022-49410> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49410>
