[Pkg-utopia-maintainers] Bug#1154929: trixie-pu: package dbus/1.16.4-0+deb13u1

Simon McVittie smcv at debian.org
Mon Nov 23 00:15:46 GMT 2026


Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: dbus at packages.debian.org, debian-boot at lists.debian.org
Control: affects -1 + src:dbus
User: release.debian.org at packages.debian.org
Usertags: pu d-i

[ Reason ]
Fix several denial of service issues that the security team have 
declined to handle as a DSA.

I would like to do this by taking the new upstream release rather than 
by cherry-picking individual patches: the new upstream release has 
already been tested in testing/unstable, and its changes are 
bugfix-only, although not security-only. This is re-packaged for trixie 
rather than merging directly from unstable (hence 0+deb13u1), because 
some of the *packaging* changes in unstable are not suitable for trixie 
(debhelper compat level bump, etc.).

[ Impact ]
If not accepted, a local user can make `dbus-daemon --system` crash or 
fully load one CPU core.

[ Tests ]
Build-time tests and autopkgtest still pass, and have coverage for a lot 
of the new changes.

The same upstream release is in testing, with no regressions reported.

A test-build that differs from the proposed version only in the 
changelog (source + amd64 + i386) is available for testing from 
https://people.debian.org/~smcv/13.9/dbus/ and is working normally for 
me on some trixie systems.

[ Risks ]
It's a key package and all of our desktop environments rely on it, but 
the changes are narrowly targeted.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
      (filtered via debian/filter-debdiff.sh to reduce noise)
  [x] the issue is verified as fixed in unstable

[ Changes ]
debian/control, debian/gbp.conf, debian/watch:
Specifically follow the upstream 1.16.x branch for trixie, and switch to
a new debian/trixie packaging branch for it.

debian/dbus.postinst (1):
Simplify by always asking the user to reboot to replace running
dbus-daemon(s), instead of using pidof to detect whether there are any
running or not. (This is a cherry-pick from testing and I can revert it if 
the release team would prefer to veto it, but I think taking it is 
better than not, because simpler maintscripts are safer maintscripts.)

debian/dbus.postinst (2):
Consistently use /run in preference to /var/run.
(As above this is a cherry-pick from testing and I can revert it if the 
release team would prefer to veto it.)

debian/filter-debdiff.sh:
New convenience script to filter the upstream part of the debdiff so
that it can be done more consistently in future.

debian/patches, tests/test-apparmor-activation.sh:
Ensure forward-compatibility with 6.17+ kernels by skipping an upstream
test that assumed Ubuntu-specific patched behaviour.
(This is a cherry-pick from testing. I would prefer to apply this to 
trixie so that we don't get regressions if the autopkgtest runners are 
upgraded to forky and/or switched to qemu.)

bus/activation.c, bus/bus.c, bus/connection.[ch], bus/driver.c:
Fix several instances of essentially the same crash if a privileged user is
monitoring the bus and a malicious local user arranges for delivery of
a bus-generated broadcast like NameOwnerChanged to be denied.
(CVE-2026-120749, #1153841)

bus/config-loader-expat.c, dbus/dbus-macros-internal.h:
Fix warnings when building against newer libexpat versions.
No real functional change.

bus/system.conf.in:
Update a comment to reflect the hard-coded default accurately. No
functional change.

dbus/dbus-connection.c:
Avoid a possible busy-loop in libdbus clients when blocking on a
DBusPendingCall with its timeout set to DBUS_TIMEOUT_INFINITE.

dbus/dbus-mainloop.c:
Harden against a crash (NULL dereference in production builds, assertion
failure in debug builds) which a LLM reported as an additional denial of
service vulnerability, but as far as I could figure out can't actually
happen in reality.

dbus/dbus-nonce.c:
Prevent an attacker from making a DBusServer sleep(3) indefinitely if it's
listening on the nonce-tcp: transport, which is not used by default and
should never be used on production multi-user systems.
(CVE-2026-128886, #1153843)

dbus/dbus-sysdeps.h:
In debug builds (there's one in dbus-tests), export various symbols
so that new test coverage can access them. No functional change for
production builds.

dbus/dbus-sysdeps-pthread.c:
Avoid an assertion failure when waiting on a condition variable if the
fractional part of the current time, plus the fractional part of the
timeout, happens to be exactly 1 second. This is a one-in-a-billion
scenario if the times are uniformly random.

dbus/dbus-sysdeps-unix.c (1):
Avoid a denial-of-service via a fd leak on certain non-Linux platforms
like FreeBSD and DragonflyBSD. Little functional change on Linux.
(CVE-2026-129257, which doesn't affect Debian now that kFreeBSD has gone)

dbus/dbus-sysdeps-unix.c (2):
Avoid a denial-of-service while emulating poll() in terms of select() on
certain non-Linux platforms like macOS and Interix. No functional change
in production Linux builds.
(CVE-2026-128885, which doesn't affect Debian)

dbus/dbus-sysdeps-unix.c (3):
Fix a one-time memory leak in libdbus clients if dbus-launch is run
but fails.

dbus/dbus-transport-socket.c (1):
Prevent a denial-of-service vulnerability on the system bus in which a
client could cause a busy-loop by shutting down its socket while outgoing
messages were pending.
(CVE-2026-128987, #1153842)

dbus/dbus-transport-socket.c (2):
Avoid a busy-loop on non-Linux operating systems that can report
end-of-stream with POLLHUP but neither POLLIN nor POLLERR, such as
FreeBSD and OpenBSD. No real functional change on Linux.

meson.build (1):
New upstream release

meson.build (2):
Adjust options if building with convenience subprojects. No functional
change for Debian, we don't download or build subprojects.

meson.build (3):
-Depoll=auto disables epoll on non-Linux. No functional change for
release architectures, most likely no functional change for Hurd either.

test/data/valid-config-files/forbidding.conf.in, test/monitor.c:
Regression test for CVE-2026-120749, #1153841.

test/CMakeLists.txt, test/internals/scm-rights.c,
test/internals/meson.build:
Regression test for CVE-2026-129257.

test/fdpass.c:
Skip a failing test on all FreeBSD versions, not just older ones.
No functional change for Debian now that kFreeBSD has gone away.

test/internals/misc-internals.c:
Regression test for the hardening in dbus/dbus-mainloop.c.

test/internals/sysdeps.c (1):
Regression test for CVE-2026-128885, also improves coverage of dbus'
poll() wrapper on Linux.

test/internals/sysdeps.c (2):
Regression test for dbus-launch memory leak fix.

test/loopback.c (1):
Regression test for CVE-2026-128987, #1153842.

test/loopback.c (2):
Regression test for CVE-2026-128886, #1153843.

test/test-dbus-launch-x11.sh:
Fix a typo that would make the test fail if invoked incorrectly. No real
functional change for Debian, we already invoked the tests correctly
both at build-time and as an autopkgtest.

tools/dbus-send.c:
Silence two warnings with newer compilers. No functional change.

[ Other info ]
X-Debbugs-Cc to debian-boot for the graphical installer, which in theory 
uses dbus for AT-SPI accessibility, although I think that's still only 
theoretical?

There is one known/unfixed denial-of-service remaining (quota exhaustion 
by a malicious local user making many parallel requests to activate a 
system service). I'm hoping to be able to fix that in the *next* 
upstream release, but was preempted by higher-priority work. If the 
release team accepts this version before that happens, the next debdiff 
can be relative to the accepted version, and should be considerably 
smaller.

I apologise for the length of this message. Thank you for your patience.

    smcv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus_1.16.4-0+deb13u1.debdiff.gz
Type: application/gzip
Size: 24307 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-utopia-maintainers/attachments/20261123/e8cf9329/attachment-0001.gz>


More information about the Pkg-utopia-maintainers mailing list