Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99922 - dev-db/mysql possibly includes vulnerable zlib
Summary: dev-db/mysql possibly includes vulnerable zlib
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Security
URL: http://dev.mysql.com/doc/mysql/en/new...
Whiteboard: jaervosz
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-22 09:09 UTC by Sune Kloppenborg Jeppesen (RETIRED)
Modified: 2005-07-25 11:31 UTC (History)
1 user (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 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-07-22 09:09:43 UTC
Changes in release 4.1.13 (15 Jul 2005) 
 Functionality added or changed:  
 Security improvement: Applied a patch that addresses a zlib data 
vulnerability that could result in a buffer overflow and code execution. 
(CAN-2005-2096) (Bug #11844)
Comment 1 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-07-22 09:10:41 UTC
Mysql please advise. 
Comment 2 Francesco R. (RETIRED) gentoo-dev 2005-07-22 10:51:03 UTC
mysql-4.1.13-r1.ebuild
mysql-5.0.9_beta-r2.ebuild
now depend upon >=sys-libs/zlib-1.2.2-r1 (after CVS propagate itself)

these two ebuild force mysql to link agains external zlib.
^ this mean all the people that has emerged after "06 Jul 2005" are using a safe
zlib (also with version of mysql prior 4.1.13).

To be on the safe side I've bumped to force upgrade of zlib.


Speaking of 4.0.x from here
---------------------------

MySQL Bugs: #11844
[11 Jul 19:37] Jim Winstead

This only impacts MySQL 4.1 and later, as 4.0 (and earlier) includes an earlier
version of zlib that is reportedly not vulnerable.

---------------------------

^ I suppose this is not valid if the binaryes are linked against system version
of zlib.
The 4.0.x ebuild don't force linking to external libraryes, so the linkage
depend upon configure.in choices.

I'm not in the position to check this and not untill monday aftenoon.

Please hear robbat2 or find an installed mysql-4.0 and run ldd on it.

FYI mysql-4.0.25 has been tested only on systems with "sys-libs/zlib-1.2.2-r1"
here so they work for sure with that on.
The other side of the coin is that that sources are out only from 15 Jul 2005 .

I'm reachable for about one hour.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-07-22 11:34:57 UTC
even mysql-4.0.24-r2 links against the external zlib by default for us (at 
least on my test box), so I don't see any problem for us.

foo ~ # ldd `which mysql` |grep libz
libz.so.1 => /lib/libz.so.1 (0xb7f2d000)
Comment 4 Adir Abraham 2005-07-22 12:09:32 UTC
(In reply to comment #2)
> mysql-4.1.13-r1.ebuild
> mysql-5.0.9_beta-r2.ebuild
> now depend upon >=sys-libs/zlib-1.2.2-r1 (after CVS propagate itself)
> 
> these two ebuild force mysql to link agains external zlib.


Hmm.. assuming that >=sys-libs/zlib-1.2.3 is considered the most safe at the
moment, according to http://www.gentoo.org/security/en/glsa/glsa-200507-19.xml -
 shouldn't mysql-4.1.13 and mysql-5.0.9_beta depend on >=sys-libs/zlib-1.2.3 to
be on the safest side?
Comment 5 David D. Huff Jr. 2005-07-22 13:43:24 UTC
Might have been a good idea to leave the mysql-5.0.9_beta-r1.emerge, it kind of
wrinkles people to find that the package.unmask =dev-db/mysql-5.0.9_beta-r1 has
now been downgraded to mysql-4.0.25. Ooh the file corruption.
Comment 6 Francesco R. (RETIRED) gentoo-dev 2005-07-23 05:03:57 UTC
to comment #4 true, you need sys-libs/zlib-1.2.3 , if you have an older version
upgrade now. My bad.
You just need to upgrade zlib not mysql btw and glsa cover zlib. This said, I'm
keeping time to test mysql on new zlib, to not do a doble mistake.

to comment #5 that's not so bad. That force people to look at what's happened.
Being this a security update (and 4.1 , 5.0 still package masked) I've chosen to
remove the old one. Hope this has not wasted too much user time, it's precious.
If so, my apologies to all.
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-23 11:04:12 UTC
(In reply to comment #3)
> even mysql-4.0.24-r2 links against the external zlib by default for us (at 
> least on my test box), so I don't see any problem for us.
> 
> foo ~ # ldd `which mysql` |grep libz
> libz.so.1 => /lib/libz.so.1 (0xb7f2d000)
> 

If mysql ships with its own zlib, it's better to rm -rf it in src_unpack, so it
can't even be used by accident. At least that's how I handle such issues to be
on the safe side in case some stupid configure script falls back to internal libs.
Comment 8 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-07-25 11:31:22 UTC
According to vivo we always link against system zlib -> Closing as INVALID.