APT RCE via hard-link reuse
CVE-2026-109518 is a package-verification bypass in APT's HTTP download backend on Debian, Ubuntu, and derivative Linux distributions. HTTP redirects can cause two separate package downloads to resolve to the same URI, allowing APT to merge downloads and reuse hard-linked files. Incorrect handling of a subsequent failed-download retry can modify a shared file after its contents have passed verification. APT can then install the attacker-controlled replacement without verifying the substituted contents, allowing arbitrary code execution as root. The flaw combines improper hard-link handling with a time-of-check/time-of-use condition and affects APT-based command-line and graphical frontends.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises package integrity and can result in complete compromise of the affected host or container environment because malicious package installation scripts execute as root. Consequences include access to sensitive data and credentials, modification of system software, persistence, and service disruption. Exploitation during image builds can contaminate subsequently distributed images. In Qubes OS, compromise of an affected Debian or Whonix template can propagate to qubes based on that template and undermine data confidentiality or privacy services.
If you can’t patch tonight, do this now.
Set Acquire::Retries=0 to remove the retry prerequisite, including while downloading and installing the APT security update. This protects against the documented attack by both on-path adversaries and malicious mirrors but does not replace patching. Use properly validated HTTPS repositories to prevent on-path manipulation, and avoid untrusted mirrors and proxies. HTTPS alone does not prevent exploitation by a malicious repository server or a trusted TLS-terminating intermediary.
Patch, then assume compromise.
Install the distribution-provided security updates for APT and its associated library packages, and verify the installed versions afterward. Debian fixed versions include 2.6.2 for bookworm, 3.0.4 for trixie, and 3.3.6 for sid. Ubuntu fixed versions are 2.4.15ubuntu0.1 for 22.04 LTS, 2.8.4ubuntu0.1 for 24.04 LTS, 3.2.1ubuntu0.1 for 26.04 LTS, and 3.3.3ubuntu0.1 for 26.10. Older Ubuntu fixes are 2.0.12+esm1 for 20.04 LTS, 1.6.19+esm1 for 18.04 LTS, 1.2.36+esm1 for 16.04 LTS, and 1.0.1ubuntu2.24+esm4 for 14.04 LTS, subject to applicable extended-support coverage. Disable download retries while installing the update, for example with sudo apt update && sudo apt upgrade -o Acquire::Retries=0. Rebuild and redeploy affected container and build images. On Qubes OS, apply the QSB-122 update-tool fixes in dom0 before updating affected templates and standalones through the Qubes update mechanism.
No validated public exploits yet. Hidden: 2 rejected by Mallory's analysis as not a working exploit.
117 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.