Use After Free Affecting rio package, versions *


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.56% (75th percentile)

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-RIO-1279037
  • published4 May 2021
  • disclosed11 May 2020
  • creditUnknown

Introduced: 11 May 2020

CVE-2020-35876  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

There is no fixed version for rio.

Overview

rio is a Bindings for io_uring, the hottest thing to happen to linux IO in a long time.

Affected versions of this package are vulnerable to Use After Free. When a rio::Completion is leaked, its drop code will not run. The drop code is responsible for waiting until the kernel completes the I/O operation into, or out of, the buffer borrowed by rio::Completion. Leaking the struct will allow one to access and/or drop the buffer, which can lead to a use-after-free, data races or leaking secrets.

References

CVSS Base Scores

version 3.1