Wed Dec 30 12:47:57 2015 UTC ()
Update dpkg to 1.16.17. This fixes several security issues.

dpkg (1.16.17) wheezy-security; urgency=high

  [ Guillem Jover ]
  * Fix an off-by-one write access in dpkg-deb when parsing the .deb magic.
    Reported by Jacek Wielemborek <d33tah@gmail.com>. Closes: #798324
  * Fix an off-by-one write access in dpkg-deb when parsing the old format
    .deb control member size. Thanks to Hanno Böck <hanno@hboeck.de>.
    Fixes CVE-2015-0860.
  * Fix an off-by-one read access in dpkg-deb when parsing ar member names.
    Thanks to Hanno Böck <hanno@hboeck.de>.

  [ Updated programs translations ]
  * Catalan (Jordi Mallach).

  [ Updated man page translations ]
  * Fix incorrect translation in German (Helge Kreutzmann)

 -- Guillem Jover <guillem@debian.org>  Wed, 25 Nov 2015 22:34:58 +0100

dpkg (1.16.16) wheezy-security; urgency=high

  [ Guillem Jover ]
  * Do not leak long tar names on bogus or truncated archives.
  * Do not leak the filepackages iterator when a directory is used by other
    packages.
  * Do not leak color string on «dselect --color».
  * Fix memory leaks when parsing alternatives.
  * Fix memory leaks in buffer_copy() on error conditions.
  * Fix possible out of bounds buffer read access in the error output on
    bogus ar member sizes.
  * Fix file triggers/Unincorp descriptor leak on subprocesses. Regression
    introduced with the initial triggers implementation in dpkg 1.14.17.
    Closes: #751021
  * Fix a descriptor leak on dselect subprocesses when --debug is used.
  * Do not run qsort() over the scandir() list in libcompat if it is NULL.
  * Fix off-by-one stack buffer overrun in start-stop-daemon on GNU/Linux and
    GNU/kFreeBSD if the executable pathname is longer than _POSIX_PATH_MAX.
    Although this should not have security implications as the buffer is
    surrounded by two arrays (so those catch accesses even if the stack
    grows up or down), and we are compiling with -fstack-protector anyway.
  * Add a workaround to start-stop-daemon for bogus OpenVZ Linux kernels that
    prepend, instead of appending, the " (deleted)" marker in /proc/PID/exe.
    Closes: #731530
  * Fix off-by-one error in libdpkg command argv size calculation.
    Based on a patch by Bálint Réczey <balint@balintreczey.hu>. Closes: #760690
  * Escape package and architecture names on control file parsing warning,
    as those get injected into a variable that is used as a format string,
    and they come from the package fields, which are under user control.
    Regression introduced in dpkg 1.16.0. Fixes CVE-2014-8625. Closes: #768485
    Reported by Joshua Rogers <megamansec@gmail.com>.
  * Do not match partial field names in control files. Closes: #769119
    Regression introduced in dpkg 1.10.
  * Fix out-of-bounds buffer read accesses when parsing field and trigger
    names or checking package ownership of conffiles and directories.
    Reported by Joshua Rogers <megamansec@gmail.com>.
  * Add powerpcel support to cputable. Thanks to Jae Junh <jaejunh@embian.com>.
  * Fix OpenPGP Armor Header Line parsing in Dpkg::Control::Hash. We should
    only accept [\r\t ] as trailing whitespace, although RFC4880 does not
    clarify what whitespace really maps to, we should really match the GnuPG
    implementation anyway, as that's what we use to verify the signatures.
    Reported by Jann Horn <jann@thejh.net>. Fixes CVE-2015-0840.

  [ Raphaël Hertzog ]
  * Drop myself from Uploaders.

  [ Updated scripts translations ]
  * Fix typos in German (Helge Kreutzmann)
  * Swedish (Peter Krefting).

  [ Updated man page translations ]
  * Fix typos in German (Helge Kreutzmann)
  * Swedish (Peter Krefting).

 -- Guillem Jover <guillem@debian.org>  Thu, 09 Apr 2015 08:45:47 +0200

dpkg (1.16.15) wheezy-security; urgency=high

  [ Guillem Jover ]
  * Test suite:
    - Add test cases for Dpkg::Source::Patch CVE-2014-0471 and CVE-2014-3127.
    - Add test case for patch disabling hunks; not security sensitive.
  * Correctly parse patch headers in Dpkg::Source::Patch, to avoid directory
    traversal attempts from hostile source packages when unpacking them.
    Reported by Javier Serrano Polo <javier@jasp.net> as an unspecified
    directory traversal; meanwhile also independently found by me both
    #749183 and what was supposed to be #746498, which was later on published
    and ended up being just a subset of the other non-reported issue.
    Fixes CVE-2014-3864 and CVE-2014-3865. Closes: #746498, #749183

  [ Updated programs translations ]
  * Merge translated strings from master.

  [ Updated scripts translations ]
  * German (Helge Kreutzmann).

  [ Updated man page translations ]
  * Merge translated strings from master.
  * Unfuzzy or update trivial translations (Guillem Jover).

 -- Guillem Jover <guillem@debian.org>  Thu, 05 Jun 2014 22:24:36 +0200

dpkg (1.16.14) wheezy-security; urgency=high

  [ Guillem Jover ]
  * Do not allow patch files with C-style encoded filenames. Closes: #746306
    Fixes CVE-2014-3127 and unconditionally fixes CVE-2014-0471.
    Reported by Javier Serrano Polo <javier@jasp.net>.

  [ Updated scripts translations ]
  * German (Helge Kreutzmann).

  [ Updated man page translations ]
  * German (Helge Kreutzmann).

 -- Guillem Jover <guillem@debian.org>  Wed, 30 Apr 2014 08:14:16 +0200

dpkg (1.16.13) wheezy-security; urgency=high

  [ Guillem Jover ]
  * Do not NULL-terminate the list in the compat scandir(), as this might
    cause a segfault in case the function returns 0 entries.
  * Do not generate perl warnings on undef versions in
    Dpkg::Deps::deps_compare(). See: #737731
  * Do not overwrite triplet mappings with latter matches in Dpkg::Arch.
    Required for the new mipsn32(el) and mips64(el) architecture entries.
  * Add support for mipsn32(el) and mips64(el) to arch tables.
    Thanks to YunQiang Su <wzssyqa@gmail.com>. Closes: #685096, #707323
  * Add ppc64el support to cputable. Closes: #718945
    Thanks to Jeff Bailey <jeffbailey@google.com>.
  * Add OpenRISC or1k support to cputable.
    Thanks to Christian Svensson <christian@cmd.nu>. Closes: #736717
  * Clarify that dpkg --set-selections needs an up-to-date available db,
    by documenting it on the dpkg(1) man page, and warning whenever dpkg
    finds unknown packages while setting the selections. Closes: #703092
  * Improve documentation on how to update the available database before
    setting package selections. Suggested by Klaus Ita <koki.eml@gmail.com>.
  * Recognize «start-stop-daemon -C» as documented. Closes: #719746
    Reported by Brian S. Julin <bri@abrij.org>.
  * Correctly parse C-style diff filenames in Dpkg::Source::Patch, to avoid
    directory traversal attempts from hostile source packages when unpacking
    them. Reported by Jakub Wilk <jwilk@debian.org>. Fixes CVE-2014-0471.

  [ Updated scripts translations ]
  * Fix a typo in the German scripts translation.

  [ Updated man page translations ]
  * Fix and unify translation in German man pages.

 -- Guillem Jover <guillem@debian.org>  Fri, 25 Apr 2014 04:38:33 +0200

dpkg (1.16.12) stable; urgency=low

  * Fix value caching in Dpkg::Arch by not shadowing the variables.
    Closes: #724949

 -- Guillem Jover <guillem@debian.org>  Mon, 30 Sep 2013 16:52:37 +0200

dpkg (1.16.11) stable; urgency=low

  [ Raphaël Hertzog ]
  * Fix usage of non-existent _() function in multiple places of the Perl
    code. Thanks to Lincoln Myers <lincoln@netapp.com> for the patch.
    Closes: #708607

  [ Guillem Jover ]
  * Fix chmod() arguments order in Dpkg::Source::Quilt. Closes: #710265
    Thanks to Pablo Oliveira <pablo@sifflez.org>.
  * Only ignore older packages if the existing version is informative. This
    allows any program using libdpkg to parse the available file to see again
    packages with versions lesser than 0-0 (like 0~0-0). Closes: #676664
  * Fix use after free in dpkg_arch_load_list() on libdpkg.
    Reported by Pedro Ribeiro <pedrib@gmail.com>.

  [ Updated programs translations ]
  * Vietnamese (Trần Ngọc Quân). Closes: #715334

  [ Added man page translations ]
  * Italian (Beatrice Torracca). Closes: #711647

  [ Updated man page translations ]
  * Japanese (TAKAHASHI Motonobu). Closes: #704240

 -- Guillem Jover <guillem@debian.org>  Mon, 23 Sep 2013 16:51:18 +0200


(bsiegert)
diff -r1.33 -r1.34 pkgsrc/misc/dpkg/Makefile
diff -r1.8 -r1.9 pkgsrc/misc/dpkg/PLIST
diff -r1.8 -r1.9 pkgsrc/misc/dpkg/distinfo

cvs diff -r1.33 -r1.34 pkgsrc/misc/dpkg/Makefile (expand / switch to unified diff)

--- pkgsrc/misc/dpkg/Makefile 2015/08/18 07:31:13 1.33
+++ pkgsrc/misc/dpkg/Makefile 2015/12/30 12:47:57 1.34
@@ -1,37 +1,36 @@ @@ -1,37 +1,36 @@
1# $NetBSD: Makefile,v 1.33 2015/08/18 07:31:13 wiz Exp $ 1# $NetBSD: Makefile,v 1.34 2015/12/30 12:47:57 bsiegert Exp $
2# 2#
3 3
4DISTNAME= dpkg_1.16.10 4DISTNAME= dpkg_1.16.17
5PKGNAME= ${DISTNAME:S/_/-/} 5PKGNAME= ${DISTNAME:S/_/-/}
6PKGREVISION= 4 
7CATEGORIES= misc 6CATEGORIES= misc
8MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/d/dpkg/} 7MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/d/dpkg/}
9EXTRACT_SUFX= .tar.xz 8EXTRACT_SUFX= .tar.xz
10 9
11MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
12HOMEPAGE= http://wiki.debian.org/Teams/Dpkg 11HOMEPAGE= http://wiki.debian.org/Teams/Dpkg
13COMMENT= Package maintenance system for Debian 12COMMENT= Package maintenance system for Debian
14LICENSE= gnu-gpl-v2 13LICENSE= gnu-gpl-v2
15 14
16BUILD_DEPENDS+= po4a>=0:../../textproc/po4a 15BUILD_DEPENDS+= po4a>=0:../../textproc/po4a
17 16
18WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} 17WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
19BUILD_DEFS+= VARBASE 18BUILD_DEFS+= VARBASE
20 19
21USE_PKGLOCALEDIR= yes 20USE_PKGLOCALEDIR= yes
22GNU_CONFIGURE= yes 21GNU_CONFIGURE= yes
23USE_LANGUAGES= c c++ 22USE_LANGUAGES= c c++
24USE_TOOLS+= gmake msgfmt perl:run gtar:run 23USE_TOOLS+= gmake msgfmt perl:run gtar:run pod2man
25USE_NCURSES= yes # needs tigetstr() 24USE_NCURSES= yes # needs tigetstr()
26 25
27REPLACE_PERL= scripts/*.pl 26REPLACE_PERL= scripts/*.pl
28REPLACE_PERL+= dselect/methods/ftp/install 27REPLACE_PERL+= dselect/methods/ftp/install
29REPLACE_PERL+= dselect/methods/ftp/setup 28REPLACE_PERL+= dselect/methods/ftp/setup
30REPLACE_PERL+= dselect/methods/ftp/update 29REPLACE_PERL+= dselect/methods/ftp/update
31 30
32CONFIGURE_ARGS+= --with-zlib 31CONFIGURE_ARGS+= --with-zlib
33CONFIGURE_ARGS+= --disable-start-stop-daemon 32CONFIGURE_ARGS+= --disable-start-stop-daemon
34CONFIGURE_ARGS+= --with-admindir=${VARBASE}/db/dpkg 33CONFIGURE_ARGS+= --with-admindir=${VARBASE}/db/dpkg
35CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/share/dpkg 34CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/share/dpkg
36# or uses GCC version specific warning flags unconditionally.  35# or uses GCC version specific warning flags unconditionally.
37CONFIGURE_ARGS+= --disable-compiler-warnings 36CONFIGURE_ARGS+= --disable-compiler-warnings

cvs diff -r1.8 -r1.9 pkgsrc/misc/dpkg/PLIST (expand / switch to unified diff)

--- pkgsrc/misc/dpkg/PLIST 2013/06/14 11:15:16 1.8
+++ pkgsrc/misc/dpkg/PLIST 2015/12/30 12:47:57 1.9
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.8 2013/06/14 11:15:16 obache Exp $ 1@comment $NetBSD: PLIST,v 1.9 2015/12/30 12:47:57 bsiegert Exp $
2bin/dpkg 2bin/dpkg
3bin/dpkg-architecture 3bin/dpkg-architecture
4bin/dpkg-buildflags 4bin/dpkg-buildflags
5bin/dpkg-buildpackage 5bin/dpkg-buildpackage
6bin/dpkg-checkbuilddeps 6bin/dpkg-checkbuilddeps
7bin/dpkg-deb 7bin/dpkg-deb
8bin/dpkg-distaddfile 8bin/dpkg-distaddfile
9bin/dpkg-divert 9bin/dpkg-divert
10bin/dpkg-genchanges 10bin/dpkg-genchanges
11bin/dpkg-gencontrol 11bin/dpkg-gencontrol
12bin/dpkg-gensymbols 12bin/dpkg-gensymbols
13bin/dpkg-maintscript-helper 13bin/dpkg-maintscript-helper
14bin/dpkg-mergechangelogs 14bin/dpkg-mergechangelogs
@@ -263,36 +263,71 @@ man/fr/man5/deb-split.5 @@ -263,36 +263,71 @@ man/fr/man5/deb-split.5
263man/fr/man5/deb-src-control.5 263man/fr/man5/deb-src-control.5
264man/fr/man5/deb-substvars.5 264man/fr/man5/deb-substvars.5
265man/fr/man5/deb-symbols.5 265man/fr/man5/deb-symbols.5
266man/fr/man5/deb-triggers.5 266man/fr/man5/deb-triggers.5
267man/fr/man5/deb-version.5 267man/fr/man5/deb-version.5
268man/fr/man5/deb.5 268man/fr/man5/deb.5
269man/fr/man5/dpkg.cfg.5 269man/fr/man5/dpkg.cfg.5
270man/fr/man5/dselect.cfg.5 270man/fr/man5/dselect.cfg.5
271man/fr/man8/dpkg-divert.8 271man/fr/man8/dpkg-divert.8
272man/fr/man8/dpkg-statoverride.8 272man/fr/man8/dpkg-statoverride.8
273man/fr/man8/update-alternatives.8 273man/fr/man8/update-alternatives.8
274man/hu/man5/dpkg.cfg.5 274man/hu/man5/dpkg.cfg.5
275man/hu/man5/dselect.cfg.5 275man/hu/man5/dselect.cfg.5
 276man/it/man1/dpkg-buildpackage.1
 277man/it/man1/dpkg-checkbuilddeps.1
 278man/it/man1/dpkg-deb.1
 279man/it/man1/dpkg-distaddfile.1
 280man/it/man1/dpkg-name.1
 281man/it/man1/dpkg-parsechangelog.1
 282man/it/man1/dpkg-query.1
 283man/it/man1/dpkg-scanpackages.1
 284man/it/man1/dpkg-scansources.1
 285man/it/man1/dpkg-split.1
 286man/it/man1/dpkg-vendor.1
 287man/it/man1/dpkg.1
 288man/it/man1/dselect.1
 289man/it/man5/deb-control.5
 290man/it/man5/deb-extra-override.5
 291man/it/man5/deb-old.5
 292man/it/man5/deb-origin.5
 293man/it/man5/deb-override.5
 294man/it/man5/deb-shlibs.5
 295man/it/man5/deb-split.5
 296man/it/man5/deb-src-control.5
 297man/it/man5/deb-substvars.5
 298man/it/man5/deb-version.5
 299man/it/man5/deb.5
 300man/it/man5/dpkg.cfg.5
 301man/it/man5/dselect.cfg.5
 302man/it/man8/dpkg-statoverride.8
 303man/it/man8/update-alternatives.8
276man/ja/man1/dpkg-architecture.1 304man/ja/man1/dpkg-architecture.1
277man/ja/man1/dpkg-buildflags.1 305man/ja/man1/dpkg-buildflags.1
278man/ja/man1/dpkg-buildpackage.1 306man/ja/man1/dpkg-buildpackage.1
 307man/ja/man1/dpkg-checkbuilddeps.1
279man/ja/man1/dpkg-deb.1 308man/ja/man1/dpkg-deb.1
280man/ja/man1/dpkg-distaddfile.1 309man/ja/man1/dpkg-distaddfile.1
 310man/ja/man1/dpkg-genchanges.1
 311man/ja/man1/dpkg-gencontrol.1
281man/ja/man1/dpkg-gensymbols.1 312man/ja/man1/dpkg-gensymbols.1
 313man/ja/man1/dpkg-maintscript-helper.1
282man/ja/man1/dpkg-mergechangelogs.1 314man/ja/man1/dpkg-mergechangelogs.1
283man/ja/man1/dpkg-name.1 315man/ja/man1/dpkg-name.1
 316man/ja/man1/dpkg-parsechangelog.1
 317man/ja/man1/dpkg-query.1
284man/ja/man1/dpkg-scanpackages.1 318man/ja/man1/dpkg-scanpackages.1
285man/ja/man1/dpkg-scansources.1 319man/ja/man1/dpkg-scansources.1
 320man/ja/man1/dpkg-shlibdeps.1
286man/ja/man1/dpkg-source.1 321man/ja/man1/dpkg-source.1
287man/ja/man1/dpkg-split.1 322man/ja/man1/dpkg-split.1
288man/ja/man1/dpkg-trigger.1 323man/ja/man1/dpkg-trigger.1
289man/ja/man1/dpkg-vendor.1 324man/ja/man1/dpkg-vendor.1
290man/ja/man1/dpkg.1 325man/ja/man1/dpkg.1
291man/ja/man1/dselect.1 326man/ja/man1/dselect.1
292man/ja/man5/deb-control.5 327man/ja/man5/deb-control.5
293man/ja/man5/deb-extra-override.5 328man/ja/man5/deb-extra-override.5
294man/ja/man5/deb-old.5 329man/ja/man5/deb-old.5
295man/ja/man5/deb-origin.5 330man/ja/man5/deb-origin.5
296man/ja/man5/deb-override.5 331man/ja/man5/deb-override.5
297man/ja/man5/deb-shlibs.5 332man/ja/man5/deb-shlibs.5
298man/ja/man5/deb-split.5 333man/ja/man5/deb-split.5

cvs diff -r1.8 -r1.9 pkgsrc/misc/dpkg/distinfo (expand / switch to unified diff)

--- pkgsrc/misc/dpkg/distinfo 2015/11/03 23:49:34 1.8
+++ pkgsrc/misc/dpkg/distinfo 2015/12/30 12:47:57 1.9
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
1$NetBSD: distinfo,v 1.8 2015/11/03 23:49:34 agc Exp $ 1$NetBSD: distinfo,v 1.9 2015/12/30 12:47:57 bsiegert Exp $
2 2
3SHA1 (dpkg_1.16.10.tar.xz) = bd67ce10236a674a2349d13feaa096b41fea4c9c 3SHA1 (dpkg_1.16.17.tar.xz) = 2573b422a5aa67464c53dabc4eeb43ff44f7b040
4RMD160 (dpkg_1.16.10.tar.xz) = e04b3834056cd97c1cb955007f02e1358a8e8fa0 4RMD160 (dpkg_1.16.17.tar.xz) = 28b52798d5c6a86833ee732326ddc8b2e21bd73f
5SHA512 (dpkg_1.16.10.tar.xz) = cd7b1159c2071f48f2e369e03b8a3d1f00366bcdabab2ef4c33700e8f3230db5c9991e5937331f7f66f616d2bb798efec12e572af5724e1c9809beb9d5ae627e 5SHA512 (dpkg_1.16.17.tar.xz) = 1d14049ac6d84bcb593880a630c09cfcdb0c60e180bd47569d7e1a13e1cb337b6c4f5d815d242d5ecfedc9e3b034a2ae9129951feb05260389012793f9fa41c8
6Size (dpkg_1.16.10.tar.xz) = 3703340 bytes 6Size (dpkg_1.16.17.tar.xz) = 3806316 bytes
7SHA1 (patch-aa) = a7d40af564ae6f95357450026ed75236918cb5ff 7SHA1 (patch-aa) = a7d40af564ae6f95357450026ed75236918cb5ff