A routine Linux update can hand hackers root: APT flaw exposed
A bug in the Debian and Ubuntu package manager lets an attacker slip in an unsigned package and take full control of the system. Fixes are already out.
AI news faster than on the site — on Telegram KARMAZIN MEDIA

Updating your system has always been the safe part of running Linux. Packages are signed, APT checks the signature, a fake never gets through. Turns out it can. Researcher Max Justicz found a flaw in APT, the package manager behind Debian, Ubuntu and their derivatives, tracked as CVE-2026-109518, that lets an attacker slip in a package of their own and get root.
Here is how it works. The attacker has to sit on the HTTP path between the machine and the package server, for example a compromised proxy or a malicious repository mirror. They mix in redirects and fake server errors, APT retries the download, and because it reuses hard links it mixes the files up. One package passes the check, a different one gets installed. Since .deb install scripts run as root, the swapped package gets full control of the system.
The nasty part is the default settings. The attack only works if APT retries failed downloads, and since Debian 12 and Ubuntu 22.04 LTS the Acquire::Retries setting is 3 out of the box. So nearly every modern install is exposed by default. That covers apt, apt-get, aptitude and Ubuntu's graphical installers. Snap packages are not affected, they use a different system.
Canonical rated the bug 7.7 on CVSS 4.0, which is high, and shipped fixes on November 4 together with Debian. The versions you want: APT 2.6.2 on Debian 12, 3.0.4 on Debian 13, 2.4.15ubuntu0.1 on Ubuntu 22.04, 2.8.4ubuntu0.1 on Ubuntu 24.04. Older branches get patches through Ubuntu Pro.
The advice is to update with retries switched off, so the patch itself can't be swapped mid-install: sudo apt update && sudo apt upgrade -o Acquire::Retries=0. Moving your repositories to HTTPS also blocks tampering on the network. Once patched, signatures do their job again even with an untrustworthy mirror.
If you run a server on Debian or Ubuntu, today is a good day to update it.
AI agents
Tools
Tools