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)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 8 Jul 2021 13:03:45 +0000 (14:03 +0100)
commit9402674d751760d34c52e6c67c9bcd5c7d0df11d
tree15390b23732723cd6f382a978bc21e254607538d
parentc4f6a087a98da1d63e64aa9da70f62130d297832
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