diff options
| author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2015-06-24 23:06:46 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-20 20:54:34 +0100 |
| commit | 00fce45b5541df2448fee9386f1f12008b775673 (patch) | |
| tree | 94ec51d4cc5898363dd70fd002ecb9c060ed9b17 | |
| parent | fcd25c6d2e4f398dd641888fcb6dbcdf54ce6a4c (diff) | |
| download | poky-00fce45b5541df2448fee9386f1f12008b775673.tar.gz | |
dbus: CVE-2015-0245: prevent forged ActivationFailure
Fix CVE-2015-0245 by preventing non-root and non-systemd processes
from fooling the dbus daemon into thinking systemd service activation
failed.
(From OE-Core rev: a8aa06b2405dec31a306fdf47bd1fdf740fde7bd)
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-core/dbus/dbus.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-core/dbus/dbus/CVE-2015-0245-prevent-forged-ActivationFailure.patch | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc index d38ba7e1d2..971eabf82c 100644 --- a/meta/recipes-core/dbus/dbus.inc +++ b/meta/recipes-core/dbus/dbus.inc | |||
| @@ -17,6 +17,7 @@ SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ | |||
| 17 | file://dbus-1.init \ | 17 | file://dbus-1.init \ |
| 18 | file://os-test.patch \ | 18 | file://os-test.patch \ |
| 19 | file://clear-guid_from_server-if-send_negotiate_unix_f.patch \ | 19 | file://clear-guid_from_server-if-send_negotiate_unix_f.patch \ |
| 20 | file://CVE-2015-0245-prevent-forged-ActivationFailure.patch \ | ||
| 20 | " | 21 | " |
| 21 | 22 | ||
| 22 | inherit useradd autotools pkgconfig gettext update-rc.d | 23 | inherit useradd autotools pkgconfig gettext update-rc.d |
diff --git a/meta/recipes-core/dbus/dbus/CVE-2015-0245-prevent-forged-ActivationFailure.patch b/meta/recipes-core/dbus/dbus/CVE-2015-0245-prevent-forged-ActivationFailure.patch new file mode 100644 index 0000000000..59363b3e76 --- /dev/null +++ b/meta/recipes-core/dbus/dbus/CVE-2015-0245-prevent-forged-ActivationFailure.patch | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | CVE-2015-0245: prevent forged ActivationFailure from non-root processes | ||
| 2 | |||
| 3 | Upstream has fixed this in code but suggests using this as a easily | ||
| 4 | backportable fix: https://bugs.freedesktop.org/show_bug.cgi?id=88811 | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate | ||
| 7 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
| 8 | |||
| 9 | |||
| 10 | |||
| 11 | From 91eb2ea3362630190e08c1c777c47bae065ac828 Mon Sep 17 00:00:00 2001 | ||
| 12 | From: Simon McVittie <simon.mcvittie@collabora.co.uk> | ||
| 13 | Date: Mon, 26 Jan 2015 20:09:56 +0000 | ||
| 14 | Subject: [PATCH 1/3] CVE-2015-0245: prevent forged ActivationFailure from | ||
| 15 | non-root processes | ||
| 16 | |||
| 17 | Without either this rule or better checking in dbus-daemon, non-systemd | ||
| 18 | processes can make dbus-daemon think systemd failed to activate a system | ||
| 19 | service, resulting in an error reply back to the requester. | ||
| 20 | |||
| 21 | This is redundant with the fix in the C code (which I consider to be | ||
| 22 | the real solution), but is likely to be easier to backport. | ||
| 23 | --- | ||
| 24 | bus/system.conf.in | 8 ++++++++ | ||
| 25 | 1 file changed, 8 insertions(+) | ||
| 26 | |||
| 27 | diff --git a/bus/system.conf.in b/bus/system.conf.in | ||
| 28 | index 92f4cc4..851b9e6 100644 | ||
| 29 | --- a/bus/system.conf.in | ||
| 30 | +++ b/bus/system.conf.in | ||
| 31 | @@ -68,6 +68,14 @@ | ||
| 32 | <deny send_destination="org.freedesktop.DBus" | ||
| 33 | send_interface="org.freedesktop.DBus" | ||
| 34 | send_member="UpdateActivationEnvironment"/> | ||
| 35 | + <deny send_destination="org.freedesktop.DBus" | ||
| 36 | + send_interface="org.freedesktop.systemd1.Activator"/> | ||
| 37 | + </policy> | ||
| 38 | + | ||
| 39 | + <!-- Only systemd, which runs as root, may report activation failures. --> | ||
| 40 | + <policy user="root"> | ||
| 41 | + <allow send_destination="org.freedesktop.DBus" | ||
| 42 | + send_interface="org.freedesktop.systemd1.Activator"/> | ||
| 43 | </policy> | ||
| 44 | |||
| 45 | <!-- Config files are placed here that among other things, punch | ||
| 46 | -- | ||
| 47 | 2.1.4 | ||
| 48 | |||
