From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] samba4: security bump to version 4.5.7
Date: Tue, 28 Mar 2017 21:43:49 +0200 [thread overview]
Message-ID: <20170328214349.5d6e58ae@free-electrons.com> (raw)
In-Reply-To: <20170328151808.11281-1-peter@korsgaard.com>
Hello,
On Tue, 28 Mar 2017 17:18:08 +0200, Peter Korsgaard wrote:
> 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 <peter@korsgaard.com>
> ---
> package/samba4/samba4.hash | 2 +-
> package/samba4/samba4.mk | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Applied to master, thanks. Obviously for the LTS branch! :)
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2017-03-28 19:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-28 15:18 [Buildroot] [PATCH] samba4: security bump to version 4.5.7 Peter Korsgaard
2017-03-28 19:43 ` Thomas Petazzoni [this message]
2017-03-31 7:10 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170328214349.5d6e58ae@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox