Description
A stack-based buffer overflow in handle_request function in DHT.c in toxcore 0.1.9 through 0.1.11 and 0.2.0 through 0.2.12 (caused by an improper length calculation during the handling of received network packets) allows remote attackers to crash the process or potentially execute arbitrary code via a network packet.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libtoxcore | 0.2.13-1 | — |
| Debian 13 | libtoxcore | 0.2.13-1 | — |
| Debian 12 | libtoxcore | 0.2.13-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | libtoxcore | 0.2.13-1 | — |
| Ubuntu 20.04 LTS | libtoxcore | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP3 | c-toxcore | 0.2.13-bp153.2.3.1 | openSUSE-SU-2021:1640-1 |
| SUSE Package Hub 15 SP2 | c-toxcore | 0.2.13-bp153.2.3.1 | openSUSE-SU-2021:1640-1 |
| SUSE Package Hub 15 SP1 | c-toxcore | 0.2.13-bp153.2.3.1 | openSUSE-SU-2021:1640-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | qtox | 1.17.4-1.1 | openSUSE-SU-2024:11846-1 |
| openSUSE Leap 15.3 | c-toxcore | 0.2.13-bp153.2.3.1 | openSUSE-SU-2021:1640-1 |
| openSUSE Leap 15.2 | c-toxcore | 0.2.13-bp153.2.3.1 | openSUSE-SU-2021:1640-1 |
Advisories 2
- openSUSE-SU-2021:1640-1 Security update for c-toxcore SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11846-1 qtox-1.17.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/TokTok/c-toxcore/pull/1718
- FEDORA-2021-8026e9b394 vendor-advisory
- FEDORA-2021-8b746a32c5 vendor-advisory