qcp
Affected
- introduced
0, fixed0.3.3(semver)
Fixed versions
0.3.3
Fix
- Fixed version
0.3.3cargo update -p qcp --precise 0.3.3
Advisory
Also known as: None
qcp has possible crash/DOS in some build configurations
Nature of issue: Crash (Denial of Service)
Source of issue: Dependent package (ring)
Affected versions of qcp: 0.1.0-0.3.2
Recommendation: Upgrade to qcp 0.3.3 or later
Who is affected
All versions of qcp from 0.1.0 to 0.3.2 are affected, but only if built with runtime overflow checks.
RUSTFLAGS, or in your Cargo.toml profile.What to do if you are affected
We recommend you upgrade to qcp 0.3.3 or later.
Users upgrading from versions prior to 0.3.0 should note that an incompatible protocol change was introduced in version 0.3.0, so should stage their upgrade carefully.
Alternatively, it is possible to avoid upgrading by rebuilding qcp locally. The following alternative mitigations have been identified:
ring dependency (0.17.12 or later).Detail
The upstream advisory describes a crash in the implementation of the QUIC protocol that can be induced by a specially-crafted packet, and which happens naturally approximately every 1 in 2**32 packets sent and/or received.
The crash only happens when runtime overflow checking is enabled. Note that the upstream advisory describes the overflow check causing this issue as "unwanted". Their response, to remove the overflow check in one place, does not introduce any additional issue.
Impact
During qcp file transfer sessions, it is possible for an attacker to send a specially-crafted packet that could trigger this issue.
The underlying issue may also affect particularly large file transfers. The maximum TLS packet size is 16KB, so 2**32 packets will transfer up to 68TB (including the protocol/retransmit overhead). Again, this is only the case if qcp was built with runtime overflow checks enabled.
As of the time of writing, we are not aware of any reports of this issue being exploited.
Additional notes
References
Upstream advisories:
Medium Basis: The source's own band: MODERATE
0, fixed 0.3.3 (semver)0.3.3
0.3.3cargo update -p qcp --precise 0.3.3Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0