Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455464 (CVE-2013-0252) - <dev-libs/boost-1.52.0-r6: Certain invalid UTF-8 sequences accepted as valid (CVE-2013-0252)
Summary: <dev-libs/boost-1.52.0-r6: Certain invalid UTF-8 sequences accepted as valid ...
Status: RESOLVED FIXED
Alias: CVE-2013-0252
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard: A4 [noglsa]
Keywords:
: 474770 (view as bug list)
Depends on: 456328 459448 460238 460264 460272 460274 460276 460292 460384 461574 461578 474066
Blocks: 467256
  Show dependency tree
 
Reported: 2013-02-04 16:56 UTC by Agostino Sarubbo
Modified: 2013-12-31 08:48 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2013-02-04 16:56:31 UTC
From $URL :

Jan Lieskovsky 2013-02-04 15:20:03 CET
A security flaw was found in the way UTF-8 decoder of boost, set of free peer-reviewed portable C++ 
source libraries, performed validation of certain UTF-8 encoded sequences. If an application, 
linked against boost used the UTF-8 decoding routines for input validation (and depended at the 
results), an attacker could use this flaw to confuse the validator into (errorneously) accepting 
them as valid.

Upstream bug report:
[1] https://svn.boost.org/trac/boost/ticket/7743

Upstream advisory:
[2] http://www.boost.org/users/news/boost_locale_security_notice.html

Relevant upstream patch:
[3] http://cppcms.com/files/locale/boost_locale_utf.patch

References:
[4] http://www.openwall.com/lists/oss-security/2013/02/04/1
[5] http://www.openwall.com/lists/oss-security/2013/02/04/2
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2013-02-27 11:31:47 UTC
Okay so we need a patched ebuild for 1.52 ... not sure if we're ready to mark it stable or not, I would probably expect it to...

@security how fast do we get this done? I'm running already a different tinderbox run on stable, so I might have to wait for this...
Comment 2 Agostino Sarubbo gentoo-dev 2013-02-27 13:35:01 UTC
(In reply to comment #1)
> Okay so we need a patched ebuild for 1.52 ... not sure if we're ready to
> mark it stable or not, I would probably expect it to...
> 
> @security how fast do we get this done? I'm running already a different
> tinderbox run on stable, so I might have to wait for this...

How sounds patch the 1.49.0 series? Did you check if the patch is applicable?
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2013-03-03 11:02:36 UTC
I'm not going to touch 1.49 — I guess we'll have to go with 1.52.0-r6 and keep the pieces for what breaks.
Comment 4 Sean Amoss (RETIRED) gentoo-dev Security 2013-03-04 02:17:50 UTC
(In reply to comment #1)
> @security how fast do we get this done? I'm running already a different
> tinderbox run on stable, so I might have to wait for this...

(Ideally, this would have been fixed by now). 

I saw your email to -dev-announce regarding boost. Are we ready to start stabilization or should we wait a little longer?
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2013-03-04 06:31:24 UTC
The tinderbox is running, I'm fine with starting to mark it stable.
Comment 6 GLSAMaker/CVETool Bot gentoo-dev 2013-03-21 18:41:55 UTC
CVE-2013-0252 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2013-0252):
  boost::locale::utf::utf_traits in the Boost.Locale library in Boost 1.48
  through 1.52 does not properly detect certain invalid UTF-8 sequences, which
  might allow remote attackers to bypass input validation protection
  mechanisms via crafted trailing bytes.
Comment 7 Geoff Madden 2013-03-22 09:01:22 UTC
>> Emerging (1 of 1) dev-libs/boost-1.52.0-r6
 * boost_1_52_0.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking boost_1_52_0.tar.bz2 to /var/tmp/portage/dev-libs/boost-1.52.0-r6/work
>>> Source unpacked in /var/tmp/portage/dev-libs/boost-1.52.0-r6/work
>>> Preparing source in /var/tmp/portage/dev-libs/boost-1.52.0-r6/work/boost_1_52_0 ...
 * Applying boost-1.48.0-mpi_python3.patch ...                                                                                                        [ ok ]
 * Applying boost-1.51.0-respect_python-buildid.patch ...                                                                                             [ ok ]
 * Applying boost-1.51.0-support_dots_in_python-buildid.patch ...                                                                                     [ ok ]
 * Applying boost-1.48.0-no_strict_aliasing_python2.patch ...                                                                                         [ ok ]
 * Applying boost-1.48.0-disable_libboost_python3.patch ...                                                                                           [ ok ]
 * Applying boost-1.48.0-python_linking.patch ...                                                                                                     [ ok ]
 * Applying boost-1.48.0-disable_icu_rpath.patch ...                                                                                                  [ ok ]
 * Applying remove-toolset-1.48.0.patch ...                                                                                                           [ ok ]
 * Applying boost-1.52.0-tuple.patch ...                                                                                                              [ ok ]
 * Applying boost-1.52.0-locale-utf.patch ...                                                                                                         [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/boost-1.52.0-r6/work/boost_1_52_0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-libs/boost-1.52.0-r6/work/boost_1_52_0 ...
 * python3_2: running building
b2 gentoorelease -j1 -q -d+2 --user-config=/var/tmp/portage/dev-libs/boost-1.52.0-r6/work/boost_1_52_0/user-config.jam --disable-icu boost.locale.icu=off pch=off --boost-build=/usr/share/boost-build --prefix="/var/tmp/portage/dev-libs/boost-1.52.0-r6/image/usr" --layout=system threading=multi link=shared --without-context --python-buildid=3.2

AND thats as far as it goes,python has been updated and I'm running python-updater.
I can get a comple by going to /var/temp/portage/boost and running bootstrap.sh.
Then ./br which runs the compile successfully. but not having setup the install param's its advising to link to this dir,but as this's a temp situation not very wise. Any suggestions as to how or what I need todo to get success
Comment 8 wrc 2013-04-07 05:09:28 UTC
I've had the same experience as Mr. Madden in attempting to merge boost-1.52.0-r6. The solution was to merge without the sandbox:

FEATURES="-sandbox" emerge boost

Regards.
Comment 9 SpanKY gentoo-dev 2013-06-25 20:25:56 UTC
*** Bug 474770 has been marked as a duplicate of this bug. ***
Comment 10 SpanKY gentoo-dev 2013-06-25 20:26:49 UTC
this is needed in order to start stabilizing glibc-2.16
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-25 12:19:16 UTC
Stable for HPPA.
Comment 12 Agostino Sarubbo gentoo-dev 2013-09-13 06:26:27 UTC
@vapier:

make no sense have the arches here when we have some blockers. If for you they are no longer a block, please remove them, otherwise I should wait for the resolution of those bugs.
Comment 13 Agostino Sarubbo gentoo-dev 2013-09-14 17:38:57 UTC
amd64 stable
Comment 14 Agostino Sarubbo gentoo-dev 2013-09-22 06:55:23 UTC
x86 stable
Comment 15 Agostino Sarubbo gentoo-dev 2013-09-22 08:00:34 UTC
ia64 stable
Comment 16 Agostino Sarubbo gentoo-dev 2013-09-22 12:13:08 UTC
ppc64 stable
Comment 17 Agostino Sarubbo gentoo-dev 2013-09-22 12:45:17 UTC
ppc stable
Comment 18 Agostino Sarubbo gentoo-dev 2013-09-22 14:25:05 UTC
alpha stable
Comment 19 Agostino Sarubbo gentoo-dev 2013-09-26 17:28:38 UTC
arm stable
Comment 20 Agostino Sarubbo gentoo-dev 2013-09-28 20:44:27 UTC
SH is not anymore a stable arch, removing it from the cc list
Comment 21 Agostino Sarubbo gentoo-dev 2013-09-28 20:48:44 UTC
S390 is not anymore a stable arch, removing it from the cc list
Comment 22 Agostino Sarubbo gentoo-dev 2013-09-28 20:53:52 UTC
M68K is not anymore a stable arch, removing it from the cc list
Comment 23 Agostino Sarubbo gentoo-dev 2013-12-14 19:46:45 UTC
sparc stable.

Maintainer(s), please cleanup.
Security, please vote.
Comment 24 Chris Reffett (RETIRED) gentoo-dev Security 2013-12-14 20:10:30 UTC
GLSA vote: no.
Comment 25 Sergey Popov gentoo-dev 2013-12-31 08:48:10 UTC
GLSA vote: no

Vulnerable versions are masked, closing as noglsa.