GNU bug report logs

#47229 Local privilege escalation via guix-daemon and ‘--keep-failed’

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #34 received at 47229@debbugs.gnu.org (full text, mbox, reply):

Received: (at 47229) by debbugs.gnu.org; 10 Apr 2021 17:56:36 +0000
From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 10 13:56:36 2021
Received: from localhost ([127.0.0.1]:53240 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1lVHqW-0006rF-Fr
	for submit@debbugs.gnu.org; Sat, 10 Apr 2021 13:56:36 -0400
Received: from out3-smtp.messagingengine.com ([66.111.4.27]:48553)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo@famulari.name>) id 1lVHqU-0006r2-Mz
 for 47229@debbugs.gnu.org; Sat, 10 Apr 2021 13:56:35 -0400
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
 by mailout.nyi.internal (Postfix) with ESMTP id 869A25C0109;
 Sat, 10 Apr 2021 13:56:29 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute3.internal (MEProxy); Sat, 10 Apr 2021 13:56:29 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name;
 h=date:from:to:cc:subject:message-id:references:mime-version
 :content-type:in-reply-to; s=mesmtp; bh=inXO13LDm/8EtoCypMGDy20b
 Xl7D7U9SKiXBW1Hx6K0=; b=E+ceK5ngUaeKDrNYm9lusB7AR5ZvvkkeWetfucDP
 2iDzB6aHsMMADdjbrB2xLKYDShAZMgubbbV+te5kZ3PX0HueqQw9eubaQ3Gi7mi6
 ucf7P013sc/yYD2syIjoBkwp2BNqyH1n7TQljRbyT4kl4b7WvhPZOwLW5/WogozW
 +eU=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=inXO13
 LDm/8EtoCypMGDy20bXl7D7U9SKiXBW1Hx6K0=; b=AIzr3nWyINo0PSlDG3bMmH
 V89JDxbByxv45IudLJv8mWIlf+RYXB3P48pXV9F1QvgQEPYfSIQhaHwu/WosDCzU
 1oqMoCC3neTDOcUI/if2h0ZKWl0YdyjbglC9MOBB1q81TucS8l2aUqFgpsf7EypK
 Q4TLYVHBgzS0R2UaxgyMiked5mtbJfB67hPIoRfCOPoy5R+k8bySmRjyziAuVlK7
 JVzy/g54A9t6bZhR7H4AyQoVA2a5ipAZ8UiYGkgyBgRCD8vtBQinCiZZJa2RAR+1
 mQvCyn4xYhtVdTKjY7t1JIIk4ZU6wF3Ulhjnkg3KF3MvlRST069HbubiKa+IGuwA
 ==
X-ME-Sender: <xms:zeZxYHcNnXeqfBmhJSqJ9jC7aOHtWVW0h8WgjunaplaWnUzKHA5YWA>
 <xme:zeZxYNPBoev1Qlmu2CQ8Hr2KmaP7vPZRPADfsQn_vOVa0wRJLd1Qmg8UWU95vOKKv
 XejdeOwGCEPo70XHw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekfedguddvtdcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtjeenucfhrhhomhepnfgvohcu
 hfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgrrhhirdhnrghmvgeqnecuggftrfgrth
 htvghrnhepvdehheelueevleevhedvkeeitdehheejveegkeehgeeuiedugfekgeduudeg
 udelnecuffhomhgrihhnpehmihhtrhgvrdhorhhgnecukfhppedutddtrdduuddrudeile
 druddukeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm
 pehlvghosehfrghmuhhlrghrihdrnhgrmhgv
X-ME-Proxy: <xmx:zeZxYAhx50fgkQdCYtdVhpxU2uzyr9TzcwLTTdvXj1lCyzF4z6hsHg>
 <xmx:zeZxYI-8W_UVZh3UwDdvqcry0vDyhV_KNSI_m2BqPrsw6J8tuIk0cg>
 <xmx:zeZxYDuHj_VXpuzbRH34uROR_Y5nacnBNSpnKlV_bVnDHATbrMaBwA>
 <xmx:zeZxYA48f1cFgVTeGF39-0sr7sjchQNxRBlvu6G1JF7Ncmo8QY_UUw>
Received: from localhost (pool-100-11-169-118.phlapa.fios.verizon.net
 [100.11.169.118])
 by mail.messagingengine.com (Postfix) with ESMTPA id 0C4EE24005E;
 Sat, 10 Apr 2021 13:56:29 -0400 (EDT)
Date: Sat, 10 Apr 2021 13:56:27 -0400
From: Leo Famulari <leo@famulari.name>
To: Ludovic Courtès <ludo@gnu.org>
Subject: Re: bug#47229: Local privilege escalation via guix-daemon and ‘--keep-failed’
Message-ID: <YHHmy4+z9UOunSyB@jasmine.lan>
References: <87lfaksock.fsf@gnu.org>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="1vCzjLauL+NnVyKm"
Content-Disposition: inline
In-Reply-To: <87lfaksock.fsf@gnu.org>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 47229
Cc: 47229@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
[Message part 1 (text/plain, inline)]
On Thu, Mar 18, 2021 at 12:17:15PM +0100, Ludovic Courtès wrote:
> Vulnerability
> ~~~~~~~~~~~~~
> 
> The attack consists in having an unprivileged user spawn a build
> process, for instance with ‘guix build’, that makes its build directory
> world-writable.  The user then creates a hardlink within the build
> directory to a root-owned file from outside of the build directory, such
> as ‘/etc/shadow’.  If the user passed the ‘--keep-failed’ option and the
> build eventually fails, the daemon changes ownership of the whole build
> tree, including the hardlink, to the user.  At that point, the user has
> write access to the target file.

This has been assigned CVE-2021-27851.

Soon, it should be available in the CVE database at
<https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27851>
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Thu Jan 2 18:29:41 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.