Return-Path: Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:33393 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751447AbbJCBsS (ORCPT ); Fri, 2 Oct 2015 21:48:18 -0400 Message-ID: <1443836883.2730.223.camel@decadent.org.uk> Subject: Re: [PATCHES] Bind mount escape fixes (CVE-2015-2925) From: Ben Hutchings To: "Eric W. Biederman" Cc: stable@vger.kernel.org, Greg Kroah-Hartman , Sasha Levin , Jiri Slaby , Willy Tarreau , Li Zefan Date: Sat, 03 Oct 2015 02:48:03 +0100 In-Reply-To: <87vbaptg2s.fsf@x220.int.ebiederm.org> References: <87a8s2a7kc.fsf@x220.int.ebiederm.org> <1443753950.2730.164.camel@decadent.org.uk> <87k2r6ueyd.fsf@x220.int.ebiederm.org> <87vbaptg2s.fsf@x220.int.ebiederm.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-PMwLon7bQDxi/idcs5Vw" Mime-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: --=-PMwLon7bQDxi/idcs5Vw Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2015-10-02 at 11:01 -0500, Eric W. Biederman wrote: [...] > Having thought about this I definitely think we need this on older > kernels. I am aware of at least one piece of software that predates > 2.6.32 is vulnerable to this escape. >=20 > The software in all innocence bind mounted a users /home directory into > a root filesystem that was stored in the users /home directory. That > is enough to allow the escape with a simple unprivileged rename. > > So since this is actually exploitable on real userspace software that > predates 2.6.32 I think this fix needs to be backported, as it is not > a theoretical issue. Thanks for the explanation. I'll review and test the patches for 2.6.32 and 3.2 in a while. Ben. --=20 Ben Hutchings compatible: Gracefully accepts erroneous data from any source --=-PMwLon7bQDxi/idcs5Vw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIVAwUAVg8z0+e/yOyVhhEJAQrE8A//YYW+dUv5s8Cy7kRCUEbp1Nt01UjQseoX UjXqt6SMJ3UD3K4VoLd7iDHli4vzoVQnKgP954j1rCpcuHF13BuabHKv6RRHeoYo WGcwnEEYObOrBcmsEtdEGTOIHYT4WsZVeX3q80R4357XGMecg6D9iMhfwQVAii52 7UQgEh+aPcNMmNJ+tg+3JAApPf8o4IMvT03RUWplP8IJBKJihEZSWzRbZTOoyKNX VPs8kd/7MnOejRuNIeo8sYf8m7sBXDbHUJkVDApFqEVU7n9JKSPRgH/uxXRXdDyK SFeabNjAEbAXvahjsrPbsNW9yrg8uT07145LbuuNknOb3S1MoEiYdbhuOV6GJ8Yz JqemZ+1+tPwPDruyf3cYlA1MFAjjsyJgqqMod2z6q93QXkbpmZUJznekW2PD+ZYl d8R00F/hJgbFlAojL64O3Wji86+sQqphvQXBydvirGK19EPuthmrTN5MeHRsNWmo 7hscCEKcX4PxACrvhlGlsynL9/LqMxxBt8+wGFL7v+vK02VW89nBj47SHcC/Tt6j AekjFGXPiK+ASD8DkLnFyIBqjczERr8FBKPmkm1eZlFQFumFxT1TkIGAu8vX6Bgs 0Kf9PwfGpi9W1kbfaxl3iXw1u+G6aBLrGy7KB9MMS3XPJnQgQ18K/OQSLjqN75SQ /NuTgYwcwbo= =V75b -----END PGP SIGNATURE----- --=-PMwLon7bQDxi/idcs5Vw--