Feed
–LOW

GHSA-4q83-7cq4-p6wg`tokio::io::ReadHalf<T>::unsplit` is Unsound

Informational: unsound code, reported by RustSec as a warning.

A low-severity vulnerability, without a CVSS score in our data. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
–
not in our data
Priority
No score, low severity
how it is computed
Fix
Named by a source
Advisory published 4 Feb 2023

Reference

None of the "Needs attention" rules apply right now.

No EPSS score: unknown · Severity low, no CVSS score in our data (+12)

Immediate actions

  • tokio (crates.io): upgrade to 1.24.2 / 1.20.4 / 1.18.5 or later on your release line.

Who should check

  • tokio (crates.io) pkg:cargo/tokio

    • Affected>= 1.21.0, < 1.24.2Fixed in1.24.2OSV (RUSTSEC-2023-0005)
    • Affected>= 1.19.0, < 1.20.4Fixed in1.20.4OSV (RUSTSEC-2023-0005)
    • Affected>= 0.2.0, < 1.18.5Fixed in1.18.5OSV (RUSTSEC-2023-0005)

Confirmed facts

Severity
LOW (no CVSS score in our data)

Unknowns

  • No CVSS score in our data. That says nothing about how bad it is, nor that none is published.
  • No EPSS score in our data.

Advisory text

Quoted from the source advisory (untrusted)`tokio::io::ReadHalf<T>::unsplit` can violate the `Pin` contract The soundness issue is described in the [tokio/issues#5372](https://github.com/tokio-rs/tokio/issues/5372) Specific set of conditions needed to trigger an issue (a !Unpin type in ReadHalf) is unusual, combined with the difficulty of making any arbitrary use-after-free exploitable in Rust without doing a lot of careful alignment of data types in the surrounding code. The `tokio` feature `io-util` is also required to be enabled to trigger this soundness issue. Thanks to zachs18 reporting the issue to Tokio team responsibly and taiki-e and carllerche appropriately responding and fixing the soundness bug. Tokio before 0.2.0 used `futures` 0.1 that did not have `Pin`, so it is not affected by this issue.

Update history

No events recorded. Our history starts on 1 Jan 2025.

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 28 min ago · osv 28 min ago · nvd 28 min ago · epss 3 h ago · JSON · ask via MCP: explain_vulnerability

Also known as RUSTSEC-2023-0005