Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #67460

Bug#964234: dpkg-source: Considers missing symlink targets directory traversals

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Guillem Jover <guillem@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.dpkg, linux.debian.kernel
Subject Bug#964234: dpkg-source: Considers missing symlink targets directory traversals
Date Sat, 04 Jul 2020 07:10:02 +0200
Message-ID <AoIB3-5rt-3@gated-at.bofh.it> (permalink)
References <AoDi2-1Mq-5@gated-at.bofh.it> <AoDi2-1Mq-5@gated-at.bofh.it>
X-Original-To Andreas Beckmann <anbe@debian.org>, 964234@bugs.debian.org
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Sat Jul 4 05:03:08 2020
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -0.5
Reply-To Guillem Jover <guillem@debian.org>, 964234@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Dpkg Developers <debian-dpkg@lists.debian.org>, Debian Kernel Team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message followup 964234
X-Debian-Pr-Package src:dpkg,src:firmware-nonfree
X-Debian-Pr-Keywords ftbfs
X-Debian-Pr-Source dpkg,src:firmware-nonfree
X-Spam-Bayes score:0.0000 Tokens: new, 12; hammy, 150; neutral, 77; spammy, 0. spammytokens: hammytokens:0.000-+--UD:xz, 0.000-+--UD:tar.xz, 0.000-+--UD:debian.tar.xz, 0.000-+--UD:orig.tar.xz, 0.000-+--dpkgsource
Dkim-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.master; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description; bh=CIS9R676e2Yn6VSI7sBw91DUzfsbFOMzQm2duozZcRI=; b=lsZN2yzu2IOJRmV6W6vRCsGLYJ uRMfEpl6Ilv2fkWkgbRHlCg9yTuO2mHAJqE5nSrs2Z1PGBi42vvwyomDsdzW8FcMGF4h3gQXY6M6Q 6BgnAQ6G5cwyLKRmsqNXAHxiMqJF2bzR+Yjo9RSMesgiSWk7eN5jhR4yyWhbcKUjrv6zVD8DTZM+B p9CTdDGW/i6VWWGQBOIy6To5mklLwLMlL3h0dHr33J7lHfdonBuTr4EWLUq/+0lJXYJKBZFsb95EP 8aXfb6dRhhBxp5bMYwSaI5DDHyG9lSgalKbBS709skC9fKa1x1B5YbY7AAEl/PUu0JULrbBAYdJ/D hGjywGRw==;
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1611793
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 32
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sat, 4 Jul 2020 06:58:44 +0200
X-Original-Message-ID <20200704045844.GC3737627@thunder.hadrons.org>
X-Original-References <159381841816.10277.12982767747758911345.reportbug@zam504.zam.kfa-juelich.de> <159381841816.10277.12982767747758911345.reportbug@zam504.zam.kfa-juelich.de>
Xref csiph.com linux.debian.bugs.dist:1016429 linux.debian.maint.dpkg:10866 linux.debian.kernel:67460

Cross-posted to 3 groups.

Show key headers only | View raw


Control: reassign -1 dpkg-dev
Control: retitle -1 dpkg-source: Considers missing symlink targets directory traversals
Control: found -1 1.20.0

On Sat, 2020-07-04 at 01:20:18 +0200, Andreas Beckmann wrote:
> Source: dpkg,firmware-nonfree
> Version: 20190717-2
> Severity: serious
> Tags: ftbfs
> Justification: fails to build from source
> Control: found -1 20190717-2
> Control: found -1 1.20.3

> src:firmware-nonfree fails to unpack in sid with latest dpkg:
> 
> dpkg-source: info: extracting firmware-nonfree in firmware-nonfree-20190717
> dpkg-source: info: unpacking firmware-nonfree_20190717.orig.tar.xz
> dpkg-source: info: unpacking firmware-nonfree_20190717-2.debian.tar.xz
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: info: applying gitignore.patch
> Use of uninitialized value $canon_pathname in pattern match (m//) at /usr/share/perl5/Dpkg/Source/Package.pm line 550.
> dpkg-source: error: pathname 'firmware-nonfree-20190717/debian/config/libertas/sd8688_helper.bin' points outside source root
> 
> Since this could also be a dpkg error (see the perl warning before the failure)
> I'm assigning this bug to both packages, please reassign as appropriate.

It is, the pathname above is a symlink to a missing target, which is
definitely not a directory traversal attempt. I'm fixing this now, and
will upload tomorrow.

Thanks,
Guillem

Back to linux.debian.kernel | Previous | Next | Find similar | Unroll thread


Thread

Bug#964234: dpkg-source: Considers missing symlink targets directory traversals Guillem Jover <guillem@debian.org> - 2020-07-04 07:10 +0200

csiph-web