First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 229885
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ulrich Müller <ulm@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 229885 depends on: Show dependency tree
Show dependency graph
Bug 229885 blocks:

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-06-28 10:02 0000
The tarball of sci-astronomy/xephem-3.7.3 contains bundled copies of zlib-1.2.2
and openmotif-2.2.2 (not sure if the latter is actually used).

These are vulnerable to (at least):
CAN-2005-1849, bug 99751
CAN-2005-2096, bug 97547, bug 98121
CVE-2005-3964, bug 114234

------- Comment #1 From Robert Buchholz 2008-06-29 16:13:49 0000 -------
xephem should be made to link to all system provided libraries, unless there is
a very good reason not to.

------- Comment #2 From Markus Dittrich 2008-06-30 10:18:13 0000 -------
Hi Robert,

Incidentally, xephem-3.7.3 does not link against any of the
libraries it ships with (motif, jpeg, png, libz)

# ldd xephem
        ...
        libXm.so.4 => /usr/lib/libXm.so.4 (0x00007f6664b82000)
        ...
        libz.so.1 => /lib/libz.so.1 (0x00007f6663dce000)
        ...
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00007f6661d22000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00007f6661afc000)
        ...

Unfortunately, this state of affairs isn't very clear from looking at
the ebuild and I will add a few pieces to make it more apparent.

I hope this is acceptable.

Thanks,
Markus

------- Comment #3 From Robert Buchholz 2008-06-30 11:28:56 0000 -------
Oh, I only looked at the compilation output and saw that the libraries are
compiled. To avoid future compliations, can you edit the ebuild so that the
libraries are removed in src_unpack?

------- Comment #4 From Markus Dittrich 2008-06-30 12:37:18 0000 -------
I've added

+       # make sure we use system libs not the ones that
+       # ship with the xephem tarball
+       rm -fr libjpegd/ libpng/ libz/ libXm/ \
+               || die "Failed to remove unneeded libs"
+       epatch "${FILESDIR}"/${P}-use-system-lib.patch

which removes the libs and fixes the Makefile to make
sure we link against the system libs instead.

Thanks,
Markus

------- Comment #5 From Ulrich Müller 2008-06-30 12:55:45 0000 -------
(In reply to comment #3)
> Oh, I only looked at the compilation output and saw that the libraries are
> compiled.

I must admit that I filed the bug when I saw the -I../../libz and -L../../libz
compiler flags in the build.log, as well as a libz/libz.a library.

Sorry for the false alarm.

------- Comment #6 From Markus Dittrich 2008-06-30 13:33:53 0000 -------
(In reply to comment #5)
> Sorry for the false alarm.
> 

That's absolutely no problem and I very much appreciated your 
note. I'd rather have a few false alarms than missing 
a security issue. The tarball (and ebuild) clearly did contain
suspicious stuff, but hopefully the new code added to the ebuild
makes things clearer.

Thanks,
Markus

------- Comment #7 From Robert Buchholz 2008-07-03 01:14:25 0000 -------
It was not a false alarm, since it did link in the libs from the static
archives. Is 3.7.3 good for stabling now?

The file indimenu.c uses libz to decompress "BLOB" data. Markus, do you know
what that is?

------- Comment #8 From Markus Dittrich 2008-07-03 13:15:16 0000 -------
(In reply to comment #7)
> It was not a false alarm, since it did link in the libs from the static
> archives. Is 3.7.3 good for stabling now?
> 

From my point of view, yes. However, I am not a user of xephem so if anybody
from sci has any concerns please speak up.


> The file indimenu.c uses libz to decompress "BLOB" data. Markus, do you know
> what that is?

As far as I know, xephem has the ability to interface via the INDI API
[1] to telescopes and such. The BLOBs are binary data which are part of
the transfered data structure, and probably consists of libz compressed 
images and such. Maybe somebody more versed at astronomy can correct me
should I be wrong. 

best,
Markus

[1] http://indi.sourceforge.net/index.php/Developing_INDI_drivers

------- Comment #9 From Sébastien Fabbro 2008-07-03 15:42:44 0000 -------
(In reply to comment #8)
> (In reply to comment #7)
> > It was not a false alarm, since it did link in the libs from the static
> > archives. Is 3.7.3 good for stabling now?
> > 
> 
> From my point of view, yes. However, I am not a user of xephem so if anybody
> from sci has any concerns please speak up.

Fine with me (sorry about the mess, I was the one bumping to 3.7.3, although
3.7.2 has probably similar problems).

> 
> > The file indimenu.c uses libz to decompress "BLOB" data. Markus, do you know
> > what that is?
> 
> As far as I know, xephem has the ability to interface via the INDI API
> [1] to telescopes and such. The BLOBs are binary data which are part of
> the transfered data structure, and probably consists of libz compressed 
> images and such. Maybe somebody more versed at astronomy can correct me
> should I be wrong. 

I think it's what it does. (I play with astronomical images very often but
never used BLOBs). Anyway, the binary indiserver seems to link properly to the
system libz now.

------- Comment #10 From Robert Buchholz 2008-07-03 16:18:15 0000 -------
Rerating C3 as it seems to me the vulnerable libraries are not used to process
untrusted data.

Arches, please test and mark stable:
=sci-astronomy/xephem-3.7.3
Target keywords : "amd64 ppc ppc64 x86"

------- Comment #11 From Christian Faulhammer 2008-07-04 07:32:16 0000 -------
x86 stable

------- Comment #12 From Tobias Scherbaum 2008-07-05 11:17:15 0000 -------
ppc stable

------- Comment #13 From Brent Baude 2008-07-05 14:08:32 0000 -------
ppc64 done

------- Comment #14 From Ulrich Müller 2008-07-05 14:52:48 0000 -------
I've reported the issue upstream (xephem@clearskyinstitute.com).

------- Comment #15 From Markus Meier 2008-07-05 15:58:06 0000 -------
amd64 stable, all arches done.

------- Comment #16 From Pierre-Yves Rofes 2008-07-06 18:18:18 0000 -------
glsa vote ... I vote NO as per comment #10

------- Comment #17 From Robert Buchholz 2008-07-06 21:37:26 0000 -------
NO, closing

First Last Prev Next    No search results available      Search page      Enter new bug