During the month of November 2026 and on behalf of Freexian, I worked on the
following:

### rsync

Debian LTS: Uploaded `3.5.0+ds1-0+deb12u1` in bookworm, issued DLA-4888-1,
fixing a total of 33 CVEs.

Debian ELTS: Uploaded `3.5.0+ds1-0+deb11u1` in bullseye,
`3.5.0+ds1-0+deb10u1` in buster, `3.5.0+ds1-0+deb9u1` in stretch, issued
ELA-1909-1.

This is a full backport of rsync 3.5.0, plus regression fixes from 3.5.1,
for those older Debian suites, all the way back to stretch. This follows the
work of Samuel Henrique who did the initial backport in Debian stable
(trixie).

Many vulnerabilities were reported in rsync over the last months, there was
a total of 36 open CVEs in the security tracker. Backporting each fix
individually wasn't a viable option, so it was decided to backport rsync
entirely instead.

The main challenge with those backport was with Python. The test suite is
made of hundreds of Python scripts that are meant to be compatible with
Python 3.7.  In practice though, Python 3.7 support wasn't tested, so it was
slightly broken. I worked with upstream to propose a fix, and add Python 3.7
support to the CI so that it doesn't get broken again, cf.
<https://github.com/RsyncProject/rsync/pull/1167>.

However in Debian stretch we only have Python 3.5, meaning: no f-strings,
and no way to run the tests in the build environments. Fortunately we also
have the autopkgtests, where we have more room for workarounds, and where
it's possible to install Python 3.7 and use it to run the tests, while still
having the default interpreter be Python 3.5.

There's also one, and only one, Python script that is installed with rsync:
it's rrsync aka. restricted rsync. The good thing is that this script is
compatible with Python 3.5, the bad thing is that it hits a Python bug deep
in the code of `subprocess.run`, and it was quite a battle to really
understand the issue, and finally come up with a proper workaround.

Much care was put in this backport, and Sylvain Beucler pointed out that my
backport dropped a patch that enabled support for `openat2` in strech and
buster.  For context: rsync can make use of openat2 for improved security,
but it needs the Linux kernel 5.6 at least. The stock kernel is older than
that in stretch and buster, however we also have backported kernels, and we
want rsync to be able to use openat2 in this case. For that, we need to
patch rsync, so that openat2 support is compiled in, even when the kernel
headers are too old in the build environment... Thanks to Sylvain, we didn't
regress on that specific front.

Nothing is perfect though, and there are still some regressions that were
not addressed yet, reported in the Debian bugtraceker. Hopefully this gets
ironed out uptream soon-ish, and we can backport some extra regression fixes
in Debian shortly afterwards.

### openssl

Working on an update for Debian ELTS, backport of patches is almost done,
and the extensive QA was just started for bullseye. Expecting this to land
in the repo soon.

### Thanks

Thanks to our sponsors for making this possible, and to Freexian for
handling the offering: <https://www.freexian.com/lts/debian/#sponsors>.

--
Arnaud

Reply via email to