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>
Wed, 29 Jan 2020 18:07:53 +0000 (18:07 +0000)
commitc3f6ab6ecbd1e27d81d354636cb18cec4c4a740e
tree07fb6ff179b30e3944c28e8de7866b785f9ed4dc
parent14dcbfd1ee692751e8d73503c9c2d9c35d9765d5
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