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>
Thu, 18 Mar 2021 19:59:14 +0000 (19:59 +0000)
commit5da45b5bb4201a477b2ee342b0b10c69edf46551
treef9b25e9578f62b190324ae8a2a8cbc5af1a824a1
parent2e335da5b1d15648868860dc18cdb549555be5cc
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