sd-bus: enforce a size limit on D-Bus object paths
authorMartin Pitt <martin@piware.de>
Sun, 17 Feb 2019 09:17:45 +0000 (10:17 +0100)
committerMichael Biebl <biebl@debian.org>
Sat, 24 Oct 2020 18:44:48 +0000 (19:44 +0100)
commit71f51dd726a3a1a99823ada677a36e378413d0f9
tree57b60a5f30ad9909c61e26578af49522ee3af47b
parent7967feb50add49648ac319d70f82b50b500039d9
sd-bus: enforce a size limit on D-Bus object paths

Replace stack with heap allocation. This avoids accessing/modifying
memory outside of the allocated stack region by sending specially
crafted D-Bus messages with very large object paths.

Vulnerability discovered by Chris Coulson <chris.coulson@canonical.com>,
patch provided by Riccardo Schirone <rschiron@redhat.com>.

CVE-2019-6454

Gbp-Pq: Name sd-bus-enforce-a-size-limit-on-D-Bus-object-paths.patch
src/libsystemd/sd-bus/bus-internal.c
src/libsystemd/sd-bus/bus-internal.h
src/libsystemd/sd-bus/bus-objects.c