Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 727104 (CVE-2020-12049)

Summary: <sys-apps/dbus-1.12.18: Denial of service via file descriptor leak (CVE-2020-12049)
Product: Gentoo Security Reporter: Sam James <sam>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: CONFIRMED ---    
Severity: normal CC: freedesktop-bugs, s390
Priority: Normal Keywords: CC-ARCHES, STABLEREQ
Version: unspecifiedFlags: nattka: sanity-check+
Hardware: All   
OS: Linux   
URL: https://gitlab.freedesktop.org/dbus/dbus/-/issues/294
Whiteboard: A3 [glsa+ stable cve]
Package list:
=sys-apps/dbus-1.12.18
Runtime testing required: ---

Description Sam James gentoo-dev Security 2020-06-04 11:01:02 UTC
Description:
"Kevin Backhouse of the GitHub Security Lab discovered a denial of service
vulnerability[0] in dbus >= 1.3.0. An unprivileged local attacker can cause
the system dbus-daemon (dbus-daemon --system) to leak file descriptors
(fds) by sending messages with a number of fds that exceeds the allowed
number, resulting in truncation. The attacker's connection is (correctly)
disconnected, but the fds that were attached to the truncated message
are (incorrectly) not closed. By repeating this process, the attacker
can make the dbus-daemon reach its RLIMIT_NOFILE limit. When this limit
is reached, new connections will fail, and existing connections will be
unable to send messages with fds attached, causing denial of service.

The same attack is also possible in the uncommon situation where processes
of different privilege levels communicate directly using a private D-Bus
socket (DBusServer) without going via a dbus-daemon."
Comment 2 Larry the Git Cow gentoo-dev 2020-06-04 18:30:09 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6db3472d7e1afcf3d0e115c81392490cbf9b4d79

commit 6db3472d7e1afcf3d0e115c81392490cbf9b4d79
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2020-06-04 18:29:54 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2020-06-04 18:30:04 +0000

    sys-apps/dbus: Security bump to version 1.12.18
    
    Bug: https://bugs.gentoo.org/727104
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 sys-apps/dbus/Manifest            |   1 +
 sys-apps/dbus/dbus-1.12.18.ebuild | 272 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 273 insertions(+)
Comment 3 Sam James gentoo-dev Security 2020-06-08 18:54:54 UTC
@maintainer(s), ready for stabilisation?
Comment 4 Sergei Trofimovich gentoo-dev 2020-06-14 20:23:28 UTC
ppc/ppc64 stable
Comment 5 Agostino Sarubbo gentoo-dev 2020-06-15 15:01:52 UTC
amd64 stable
Comment 6 Agostino Sarubbo gentoo-dev 2020-06-15 15:05:06 UTC
arm stable
Comment 7 Agostino Sarubbo gentoo-dev 2020-06-15 15:13:15 UTC
sparc stable
Comment 8 Agostino Sarubbo gentoo-dev 2020-06-15 15:16:31 UTC
x86 stable
Comment 9 Sam James gentoo-dev Security 2020-06-17 14:25:06 UTC
arm64 stable
Comment 10 Rolf Eike Beer 2020-06-18 17:38:34 UTC
hppa stable
Comment 11 Sam James gentoo-dev Security 2020-07-17 00:03:30 UTC
s390: ping
Comment 12 GLSAMaker/CVETool Bot gentoo-dev 2020-07-27 01:02:16 UTC
This issue was resolved and addressed in
 GLSA 202007-46 at https://security.gentoo.org/glsa/202007-46
by GLSA coordinator Sam James (sam_c).
Comment 13 Sam James gentoo-dev Security 2020-07-27 01:22:24 UTC
Reopening for s390 stabilisation.