CVE-2008-0595: Medium severity Fedoraproject Fedora vulnerability
dbus-daemon in D-Bus before 1.0.3, and 1.1.x before 1.1.20, recognizes sendinterface attributes in allow directives in the security policy only for fully qualified method calls, which allows local users to bypass intended access restrictions via a method call with a NULL interface.
Other sources
Havoc Pennington discovered a flaw in the way the dbus-daemon applies its security policy.
Ray Strode describes it as such: When evaluating whether or not to invoke a method call, the bus daemon will look at the security policy and try to determine whether or not the caller is allowed access to the method call.
Many dbus services have lines in their security policy of the form:
<allow sendinterface="some.interface.WithMethods"/>
to explicitly whitelist the methods of a particular interface for users of a specific policy context.
Normally dbus method calls are invoked fully qualified. That is to say the interface the method belongs to is passed to the bus daemon along with the method name of the method call. The bus daemon does not require method calls to be fully qualified, however. If a caller passes just the method with a NULL interface, then the bus daemon will try to find the interface with the corresponding method and invoke the method call on that interface.
In these cases, the sendinterface attribute of the allow directive is ignored.
<allow sendinterface="some.interface.WithMethods"/>
is interpreted as an implicit <allow/>. This means that if dbus policy file contains any <allow sendinterface="..." /> directives for a particular context, then it implicitly allows that context to invoke non-qualified method calls defined for any interface.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/1.0.2to a version that resolves this vulnerability.Fixed in 7. - Upgrade
Upgrade
debian/dbusto a version that resolves this vulnerability.Fixed in 1.1.20-1 - Upgrade
Upgrade
debian/dbusto a version that resolves this vulnerability.Fixed in 1.0.2-1+etch1Fixed in 1.1.20-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.0.3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.1.20
Event History
Frequently Asked Questions
What is the severity of CVE-2008-0595?
CVE-2008-0595 has been classified as a medium severity vulnerability.
How do I fix CVE-2008-0595?
You can fix CVE-2008-0595 by upgrading D-Bus to version 1.0.3 or later, or ensure you are using a version within the 1.1.x series above 1.1.20.
Which systems are affected by CVE-2008-0595?
CVE-2008-0595 affects D-Bus versions prior to 1.0.3 and 1.1.x before 1.1.20 on various distributions including Fedora, Mandrake, and Red Hat Enterprise Linux.
What type of attack does CVE-2008-0595 facilitate?
CVE-2008-0595 allows local users to bypass intended access restrictions through method calls with a NULL interface.
Is there a patch available for CVE-2008-0595?
Yes, patches have been released for CVE-2008-0595 with the corresponding updates in the D-Bus versions mentioned.