Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1383657

Summary: dbus: Format string vulnerability
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amigadave, dkholia, dking, dmoppert, lpoetter, sardella, slawomir, walters
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: dbus 1.10.12, dbus 1.11.6, dbus 1.8.22 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-14 19:33:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1383658    
Bug Blocks:    

Description Andrej Nemec 2016-10-11 11:33:23 UTC
A format string vulnerability in the reference bus implementation,
dbus-daemon, could potentially allow local users to cause arbitrary
code execution or denial of service.

References:

http://seclists.org/oss-sec/2016/q4/85

Upstream bug (patches attached):

https://bugs.freedesktop.org/show_bug.cgi?id=98157

Comment 1 Andrej Nemec 2016-10-11 11:34:08 UTC
Created dbus tracking bugs for this issue:

Affects: fedora-all [bug 1383658]

Comment 2 Doran Moppert 2016-10-12 01:10:00 UTC
Versions prior to 1.4.0 are not affected.

Note the "mitigated in" versions mentioned in oss-security post, where the attack is still possible but can only be conducted by root, who can already do much worse.  Mitigations for CVE-2015-0245 are also effective in the same way.

The simplest mitigation for rhel-7 appears to be altering system.conf as per:

https://cgit.freedesktop.org/dbus/dbus/commit/?id=6dbd09fedc396c53b25ea73c6c8a278beca349c7

Comment 4 Doran Moppert 2016-10-12 05:42:10 UTC
This flaw reliably causes a crash in dbus.  But code execution is prevented by _FORTIFY_SOURCE (inhibiting %n) and the fix for CVE-2012-0864 (arbitrary write using %*N).  dbus will be restarted the next time anything tries to communicate with it, so the denial of service is temporary.

Comment 5 Fedora Update System 2016-10-13 05:52:50 UTC
dbus-1.11.6-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-1dc6be6005

Comment 6 Fedora Update System 2016-10-14 19:33:48 UTC
dbus-1.11.6-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Doran Moppert 2016-10-17 01:12:11 UTC
Mitigation:

The vulnerable dbus interface is intended only for use by systemd, running as root.  To prevent non-root attackers from reaching the interface to exercise this flaw, the following configuration can be added to /etc/dbus/system.bus, inside the <busconfig> tag:

  <!-- Only systemd, which runs as root, may report activation failures. -->
  <policy user="root">
    <allow send_destination="org.freedesktop.DBus"
           send_interface="org.freedesktop.systemd1.Activator"/>
  </policy>

See https://cgit.freedesktop.org/dbus/dbus/commit/?id=6dbd09fedc396c53b25ea73c6c8a278beca349c7

Comment 8 Doran Moppert 2016-10-17 01:17:20 UTC
Statement:

Red Hat Product Security has rated this issue as having Moderate security
impact. This issue is not currently planned to be addressed in future
updates. For additional information, refer to the Issue Severity
Classification: https://access.redhat.com/security/updates/classification/.