[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-relays] Re: [CVE-2026-124851] Zstd compression information leak bug. Upgrade your Zstd packages, and restart Tor!
On 25/11/2026 19.36, Alexander Hansen Færøy via tor-relays wrote:
TL;DR: There is a bug in Zstd, a library Tor uses for compression. We strongly
encourage everyone to upgrade their Zstd packages, and restart their Tor
processes afterward. Upgrading Zstd itself is not enough. You MUST also restart Tor.
After auditing both the fixes in Meta's Zstd repository and how C Tor
decompresses data from the directory layer, for this issue to be exploitable,
the following conditions must be met:
1. An attacker supplies the specially crafted compressed data to the Tor client
via the directory protocol.
2. A Zstd decompression context that is re-used for multiple rounds of
decompression. Tor, in contrast, uses a new decompression stream for each
invocation, both in our spooling mode and in the mode where we pass in a buffer
and decompress it. You can trace this code by following the calls to
`ZSTD_createDStream()` in `compress_zstd.c` and its creation via
`tor_zstd_compress_new()`.
3. The decompressed result would have to be passed back to the attacker, which
is not the case in Tor.
In Tor's situation, we don't meet all 3 of the conditions above even in a
hypothetical situation where an attacker is able to do (1).
When a Tor client (normal client or onion service) fetches its directory data,
it decompresses data that a malicious guard may provide, but it uses a fresh
decompression state for each response body via the HTTP directory protocol.
Even if Tor were to accidentally decompress with the same decompression context
multiple times, we never transmit the decompressed data back to the guard.
Therefore, there is no evidence that users were adversely affect. We continue to
recommend that you upgrade [relays and clients].
Cheers,
Alex
--
Alexander Hansen Færøy
_______________________________________________
tor-relays mailing list -- tor-relays@xxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to tor-relays-leave@xxxxxxxxxxxxxxxxxxxx