Use After Free Affecting tracing package, versions >=0.1.38 <0.1.40


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-TRACING-6156655
  • published14 Jan 2024
  • disclosed19 Oct 2023
  • creditUnknown

Introduced: 19 Oct 2023

CVE NOT AVAILABLE CWE-416  (opens in a new tab)

How to fix?

Upgrade tracing to version 0.1.40 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free via the incorrect use of std::mem::forget in the Instrumented::into_inner method. An attacker can potentially cause a stack use-after-free if the compiler reuses the stack slot of the self object after std::mem::forget has been called, leading to undefined behavior and possible exploitation.

CVSS Base Scores

version 3.1