Tor 0.4.8.9 broken in combination with vanguards
Summary
Downloads are interrupted after a few seconds.
This bug was introduced between Tor version 0.4.7.16-1
(from Debian bookworm
security repository) and Tor version 0.4.8.9-1~d12.bookworm+1
(from deb.torproject.org
). I am certain that I could pinpoint it to it.
The issue is only reproducible if vanguards
is installed.
The older Tor version from Debian bookworm
security repository version 0.4.7.16-1
does not have this issue.
Steps to reproduce:
- Use a Debian
bookworm
. - Enable
deb.torproject.org
sudo apt update
sudo apt install --no-install-recommends vanguards tor
- Edit
/etc/tor/vanguards.conf
and changecontrol_socket =
tocontrol_socket = /run/tor/control
(related ticket) -
sudo systemctl enable vanguards
(potential Debian bug not being enabled by default) sudo systemctl restart tor@default
sudo systemctl restart vanguards
- (In App Qube)
torsocks curl --fail --output /tmp/test.tar.xz https://dist.torproject.org/torbrowser/13.0.5/tor-browser-linux-x86_64-13.0.5.tar.xz
What is the current bug behavior?
Connection drops after a bit of continued file downloads.
torsocks curl --fail --output /tmp/test.tar.xz https://dist.torproject.org/torbrowser/13.0.5/tor-browser-linux-x86_64-13.0.5.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
3 107M 3 3624k 0 0 24100 0 1:17:51 0:02:34 1:15:17 29815
curl: (18) transfer closed with 108874640 bytes remaining to read
zsh: exit 18 torsocks curl --fail --output /tmp/test.tar.xz
What is the expected behavior?
No connection drops.
Environment
- Qubes R4.2
- Debian based App Qube
- Tor version
0.4.8.9-1~d12.bookworm+1
-
deb.torproject.org
bookworm
repository - vanguards version
0.3.1-2.3
frompackages.debian.org
Also reproducible in:
- Debian
bookworm
in KVM - Debian
bookworm
in a Qubes PVH VM - Qubes-Whonix 17 (Debian
bookworm
based) PVH VM - Non-Qubes-Whonix (Whonix for VirtualBox)
I wasn't able to reproduce this yet:
- on a real (non-Qubes) Debian
bookworm
- Debian
bookworm
in a Qubes HVM VM
So it seems that only certain types of VMs (KVM, Qubes PVH, VirtaulBox) are affected. Therefore you might conclude this issue isn't caused by any software developed by The Tor Project. And you might be right about that. However, do you have any insights what code changes might have triggered this issue?
Update: A user in the forums reported having reproduced this on hardware (outside of any VMs) too.
Also reported against Qubes: Tor 0.4.8.9 broken in combination with vanguards in Qubes Debian templates
Additional information
sudo systemctl stop vanguards && sudo systemctl restart tor@default
fixes this issue. This shows that this issue is only happening if Tor is combined with vanguards.