Christophe CasalegnoAutoimmune warrior, Entrepreneur & Bio/Hacker

StackX Debian: security fixes for Debian 9, 10 and 11

After PHP, the kernels, Apache, Proxmox VE 8 and OpenSSH, I felt like getting ambitious! Patching the kernel and the services you expose is a good start. But while we’re at it, we might as well take care of APT, the system libraries and the services that keep the machine running.

So I’ve opened… StackX Debian! It’s a free public APT repository with targeted fixes for Debian 9 Stretch, Debian 10 Buster and Debian 11 Bullseye on amd64. The packages and their sources are available on my usual mirror. No account needed.

Which packages are in the repository?

The r11 release includes 595 binary packages across the three distributions. APT, Git and Wget are in all three suites. On Stretch and Buster, you’ll also find glibc, Python interpreters and services such as rsync, Memcached, Pure-FTPd and BIND. You can open the source index for your distribution or consult the full inventory with exact revisions.

DistributionAPT suite (source index)Source entriesBinary packages
Debian 9 Stretchstretch-stackx-security48285
Debian 10 Busterbuster-stackx-security43270
Debian 11 Bullseyebullseye-stackx-security940
Total3 suites100595

A source is counted once per distribution. The 100 entries correspond to 51 distinct source package names. The 595 binaries include the architecture-independent packages (all) shipped in the amd64 indexes.

Depending on the distribution, the repository covers core system packages (APT, dpkg, certificates, glibc, systemd, PAM, sudo and needrestart), networking and development tools such as cURL and Git, and TLS libraries. It also includes packages for archiving and compression, image and XML processing, and Python, from the interpreters to pip and setuptools.

On Stretch, the linux 4.9.320-3 source entry supplies linux-libc-dev, the headers used by userspace programs. For the kernel your machine actually boots, see StackX kernels.

I maintain this selection for machines that need to keep running while a migration is underway. Depending on the package, the fixes come from Debian, Freexian, Sury or the upstream projects. When an existing fixed package fits, I keep its revision and sources. When an older branch needs the fix adapted, I backport it and rebuild the packages. What gets tested depends on the package and how it’s used.

27 November 2026. First public announcement of StackX Debian

The cumulative r11 release is online. I’d put r10 on the mirror for a few minutes to try it out myself. At priority 1, I had to select the packages by hand. That got old pretty quickly! What I wanted was for APT to offer me the updates when I run apt upgrade, the way it does for everything else. With r11 at the usual priority of 500, that’s what it does. The candidate version also depends on your other repositories, local APT preferences and any target release you’ve set.

Backporting BIND 9.11 to Stretch and Buster

On the DNS side, I started with Freexian’s BIND 9.11 packages and integrated fixes for twelve CVEs, drawing on work from AlmaLinux, SUSE and ISC. The mirror provides the sources and 19 binary packages per distribution. These are the full bind9 revisions.

  • Stretch: 1:9.11.37+git20260722.018aa2e+dfsg-0~deb10u1~deb9u1+sx3
  • Buster: 1:9.11.37+git20260722.018aa2e+dfsg-0~deb10u1+sx3

If your Stretch server still runs BIND 9.10, moving to 9.11 changes the libraries’ application binary interface (ABI). Check the modules you load into named and any software linked against the old libraries. If you run a secondary DNS server, also test a TSIG-signed zone transfer from your usual primary. With this fix, every message in a signed transfer must carry a valid signature. That’s worth checking if your primary is an older one.

Add the repository and check your first upgrade

Run the commands below as root. On Stretch, first check that ca-certificates and apt-transport-https are installed. Download the script and read it before running it.

wget https://mirrors.scalarx.net/stackx-debian/add-stackx-debian-repo.sh
less add-stackx-debian-repo.sh
bash add-stackx-debian-repo.sh

The script detects your Debian release, checks the keyring and the catalogue signature, then verifies that APT can load the amd64 index. It adds the APT source with signed-by and a dedicated keyring. It doesn’t install any packages. This is the fingerprint of the StackX public key.

AF97ED98AACE4CE129A03B6E2C9736B593BABF7F

apt update
apt -s upgrade

Review the proposed versions and dependency changes. To see which version APT would choose for a particular package, try apt-cache policy bind9, for example. If you’re happy with the simulation, run apt upgrade.

If you had already fetched the old catalogue on Buster or Bullseye, APT may ask you to confirm the priority change from 1 to 500. In that case only, once you’ve checked that the message is about StackX Debian, the following command accepts that change once for this source. Then run apt update again and repeat the usual simulation.

apt-get -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/stackx-debian.list \
  -o Dir::Etc::sourceparts=- -o APT::Get::List-Cleanup=false \
  -o Acquire::AllowReleaseInfoChange::DefaultPin=true update

What we checked

I verified the signatures of the three InRelease files on the HTTPS mirror and the SHA-256 hashes of the binary and source indexes. You can consult the signed files for Stretch, Buster and Bullseye, along with the SHA-256 manifest.

In the lab, the r10-to-r11 transition was tested with each distribution’s native APT client and isolated package states. For each distribution, the tests included simulating an upgrade, downloading the expected revision of Wget and checking its hash.

For BIND, we tested upgrades in Stretch and Buster VMs from the selected Debian and Freexian versions, checked that local configuration files were preserved and tested rolling back. The DNS tests included answers over UDP and TCP and TSIG-signed AXFR and IXFR zone transfers. You’ll want to check your own modules, primaries and workloads on your servers.

Other StackX repositories

For PHP, Apache, OpenSSH and bootable kernels, the packages and instructions are in their respective repositories. StackX PX is for Proxmox VE 8 hosts on Debian 12 Bookworm. StackX PHP · StackX kernels · StackX Apache · StackX OpenSSH · StackX PX

--
Christophe Casalegno
all.bo

Christophe Casalegno Brain 0verride

Keep it simple
and direct!