Hello community, here is the log from the commit of package glibc for openSUSE:12.1:Update:Test checked in at 2011-12-19 18:00:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:12.1:Update:Test/glibc (Old) and /work/SRC/openSUSE:12.1:Update:Test/.glibc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "glibc", Maintainer is "[email protected]" Changes: -------- --- /work/SRC/openSUSE:12.1:Update:Test/glibc/glibc.changes 2011-12-05 15:33:49.000000000 +0100 +++ /work/SRC/openSUSE:12.1:Update:Test/.glibc.new/glibc.changes 2011-12-19 18:00:11.000000000 +0100 @@ -2 +2 @@ -Tue Nov 29 11:13:47 UTC 2011 - [email protected] +Mon Dec 19 10:01:56 UTC 2011 - [email protected] @@ -4 +4,2 @@ -- Do not install INSTALL file. +- Fix timezone loader overflow (bnc#735850,CVE-2009-5029) (patch + tzfile-corruption-fix.patch) New: ---- tzfile-corruption-fix.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ glibc.spec ++++++ --- /var/tmp/diff_new_pack.WIO9lg/_old 2011-12-19 18:00:11.000000000 +0100 +++ /var/tmp/diff_new_pack.WIO9lg/_new 2011-12-19 18:00:11.000000000 +0100 @@ -19,7 +19,7 @@ %define crypt_bf_version 1.2 Name: glibc -License: GPLv2+ +License: GPL-2.0+ Summary: Standard Shared Libraries (from the GNU C Library) Group: System/Libraries BuildRequires: gcc-c++ @@ -225,6 +225,8 @@ Patch84: nscd-avoid-gcc-warning.diff # PATCH-FIX-OPENSUSE fix printf with > 32 args and printf specifiers bnc#733140, bso#13446 Patch85: glibc-2.14-32args-printf.patch +# PATCH-FIX-UPSTREAM fix tzfile heap overrun bnc#735850 - [email protected] +Patch86: tzfile-corruption-fix.patch %description The GNU C Library provides the most important standard libraries used @@ -233,7 +235,7 @@ without these libraries. %package info -License: GPLv2+ +License: GPL-2.0+ Summary: Info Files for the GNU C Library Group: Documentation/Other Requires(post): %{install_info_prereq} @@ -246,7 +248,7 @@ complete and is partially out of date. %package html -License: GPLv2+ ; LGPLv2.1+ +License: GPL-2.0+ ; LGPL-2.1+ Summary: HTML Documentation for the GNU C Library Group: Documentation/HTML BuildArch: noarch @@ -257,7 +259,7 @@ partially out of date. %package i18ndata -License: LGPLv2.1+ +License: LGPL-2.1+ Summary: Database Sources for 'locale' Group: System/Libraries BuildArch: noarch @@ -269,7 +271,7 @@ created. %package locale -License: GPLv2+ ; LGPLv2.1+ +License: GPL-2.0+ ; LGPL-2.1+ Summary: Locale Data for Localized Programs Group: System/Libraries Requires(post): /bin/cat @@ -286,7 +288,7 @@ Locale data for the internationalisation features of the GNU C library. %package -n nscd -License: LGPLv2.1+ +License: LGPL-2.1+ Summary: Name Service Caching Daemon Group: System/Daemons Provides: aaa_base:/etc/init.d/nscd @@ -300,7 +302,7 @@ performance with NIS, NIS+, and LDAP. %package profile -License: LGPLv2.1+ +License: LGPL-2.1+ Summary: Libc Profiling and Debugging Versions Group: Development/Libraries/C and C++ Requires: glibc = %{version} @@ -317,7 +319,7 @@ necessary for profiling and debugging. %package devel -License: BSD3c(or similar) ; GPLv2+ ; LGPLv2.1+ +License: BSD-3-Clause ; GPL-2.0+ ; LGPL-2.1+ Summary: Include Files and Libraries Mandatory for Development Group: Development/Libraries/C and C++ Obsoletes: epoll = 1.0 @@ -349,7 +351,7 @@ which is highly discouraged. %package utils -License: BSD3c(or similar) ; GPLv2+ ; LGPLv2.1+ +License: BSD-3-Clause ; GPL-2.0+ ; LGPL-2.1+ Summary: Development utilities from GNU C library Group: Development/Languages/C and C++ Requires: glibc = %{version} @@ -364,7 +366,7 @@ %ifarch %ix86 %package obsolete -License: BSD3c(or similar) ; GPLv2+ ; LGPLv2.1+ +License: BSD-3-Clause ; GPL-2.0+ ; LGPL-2.1+ Summary: Obsolete Shared Libraries from the GNU C Library Group: System/Libraries Requires: glibc = %{version} @@ -466,6 +468,7 @@ %patch75 -p1 %patch84 %patch85 +%patch86 -p1 # # Inconsistency detected by ld.so: dl-close.c: 719: _dl_close: Assertion `map->l_init_called' failed! @@ -1066,7 +1069,7 @@ %files devel %defattr(-,root,root) -%doc COPYING COPYING.LIB FAQ NEWS NOTES README BUGS CONFORMANCE +%doc COPYING COPYING.LIB FAQ INSTALL NEWS NOTES README BUGS CONFORMANCE %doc %{_mandir}/man1/catchsegv.1.gz %doc %{_mandir}/man1/rpcgen.1.gz %doc %{_mandir}/man1/sprof.1.gz ++++++ tzfile-corruption-fix.patch ++++++ 2011-12-17 Ulrich Drepper <[email protected]> [BZ #13506] * time/tzfile.c (__tzfile_read): Check values from file header. diff --git a/time/tzfile.c b/time/tzfile.c index 144e20b..402389c 100644 --- a/time/tzfile.c +++ b/time/tzfile.c @@ -234,23 +234,58 @@ __tzfile_read (const char *file, size_t extra, char **extrap) goto read_again; } + if (__builtin_expect (num_transitions + > ((SIZE_MAX - (__alignof__ (struct ttinfo) - 1)) + / (sizeof (time_t) + 1)), 0)) + goto lose; total_size = num_transitions * (sizeof (time_t) + 1); total_size = ((total_size + __alignof__ (struct ttinfo) - 1) & ~(__alignof__ (struct ttinfo) - 1)); types_idx = total_size; - total_size += num_types * sizeof (struct ttinfo) + chars; + if (__builtin_expect (num_types + > (SIZE_MAX - total_size) / sizeof (struct ttinfo), 0)) + goto lose; + total_size += num_types * sizeof (struct ttinfo); + if (__builtin_expect (chars > SIZE_MAX - total_size, 0)) + goto lose; + total_size += chars; + if (__builtin_expect (__alignof__ (struct leap) - 1 + > SIZE_MAX - total_size, 0)) + goto lose; total_size = ((total_size + __alignof__ (struct leap) - 1) & ~(__alignof__ (struct leap) - 1)); leaps_idx = total_size; + if (__builtin_expect (num_leaps + > (SIZE_MAX - total_size) / sizeof (struct leap), 0)) + goto lose; total_size += num_leaps * sizeof (struct leap); - tzspec_len = (sizeof (time_t) == 8 && trans_width == 8 - ? st.st_size - (ftello (f) - + num_transitions * (8 + 1) - + num_types * 6 - + chars - + num_leaps * 12 - + num_isstd - + num_isgmt) - 1 : 0); + tzspec_len = 0; + if (sizeof (time_t) == 8 && trans_width == 8) + { + off_t rem = st.st_size - ftello (f); + if (__builtin_expect (rem < 0 + || (size_t) rem < (num_transitions * (8 + 1) + + num_types * 6 + + chars), 0)) + goto lose; + tzspec_len = (size_t) rem - (num_transitions * (8 + 1) + + num_types * 6 + + chars); + if (__builtin_expect (num_leaps > SIZE_MAX / 12 + || tzspec_len < num_leaps * 12, 0)) + goto lose; + tzspec_len -= num_leaps * 12; + if (__builtin_expect (tzspec_len < num_isstd, 0)) + goto lose; + tzspec_len -= num_isstd; + if (__builtin_expect (tzspec == 0 || tzspec_len - 1 < num_isgmt, 0)) + goto lose; + tzspec_len -= num_isgmt + 1; + if (__builtin_expect (SIZE_MAX - total_size < tzspec_len, 0)) + goto lose; + } + if (__builtin_expect (SIZE_MAX - total_size - tzspec_len < extra, 0)) + goto lose; /* Allocate enough memory including the extra block requested by the caller. */ And fix the previous patch ... --- a/time/tzfile.c.orig 2011-12-19 10:58:26.000000000 +0100 +++ b/time/tzfile.c 2011-12-19 10:59:35.000000000 +0100 @@ -19,6 +19,7 @@ #include <assert.h> #include <limits.h> +#include <stdint.h> #include <stdio.h> #include <stdio_ext.h> #include <stdlib.h> @@ -278,7 +279,7 @@ if (__builtin_expect (tzspec_len < num_isstd, 0)) goto lose; tzspec_len -= num_isstd; - if (__builtin_expect (tzspec == 0 || tzspec_len - 1 < num_isgmt, 0)) + if (__builtin_expect (tzspec_len == 0 || tzspec_len - 1 < num_isgmt, 0)) goto lose; tzspec_len -= num_isgmt + 1; if (__builtin_expect (SIZE_MAX - total_size < tzspec_len, 0)) -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
