From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2Gl4Mf3mcWDn7AAAgWs5BA (envelope-from ) for ; Sat, 10 Apr 2021 19:57:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kCZBK/3mcWAFMgAAbx9fmQ (envelope-from ) for ; Sat, 10 Apr 2021 17:57:17 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 21D3B1B31D for ; Sat, 10 Apr 2021 19:57:17 +0200 (CEST) Received: from localhost ([::1]:35126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVHrA-0002LM-9f for larch@yhetil.org; Sat, 10 Apr 2021 13:57:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVHqx-0002KA-NY for bug-guix@gnu.org; Sat, 10 Apr 2021 13:57:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVHqw-00008j-OM for bug-guix@gnu.org; Sat, 10 Apr 2021 13:57:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lVHqw-0006sE-Me; Sat, 10 Apr 2021 13:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47229: Local privilege escalation via guix-daemon and =?UTF-8?Q?=E2=80=98--keep-failed=E2=80=99?= Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 10 Apr 2021 17:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47229 X-GNU-PR-Package: guix X-GNU-PR-Keywords: security fixed To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 47229-submit@debbugs.gnu.org id=B47229.161807739626370 (code B ref 47229); Sat, 10 Apr 2021 17:57:02 +0000 Received: (at 47229) by debbugs.gnu.org; 10 Apr 2021 17:56:36 +0000 Received: from localhost ([127.0.0.1]:53240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) 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 ) 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: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekfedguddvtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtjeenucfhrhhomhepnfgvohcu hfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgrrhhirdhnrghmvgeqnecuggftrfgrth htvghrnhepvdehheelueevleevhedvkeeitdehheejveegkeehgeeuiedugfekgeduudeg udelnecuffhomhgrihhnpehmihhtrhgvrdhorhhgnecukfhppedutddtrdduuddrudeile druddukeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: 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 Message-ID: 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 47229@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618077437; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=inXO13LDm/8EtoCypMGDy20bXl7D7U9SKiXBW1Hx6K0=; b=DcnqDO0qHeGfO6g9KiiHV112YyXTdTjkj0NL8p75jt8UlyR1romBBuH1AfZ3cfWGCqRrX/ fE396jTF2SNfZ5/39dVtD3j5DtpmYl86LFsb8HC4DWm2Z8k+XnwZf97wBYkFe/n+7DG0un jNfNNhoFewPVDmpKP2PqrVnSNssT2U6mqKsLV8IM76C+83QRGi79CJCXUd6uTft74ahgqP DoCh6JtCHklj3kYA0tHvyjtPoHcHtqe45S5a+QpSZvqCG+mLktJt0To9ntdHN5C0t9S4hZ hdmbhkWBzV+Sbeii71xqMj1UROJi4DN+1uepW03cPcXbGsD9NsJELsOPDYwRRA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618077437; a=rsa-sha256; cv=none; b=iIbvYJBJH3+kWyVTgsggYuvkqFMPWgrtXxfSkhNW4E2X3Q0NKi+HVGcKXWE6DnP853XvhV fVYaW4XcOiqb/HqSZco6H3RTpwtRJ3e4METf4EQwQkFnJWCG2/K4OKFU3RqzgNA8HEXUsr g68ipL+2aqM+5fIbMRiHpuL+AsNd3ZvI9dsHABEI0gvpau+hyIPVtvkzgKxu+N2iHImuxd hW6UUlSbso6RUm2avkmnNH2jwAX5a/83VWQBiJlNf1orgBwQREfmxE9vpIOEic51opHZGp cKiGKEsyr/hcQsdzMuw7kVKPnY/9AqC9POcL3cdz9X/ca5uP+STOBQIZ9tiovA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=E+ceK5ng; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=AIzr3nWy; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.54 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=E+ceK5ng; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=AIzr3nWy; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 21D3B1B31D X-Spam-Score: -3.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: fzUP40vj0Pd8 --1vCzjLauL+NnVyKm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 18, 2021 at 12:17:15PM +0100, Ludovic Court=C3=A8s wrote: > Vulnerability > ~~~~~~~~~~~~~ >=20 > The attack consists in having an unprivileged user spawn a build > process, for instance with =E2=80=98guix build=E2=80=99, that makes its b= uild 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 =E2=80=98/etc/shadow=E2=80=99. If the user passed the =E2=80=98--keep= -failed=E2=80=99 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 --1vCzjLauL+NnVyKm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAmBx5sgACgkQJkb6MLrK fwhIwBAAwbuP3cK68tXgVV4ho8HoCPa9Aww5EynTNrZcmPkElJgCgdg3Phb3i+Mo QY8S2jOXHlSg0cMgtYjePkPeL7bSeEmRGtUSiTq/HGXucJlfDT3D0wHNgtqBcIYN Mt6Z9ROHjb9GPkD29Si0H3UovwBOKDS5QlUWXGuaeC9Y5Itl7MYhhnJpsDRBhLGk +vCmWjxbgKh/qm2KYkKH/b3KR2BMSmPQhZ7MT37E9CTGo2eiodtbfUYhWh5OfpM+ iLIIcyMgULjF887KqSf6RGnt5ajolSh9zOZUXDwSqoEiMyH5g7g9rJyua7DvXYfO xrpXVtu5tRxuN6ME4g9m8eoakV28fSZ6VVR9X6mODcT1fD2amB8q32/kuOt6SORX NWvDwU0qcW+RAaN97KyrdQ95EQfYa0PTEdze+VUoar6LV124zCpvbqa8FkPJ1fF7 sKJw4+LvhVMWf+zhFfTeKCv+JgxZi06WFcaEMQSwvfI0wBhfsOE9P8M364t9BQ/l 5f05HxoySSEPpi9POoQGe38rKLlwkhIQvyiidSpEDn5azo6LLe577PCzdlQT7xqg lqvcfJIstD9jss43TdAQffZmaTrdaJe/AaY1SPh2HCzPe6dN3BGOP1FaZ94ltyZp q1/86spDa8eKW+LcLZng3TxUufjvQn5nIx8FUU+pHR110krvJ1s= =bt5R -----END PGP SIGNATURE----- --1vCzjLauL+NnVyKm--