From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qK72AgphhWHLlQAAgWs5BA (envelope-from ) for ; Fri, 05 Nov 2021 17:51:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QDcXOglhhWFvRQAAbx9fmQ (envelope-from ) for ; Fri, 05 Nov 2021 16:51:21 +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 C009018092 for ; Fri, 5 Nov 2021 17:51:21 +0100 (CET) Received: from localhost ([::1]:47358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mj2Qy-0001QG-Do for larch@yhetil.org; Fri, 05 Nov 2021 12:51:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mj2Qg-0001Q5-RS for bug-guix@gnu.org; Fri, 05 Nov 2021 12:51:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35447) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mj2Qg-00085N-It for bug-guix@gnu.org; Fri, 05 Nov 2021 12:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mj2Qg-0005TZ-5k for bug-guix@gnu.org; Fri, 05 Nov 2021 12:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47422: tar is vulnerable to CVE-2021-20193 Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 05 Nov 2021 16:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47422 X-GNU-PR-Package: guix X-GNU-PR-Keywords: security To: Leo Famulari , 47422@debbugs.gnu.org Received: via spool by 47422-submit@debbugs.gnu.org id=B47422.163613104721029 (code B ref 47422); Fri, 05 Nov 2021 16:51:02 +0000 Received: (at 47422) by debbugs.gnu.org; 5 Nov 2021 16:50:47 +0000 Received: from localhost ([127.0.0.1]:46993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mj2QQ-0005T7-RJ for submit@debbugs.gnu.org; Fri, 05 Nov 2021 12:50:47 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:57716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mj2QO-0005SV-HK for 47422@debbugs.gnu.org; Fri, 05 Nov 2021 12:50:45 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by michel.telenet-ops.be with bizsmtp id Egqi260074UW6Th06gqigK; Fri, 05 Nov 2021 17:50:42 +0100 Message-ID: <82db7b68b4e9cc3037122cc45678f04eac97d810.camel@telenet.be> From: Maxime Devos Date: Fri, 05 Nov 2021 16:50:42 +0000 In-Reply-To: References: <520e2097011aae1bfd9c20278e27e25813517b42.camel@zaclys.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1636131042; bh=yCyF1w6Xs71+jLIb7jV8bSyrCIRA2IQxZ0SrBP3CyAE=; h=Subject:From:To:Date:In-Reply-To:References; b=odl4LV/wlP/J/eJf3Dpu0JCGUpanleNvEs1WS+Y1WY28RVZ/p7yz1DL5fn+oebQhD MMnpMusWxAB+g7F5QoinRI+sU5nnlyrU4aOXcXYSbDdfMQC6dSSHUHaKOQ/cOH5Hnw nqweYYvWkPU3iP2+Tbi/5M6Ud7KO5wO/yqqwfkhK3QDF0Mp088WoLHtmv/ROmiLhqe 0zu0AX4eZgCOUfO/cgN1Nju1oL74XLjB+MG22SnuH5dLlVmImCWkCyfg8IOfObRWuP t3e5ZzZ637FD2JNp/lqdSFmNA8YoYv8XFIKLBpM5XL/DbPa8MPW89T5myIjf+NAcZe 8Zzty+Ib84VVg== 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: , 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=1636131081; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=yCyF1w6Xs71+jLIb7jV8bSyrCIRA2IQxZ0SrBP3CyAE=; b=jhhKMWTg1Ij5yA3aRn7VWu4Q42Q8PJngmFegNfNSGEbiuwPfdwXV82uSCBsBRcJmZNli9R jLyNt8RioOrTzukThB4gFKPeeMx4/6aQnju4kJJBTt6E9jmKIlhgxxzzKxLzQoEASnAq+S dRZHymJKLiXPLqVOCvUIunQTZELI8jzuhipiM2fVEdjf3he5U1YpbR3Y8Lxz0RW74tm9Uo xcYWFmodKTJ+aIUh3ryrlbn7l7xrIT2HvZbSJQd7ftvpSxN/+eIeCgu5Te4CBC5/vN8zh1 GGXHmT5XLNpLHxE4D3/bAD0kVbTF4CeKhZYKGV841s8ukz0lFoCRTnhc72GRFA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636131081; a=rsa-sha256; cv=none; b=AfUVdxSrZ4ntyGVJRyJ0Z3LE1mpDwsvZrxb6NHbZRDHA8ojcZH/aQAYadV4MF4ojzNyspd YReSNzh7ahfV5gqY0M0bx6gvV1B1/8fYVCLGZs8Dy4bA9y5N0aX9i2gTuyga4h3C9Yz9+F c4lm5O9ltdLz0DudHdjI56rs9PomVkiIX63xV11wVX+ZTVjvU46rp169PEGHHrT83wRhRr F3BI8H5dzl3CxP4/a9c6JalpLsFzzgf/VB+W8SzGlWEhVw2Jw3ktVyknU8yzkact8RAjKv dXKF7ffY1Ziy/K+3WcX52p5o+SL0Y7/mKmvIA8ZCRAi53X6HrJd0x37Xa0zBWQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b="odl4LV/w"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=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: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b="odl4LV/w"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=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: C009018092 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: uctaKJi4oxCk Leo Famulari schreef op vr 05-11-2021 om 12:23 [-0400]: > On Fri, Nov 05, 2021 at 05:14:13AM +0000, phodina via Bug reports for > GNU Guix wrote: > > here's patch for the master branch as I'm not sure what is the > > roadmap for merging core-updates into master. > > > > The obvious downside is that the update triggers large rebuild of > > core packages :-/ > > [...] > > "This flaw allows an attacker who can submit a crafted input file to > tar > to cause uncontrolled consumption of memory. The highest threat from > this vulnerability is to system availability." > > [...] > > For use of tar by Guix users, we could add a new package 'tar-1.34' > and > arrange so that `guix install tar` selects it instead of tar@1.32, > and > so that whatever tar is provided by default on Guix System [1] is > tar-1.34. I don't think this is sufficient, because some packages keep references to 'tar', e.g. 'hdup'. A solution would be registering the updated tar as a replacement of the somewhat vulnerable tar: (define-public tar (package (name "tar") (version "1.32") (replacement tar/fixed) ...)) (define-public tar/fixed (package (inherit tar) (version "1.34") (source ...))) Greetings, Maxime. -- not hacking on guix for a while, only occassionally looking at IRC logs and bug reports. E-mails are unsigned until backup is located.