Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132146 - dev-db/mysql: multiple vulnerabilities (CVE-2006-151{6-8})
Summary: dev-db/mysql: multiple vulnerabilities (CVE-2006-151{6-8})
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Security
URL: http://dev.mysql.com/doc/connector/j/...
Whiteboard: A4 (and ~1) [glsa] DerCorny
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-03 10:48 UTC by Carsten Lohrke (RETIRED)
Modified: 2006-11-11 20:10 UTC (History)
2 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 Carsten Lohrke (RETIRED) gentoo-dev 2006-05-03 10:48:40 UTC
MySQL Server has an information leakage flaw, if a malicious client sends a specific forged packet. Moreover some particular input can crash the server by overwriting the stack, which could lead to remote server compromise.


http://www.derkeiler.com/Mailing-Lists/securityfocus/bugtraq/2006-05/msg00041.html
Comment 2 Stefan Cornelius (RETIRED) gentoo-dev 2006-05-05 03:49:12 UTC
ok, Falco pointed me to another issue: http://www.derkeiler.com/Mailing-Lists/securityfocus/bugtraq/2006-05/msg00040.html

please dont forget to supply new ebuilds soon, thanks in advance
Comment 3 Francesco R. (RETIRED) gentoo-dev 2006-05-05 04:07:55 UTC
It will be out later today, at :
svn co http://svn.gnqs.org/svn/gentoo-mysql-overlay/experimental experimental
an overlay for the impatients
Comment 4 Luca Longinotti (RETIRED) gentoo-dev 2006-05-05 12:55:58 UTC
Added to Portage 4.1.19 and 5.0.21 that fix this issue, 4.0.27 and 5.1.10 will be added as soon as upstream has them ready.

@arch-teams: please stabilize dev-db/mysql-4.1.19, thanks!

Best regards, CHTEKK.
Comment 5 Thomas Cort (RETIRED) gentoo-dev 2006-05-05 17:06:19 UTC
(In reply to comment #4)
> @arch-teams: please stabilize dev-db/mysql-4.1.19, thanks!

`emerge =dev-db/mysql-4.1.19` with FEATURES="test" fails on amd64 on test 'rpl000015':

rpl000015                      [ fail ]

Errors are (from /var/tmp/portage/mysql-4.1.19/work/mysql/mysql-test/var/log/mys qltest-time) :
mysqltest: Result length mismatch
(the last lines may be the most important ones)
Below are the diffs between actual and expected results:
-------------------------------------------------------
*** r/rpl000015.result  Sat Apr 29 09:03:57 2006
--- r/rpl000015.reject  Fri May  5 23:04:04 2006
***************
*** 8,14 ****
  change master to master_host='127.0.0.1';
  show slave status;
  Slave_IO_State        Master_Host     Master_User     Master_Port     Connect_ Retry   Master_Log_File Read_Master_Log_Pos     Relay_Log_File  Relay_Log_Pos  R elay_Master_Log_File    Slave_IO_Running        Slave_SQL_Running       Replicat e_Do_DB Replicate_Ignore_DB     Replicate_Do_Table      Replicate_Ignore_Table R eplicate_Wild_Do_Table  Replicate_Wild_Ignore_Table     Last_Errno      Last_Err or      Skip_Counter    Exec_Master_Log_Pos     Relay_Log_Space Until_ConditionU ntil_Log_File   Until_Log_Pos   Master_SSL_Allowed      Master_SSL_CA_File     M aster_SSL_CA_Path       Master_SSL_Cert Master_SSL_Cipher       Master_SSL_Key S econds_Behind_Master
! #     127.0.0.1       test    MASTER_PORT     7               4       slave-re lay-bin.000001  4               No      No                                     N one             0       No                                              #
  change master to master_host='127.0.0.1',master_user='root',
  master_password='',master_port=MASTER_PORT;
  show slave status;
--- 8,14 ----
  change master to master_host='127.0.0.1';
  show slave status;
  Slave_IO_State        Master_Host     Master_User     Master_Port     Connect_ Retry   Master_Log_File Read_Master_Log_Pos     Relay_Log_File  Relay_Log_Pos  R elay_Master_Log_File    Slave_IO_Running        Slave_SQL_Running       Replicat e_Do_DB Replicate_Ignore_DB     Replicate_Do_Table      Replicate_Ignore_Table R eplicate_Wild_Do_Table  Replicate_Wild_Ignore_Table     Last_Errno      Last_Err or      Skip_Counter    Exec_Master_Log_Pos     Relay_Log_Space Until_ConditionU ntil_Log_File   Until_Log_Pos   Master_SSL_Allowed      Master_SSL_CA_File     M aster_SSL_CA_Path       Master_SSL_Cert Master_SSL_Cipher       Master_SSL_Key S econds_Behind_Master
! #     127.0.0.1       test    3306    7               4       slave-relay-bin. 000001  4               No      No                                             N one             0       No                                              #
  change master to master_host='127.0.0.1',master_user='root',
  master_password='',master_port=MASTER_PORT;
  show slave status;
-------------------------------------------------------

# emerge --info
Portage 2.0.54 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r7 x86_64 AMD Turion(tm) 64 Mobile Technology ML-32
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig cvs distlocks multilib-strict sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrored.ca/ http://adelie.polymtl.ca/ http://gentoo.osuosl.org/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X aac acpi aim alsa audacious audiofile avi berkdb bitmap-fonts browserplugin bzip2 cdr cli crypt cups curl dbus dri eds emboss encode esd exif expat fam flac foomaticdb gd gdbm gif glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal icq idn imlib ipv6 isdnlog jabber java jpeg kde lcms libwww lua lzw lzw-tiff mad mikmod mng mono mozilla moznocompose moznoirc moznomail mp3 mpeg msn ncurses nls nocd nptl nptlonly nsplugin offensive ogg oggvorbis openal opengl oscar pam pcre pdflib perl png pppd python qt quicktime readline reflection sdl session shorten sndfile spell spl ssl symlink tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb userlocales vorbis wxgtk1 xml2 xmms xorg xpm xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2006-05-05 22:18:41 UTC
x86 done
Comment 7 Thomas Cort (RETIRED) gentoo-dev 2006-05-05 22:47:19 UTC
All tests passed on alpha.
dev-db/mysql-4.1.19 stable on alpha.
Comment 8 Luca Longinotti (RETIRED) gentoo-dev 2006-05-06 02:59:06 UTC
The tests should all pass without problems, a problem I can see is the patchset, we revamped how patches are integrated in MySQL, so *please* make sure to also update your eclass/ directory in your CVS checkout, else it will download the wrong stuff and break all digests, thanks!
Best regards, CHTEKK.
Comment 9 Markus Rothe (RETIRED) gentoo-dev 2006-05-06 05:00:38 UTC
stable on ppc64
Comment 10 Thomas Cort (RETIRED) gentoo-dev 2006-05-06 07:16:54 UTC
(In reply to comment #8)
> The tests should all pass without problems

I did an `emerge --sync` and tried again. All 311 tests were successful and it works well when I test it. amd64 stable.
Comment 11 Jason Wever (RETIRED) gentoo-dev 2006-05-06 14:59:26 UTC
And on the SPARCeth day, there was a SPARC keyword, and it was good.
Comment 12 Chris White (RETIRED) gentoo-dev 2006-05-07 00:32:40 UTC
rpl000015                      [ fail ]

Errors are (from /var/tmp/portage/mysql-4.1.19/work/mysql/mysql-test/var/log/mysqltest-time) :
mysqltest: Result length mismatch
(the last lines may be the most important ones)
Below are the diffs between actual and expected results:
-------------------------------------------------------
*** r/rpl000015.result  Sat Apr 29 09:03:57 2006
--- r/rpl000015.reject  Sun May  7 09:32:44 2006
***************
*** 8,14 ****
  change master to master_host='127.0.0.1';
  show slave status;
  Slave_IO_State        Master_Host     Master_User     Master_Port     Connect_Retry   Master_Log_File Read_Master_Log_Pos     Relay_Log_File       Relay_Log_Pos   Relay_Master_Log_File   Slave_IO_Running        Slave_SQL_Running       Replicate_Do_DB Replicate_Ignore_DB     Replicate_Do_Table   Replicate_Ignore_Table  Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table     Last_Errno      Last_Error      Skip_CounterExec_Master_Log_Pos      Relay_Log_Space Until_Condition Until_Log_File  Until_Log_Pos   Master_SSL_Allowed      Master_SSL_CA_File      Master_SSL_CA_Path   Master_SSL_Cert Master_SSL_Cipher       Master_SSL_Key  Seconds_Behind_Master
! #     127.0.0.1       test    MASTER_PORT     7               4       slave-relay-bin.000001  4               No      No                  00       0       4       None            0       No                                              #
  change master to master_host='127.0.0.1',master_user='root',
  master_password='',master_port=MASTER_PORT;
  show slave status;
--- 8,14 ----
  change master to master_host='127.0.0.1';
  show slave status;
  Slave_IO_State        Master_Host     Master_User     Master_Port     Connect_Retry   Master_Log_File Read_Master_Log_Pos     Relay_Log_File       Relay_Log_Pos   Relay_Master_Log_File   Slave_IO_Running        Slave_SQL_Running       Replicate_Do_DB Replicate_Ignore_DB     Replicate_Do_Table   Replicate_Ignore_Table  Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table     Last_Errno      Last_Error      Skip_CounterExec_Master_Log_Pos      Relay_Log_Space Until_Condition Until_Log_File  Until_Log_Pos   Master_SSL_Allowed      Master_SSL_CA_File      Master_SSL_CA_Path   Master_SSL_Cert Master_SSL_Cipher       Master_SSL_Key  Seconds_Behind_Master
! #     127.0.0.1       test    3306    7               4       slave-relay-bin.000001  4               No      No                          00       0       4       None            0       No                                              #
  change master to master_host='127.0.0.1',master_user='root',
  master_password='',master_port=MASTER_PORT;
  show slave status;
-------------------------------------------------------

same as with tcort. I did a full cvs checkout of the entire directory about 10 minutes ago as well.

[ebuild     U ] dev-db/mysql-4.1.19 [4.1.14-r1] USE="berkdb perl ssl -big-tables -cluster -debug -embedded -extraengine -minimal -raid -srvdir -static" 0 kB [1]

chris@tsubasa /usr/local/portage $ emerge --info
Portage 2.1_pre10-r2 (default-linux/ppc/ppc32/2006.0/G4, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-gentoo-r1 ppc)
=================================================================
System uname: 2.6.15-gentoo-r1 ppc 7447/7457, altivec supported
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -maltivec -mcpu=G4 -mabi=altivec -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -maltivec -mcpu=G4 -mabi=altivec -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig collision-protect cvs distclean distlocks fixpackages metadata-transfer nostrip sandbox sfperms sign splitdebug strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/gentoo-x86"
SYNC="rsync://192.168.0.100/gentoo-portage"
USE="ppc acl alsa altivec apache2 apm berkdb bitmap-fonts bonobo cdr cli crypt cups dri dvd eds emboss encode esd fam foomaticdb fortran gdbm gif gnome gpm gstreamer gtk2 gtkhtml imlib isdnlog jpeg kde ldap libg++ libwww mad mikmod motif mozilla mp3 mpeg mysql ncurses nls nptl nptlonly ogg opengl pam pcre pdflib perl png postgres pppd python quicktime readline reflection ruby session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode userlocales vorbis xml xmms xorg xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 13 René Nussbaumer (RETIRED) gentoo-dev 2006-05-07 02:28:49 UTC
stable on hppa
Comment 14 Francesco R. (RETIRED) gentoo-dev 2006-05-07 03:07:54 UTC
addiction to c#12

The problem arise in MASTER_PORT _not_ being converted to "3306" (or it's value) for some reason.
I do strongly suspect this is not a problem of the test itself but of the mysql-test/mysql-test-run.{choose,your} used.

__OR__

in the <code>sed -i -e "s|PORT=3306|PORT=3307|g" mysql-test-run</code> in the ebuild function src_test(), yes there is a reason why src_test() is the only fx not moved to the eclass  ;)
Comment 15 René Nussbaumer (RETIRED) gentoo-dev 2006-05-07 04:41:27 UTC
stable on hppa
Comment 16 Luca Longinotti (RETIRED) gentoo-dev 2006-05-07 08:07:00 UTC
KillerFox: Please update your eclass/ dir next time too. ;)

ChrisWhite, tcort: that test is known to fail and I fixed it in the current MySQL verions, please make sure the 700_all_rpl000015* patch gets applied when you emerge dev-db/mysql-4.1.19, it always worked then...
Best regards, CHTEKK.
Comment 17 Tobias Scherbaum (RETIRED) gentoo-dev 2006-05-07 11:47:07 UTC
Works for me on ppc, marked stable.
Comment 18 Wolf Giesen (RETIRED) gentoo-dev 2006-05-07 23:45:24 UTC
Just to clear it up for me: was this fixed in 4.0.26-r1 already?
Comment 19 Thierry Carrez (RETIRED) gentoo-dev 2006-05-08 06:40:11 UTC
Ready for GLSA
Comment 20 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-05-11 09:33:04 UTC
GLSA 200605-13

arm, ia64, s390, sh don't forget to mark stable to benefit from the GLSA.
Comment 21 Luca Longinotti (RETIRED) gentoo-dev 2006-05-13 04:51:40 UTC
MySQL 4.0.27 was just added to the tree, it passes all the tests and fixes the mentioned security vulnerabilities in the MySQL 4.0.X tree. As 4.0.X is stable on Gentoo and still used by a lot of people, please stable it @ arch-teams, thanks! And please make sure to update your eclass/ directory this time. ;)
Best regards, CHTEKK.
Comment 22 Chris Gianelloni (RETIRED) gentoo-dev 2006-05-13 06:59:12 UTC
4.0.27 stable on x86
Comment 23 Thomas Cort (RETIRED) gentoo-dev 2006-05-13 07:55:12 UTC
4.0.27 stable on amd64.
Comment 24 Thomas Cort (RETIRED) gentoo-dev 2006-05-13 09:36:42 UTC
4.0.27 stable on alpha.
Comment 25 Jason Wever (RETIRED) gentoo-dev 2006-05-13 15:03:09 UTC
SPARC'd
Comment 26 Tobias Scherbaum (RETIRED) gentoo-dev 2006-05-14 10:47:30 UTC
ppc stable
Comment 27 René Nussbaumer (RETIRED) gentoo-dev 2006-05-15 10:37:42 UTC
stable on hppa
Comment 28 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-05-15 13:15:14 UTC
ppc64 please test and mark stable.
Comment 29 Markus Rothe (RETIRED) gentoo-dev 2006-05-15 22:25:58 UTC
well... mysql-4.0.* fails on some of my PPC64 test systems with this error message:

error: Could not find the right ps switches. Which OS is this ?. See the Installation chapter in the Reference Manual.

But as the stable version (4.0.25-r2) also fails on some (the same systems 4.0.27 fails on) I've marked 4.0.27 stable on PPC64. Will handle the error in a seperate bug.

Sorry for being late...
Comment 30 Thierry Carrez (RETIRED) gentoo-dev 2006-05-16 09:22:21 UTC
Maybe do a GLSA update together with bug 133354
Comment 31 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-05-16 13:37:07 UTC
GLSA 200605-13 updated and reissued.

arm, ia64, mips, s390 and sh please don't forget to mark stable to benefit from the GLSA.
Comment 32 Joshua Kinard gentoo-dev 2006-09-03 14:57:49 UTC
4.1.21 stable on mips.