From patchwork Tue Mar 28 15:18:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Korsgaard X-Patchwork-Id: 744340 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vsvfv6bsDz9s2P for ; Wed, 29 Mar 2017 02:18:31 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="jMzz5W1Y"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8BCD5898A2; Tue, 28 Mar 2017 15:18:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a7931-QFPHot; Tue, 28 Mar 2017 15:18:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 2FA0889430; Tue, 28 Mar 2017 15:18:23 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 0C6CE1C27B8 for ; Tue, 28 Mar 2017 15:18:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 05A3529C5D for ; Tue, 28 Mar 2017 15:18:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ym9uHdk2ETmL for ; Tue, 28 Mar 2017 15:18:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by silver.osuosl.org (Postfix) with ESMTPS id 4F15E26B05 for ; Tue, 28 Mar 2017 15:18:20 +0000 (UTC) Received: by mail-wm0-f46.google.com with SMTP id x124so1520632wmf.0 for ; Tue, 28 Mar 2017 08:18:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=hPnDCqUAUgGVHoYjAiU4gjBrH3p4CEHBP6hKnMgjWAw=; b=jMzz5W1YpfWgvL7EHCIzQAUjhdQzxVjjITQHrbivdWm65iqZFFIWNV3/Fk0wvTzd6z jtcohWpfbEKsRdghNnE05+9fZDXH/R1N5jF25Mp7nI/v5+m1bDW+ZkZjAhjLKMDG/NZf NV2n84ZEO28yrGPpl8qPxxb6f3F3Ec3W7iHkwDB7gGGcxhOPfO4GOszS+3V2ilSCwFtr vZFSK98LkgMp18imdZBD2PYm9twn/APtTZVM+EbiqsqqYDuwbICqYJEb6tAJhRfhxSSG CjPjaEbiQtw+yUO0aTxh5npOHwdG74ZbkFo4E7ZP6fdRMHZxuVVH/MjMiljPkkAEjXH3 E9pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=hPnDCqUAUgGVHoYjAiU4gjBrH3p4CEHBP6hKnMgjWAw=; b=TWMEc1hh+8vanQi3kIk+DPLOxjXsLZUws4UNMa+379nLANbs3xJ7qlYbFKF5pZQDkU 4MLqiHzOKTePzOb0JPQ+2d7a6Lba3Hb4XGV8JQNjAbWygxb9JpqK1lqSDp86uc2RE59J d5C73AcixBaI/6M+Ni+/m7BJzSkCJWCQwjVH3TSXTw/kIbuwBWkx1OYX/nOCmvffqXXZ M2algAXJgPQgo2y34dcCRyHIRvFGXdDiSJuIAvNpPZWR/bE6900J5Rdp4lYP87izKSL9 syrJkvNJY5JhTOWot1vTHoLPeu3yFXGeSu5PksbLeUnFgcowRCV2DuHv25V79qtNbZGk yueg== X-Gm-Message-State: AFeK/H129xdtmpH6LEzCWWFREXmy7GI6f/NG7GRftuUg1MwBrw2GGNxAmSBenM8miqpiGQ== X-Received: by 10.28.134.70 with SMTP id i67mr14739952wmd.124.1490714298361; Tue, 28 Mar 2017 08:18:18 -0700 (PDT) Received: from dell.be.48ers.dk ([91.183.172.93]) by smtp.gmail.com with ESMTPSA id n80sm5282271wrb.24.2017.03.28.08.18.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Mar 2017 08:18:15 -0700 (PDT) Received: from peko by dell.be.48ers.dk with local (Exim 4.88) (envelope-from ) id 1cssss-0002wf-TZ; Tue, 28 Mar 2017 17:18:11 +0200 From: Peter Korsgaard To: buildroot@buildroot.org Date: Tue, 28 Mar 2017 17:18:08 +0200 Message-Id: <20170328151808.11281-1-peter@korsgaard.com> X-Mailer: git-send-email 2.11.0 Subject: [Buildroot] [PATCH] samba4: security bump to version 4.5.7 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes CVE-2017-2619: All versions of Samba prior to 4.6.1, 4.5.7, 4.4.11 are vulnerable to a malicious client using a symlink race to allow access to areas of the server file system not exported under the share definition. Samba uses the realpath() system call to ensure when a client requests access to a pathname that it is under the exported share path on the server file system. Clients that have write access to the exported part of the file system via SMB1 unix extensions or NFS to create symlinks can race the server by renaming a realpath() checked path and then creating a symlink. If the client wins the race it can cause the server to access the new symlink target after the exported share path check has been done. This new symlink target can point to anywhere on the server file system. This is a difficult race to win, but theoretically possible. Note that the proof of concept code supplied wins the race reliably only when the server is slowed down using the strace utility running on the server. Exploitation of this bug has not been seen in the wild. Signed-off-by: Peter Korsgaard --- package/samba4/samba4.hash | 2 +- package/samba4/samba4.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/samba4/samba4.hash b/package/samba4/samba4.hash index 4fec55dd6..71d24f7fe 100644 --- a/package/samba4/samba4.hash +++ b/package/samba4/samba4.hash @@ -1,2 +1,2 @@ # Locally calculated -sha256 bff02762b3e4ee030f02266c6e24a0b888248b387246219b7fbe3e1758ef2184 samba-4.5.5.tar.gz +sha256 ac70f09af80639d8189e1b9bc0a554841ee44df2b1ef58e7e682ad5400fd9400 samba-4.5.7.tar.gz diff --git a/package/samba4/samba4.mk b/package/samba4/samba4.mk index f64b684bf..aa7cb576d 100644 --- a/package/samba4/samba4.mk +++ b/package/samba4/samba4.mk @@ -4,7 +4,7 @@ # ################################################################################ -SAMBA4_VERSION = 4.5.5 +SAMBA4_VERSION = 4.5.7 SAMBA4_SITE = https://download.samba.org/pub/samba/stable SAMBA4_SOURCE = samba-$(SAMBA4_VERSION).tar.gz SAMBA4_INSTALL_STAGING = YES