Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611316 - <dev-db/mariadb-10.0.30: use-after-free in libmysqlclient.so (CVE-2017-3302)
Summary: <dev-db/mariadb-10.0.30: use-after-free in libmysqlclient.so (CVE-2017-3302)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL:
Whiteboard: B3 [noglsa cve]
Keywords:
Depends on:
Blocks: 604678 CVE-2017-3302
  Show dependency tree
 
Reported: 2017-03-01 19:32 UTC by Thomas Deutschmann (RETIRED)
Modified: 2018-07-28 17:41 UTC (History)
2 users (show)

See Also:
Package list:
=dev-db/mariadb-10.0.30
Runtime testing required: ---
stable-bot: sanity-check+


Attachments
build.log of test-failure w/ armv7a (mariadb-10.0.30:20170316-105606.log.gz,265.52 KB, application/gzip)
2017-03-16 17:42 UTC, Michael Weber (RETIRED)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2017-03-01 19:32:18 UTC
Incoming details. See bug 611314 for more details.
Comment 1 GLSAMaker/CVETool Bot gentoo-dev 2017-03-01 19:39:22 UTC
CVE-2017-3302 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-3302):
  Crash in libmysqlclient.so in Oracle MySQL before 5.6.21 and 5.7.x before
  5.7.5 and MariaDB through 5.5.54, 10.0.x through 10.0.29, 10.1.x through
  10.1.21, and 10.2.x through 10.2.3.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2017-03-16 09:05:57 UTC
@ Arches, please test and mark stable.
The test suite should pass following the official instructions.
Local timeouts may be expected on resource starved machines. (each test thread can spawn up to 4 server instances)

Target keywords:
=dev-db/mariadb-10.0.30 alpha amd64 arm hppa ia64 ppc ppc64 sparc x86

# Official test instructions:
# USE='embedded extraengine perl server openssl static-libs' \
# FEATURES='test userpriv -usersandbox' \
# ebuild mariadb-10.0.30.ebuild \
# digest clean package

# Parallel testing is enabled, auto will try to detect number of cores
# You may set this by hand.
# The default maximum is 8 unless MTR_MAX_PARALLEL is increased
export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
Comment 3 Michael Weber (RETIRED) gentoo-dev 2017-03-16 17:36:06 UTC
ppc64 stable.
Comment 4 Michael Weber (RETIRED) gentoo-dev 2017-03-16 17:42:21 UTC
Created attachment 467226 [details]
build.log of test-failure w/ armv7a

# MAKEOPTS=-j1 MTR_PARALLEL=1 FEATURES='test userpriv -usersandbox' USE='embedded extraengine perl server openssl static-libs' emerge -pv1 =dev-db/mariadb-10.0.30    
                                                                                                                                                           
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] dev-db/mariadb-10.0.30:0/18::gentoo  USE="embedded extraengine openssl pam perl server static-libs {test} -bindist -debug -jdbc -jemalloc -latin1 -libressl -odbc -oqgraph -profiling (-selinux) -sphinx -static -systemtap -tcmalloc (-tokudb) -xml -yassl" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Portage 2.3.3 (python 3.4.5-final-0, default/linux/arm/13.0/armv7a, gcc-4.9.4, glibc-2.23-r3, 4.0.0-rc6-00050-g631acab-dirty armv7l)
=================================================================
System uname: Linux-4.0.0-rc6-00050-g631acab-dirty-armv7l-ARMv7_Processor_rev_3_-v7l-with-gentoo-2.3
KiB Mem:     2061024 total,   1003020 free
KiB Swap:    2097148 total,   2094168 free
Timestamp of repository gentoo: Thu, 16 Mar 2017 06:45:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.26.1::gentoo
sys-devel/gcc:            4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage/
    priority: -1000

xmw
    location: /var/lib/layman/xmw
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=armv7-a"
DISTDIR="/var/cache/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs ccache compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict test test-fail-continue unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://lore.xmw.de/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/var/cache/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl arm armv5te armv6 armv6t2 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pam pcre readline seccomp session ssl tcpd unicode xattr zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 Brian Evans (RETIRED) gentoo-dev 2017-03-16 17:58:01 UTC
(In reply to Michael Weber from comment #4)
> Created attachment 467226 [details]
> build.log of test-failure w/ armv7a
> 
> # MAKEOPTS=-j1 MTR_PARALLEL=1 FEATURES='test userpriv -usersandbox'
> USE='embedded extraengine perl server openssl static-libs' emerge -pv1
> =dev-db/mariadb-10.0.30    

client test failure (not server)..
" Error reading file './client_test_db/test_frm_bug.frm'"

Not critical to hold up a stable.  Go ahead and mark it and I will investigate (and probably just skip these 3 tests as was done in the past).
Comment 6 Agostino Sarubbo gentoo-dev 2017-03-17 10:16:08 UTC
amd64 stable
Comment 7 Agostino Sarubbo gentoo-dev 2017-03-17 10:27:44 UTC
x86 stable
Comment 8 Agostino Sarubbo gentoo-dev 2017-03-17 10:43:06 UTC
sparc stable
Comment 9 Markus Meier gentoo-dev 2017-03-22 19:34:59 UTC
arm stable
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2017-03-23 05:23:52 UTC
Stable for HPPA.
Comment 11 Agostino Sarubbo gentoo-dev 2017-03-25 19:25:44 UTC
ppc stable
Comment 12 Tobias Klausmann (RETIRED) gentoo-dev 2017-04-05 07:30:02 UTC
Stable on alpha.
Comment 13 Yury German Gentoo Infrastructure gentoo-dev 2017-04-11 03:40:50 UTC
Continue with stabilization for non security arches. 
GLSA Vote: No
Comment 14 Yury German Gentoo Infrastructure gentoo-dev 2017-04-26 01:25:46 UTC
ia64 not security supported arch - Closing noglsa