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)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 2 Apr 2019 19:29:26 +0000 (20:29 +0100)
commite1e8169bc675962bddf9b273840aaa7c5bc1a59b
tree5f27a7e53c401083b7abd6fdbff0140e82f4c7c0
parentbf6900022105bf01fcb47a02b0e262c023463247
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