Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 88742
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Thierry Carrez (RETIRED) <koon@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
xv-various-sec.diff quick patch for some issues patch Tavis Ormandy (RETIRED) 2005-04-11 15:37 0000 12.69 KB Details | Diff
xv-3.10a-yaos.diff patch cleaned up by werner fink of suse. patch Tavis Ormandy (RETIRED) 2005-04-13 06:32 0000 15.08 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 88742 depends on: Show dependency tree
Bug 88742 blocks:

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


Not eligible to see or edit group visibility for this bug.






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


Description:   Opened: 2005-04-11 09:13 0000
A new XV Jumbo-patches version has been released that fixes security issues:

20050410:
 - fix for YCbCr oversaturated-green bug(s) in TIFF decoder (GRR)
 - provisional fix for contiguous tiled TIFFs with bottom-* orientation (GRR)
 - fixes for gcc 3.3 -Wall warnings (GRR)
 - fix for incorrect 16/24-bit display of xwd dumps (SJT)
 - *SECURITY* fix for multiple input-validation bugs (OpenBSD/SuSE, Gentoo, GRR)
   (this also completes the partial mktemp() security fix listed above)
 - fix for (probable) 24-bit endianness bug in fixpix code (GRR)

We should include those fixes in our XV patches...

------- Comment #1 From Thierry Carrez (RETIRED) 2005-04-11 09:15:01 0000 -------
*** Bug 86894 has been marked as a duplicate of this bug. ***

------- Comment #2 From Thierry Carrez (RETIRED) 2005-04-11 09:15:39 0000 -------
Good luck, Tavis :)

------- Comment #3 From Tavis Ormandy (RETIRED) 2005-04-11 15:30:11 0000 -------
...

------- Comment #4 From Tavis Ormandy (RETIRED) 2005-04-11 15:36:36 0000 -------
Additional issues discovered while merging Greg's patches:

xvpds.c: at least a few dozen obviously exploitable overflows in the processing
    and manipulation of pds comments (starting around line ~400, you can't
    miss them, sscanf(), strcat() (line ~452, a few more starting ~650), etc)
xvpds.c: format string issues, via SetISTR() (around line ~665)
xvtiff.c: format string issue parsing errors returned from tiff
xvps.c: insufficient shell metacharacter protection from malformed filenames
    (if invoking xv via mailcap, pluggerrc, etc).
xv.c: ditto
xvdir.c: uses system ("rm -rf %s") without quoting.

My confidence in the code is fairly low, these issues were easy to spot, and spending lots of time fixing proprietary software for free isnt much fun (no matter how much i'm fond of the package).

There's probably more, a patch is attached for the things I could see, should we consider masking it? 

------- Comment #5 From Tavis Ormandy (RETIRED) 2005-04-11 15:37:30 0000 -------
Created an attachment (id=56036) [details]
quick patch for some issues

------- Comment #6 From Tavis Ormandy (RETIRED) 2005-04-13 06:32:24 0000 -------
Created an attachment (id=56161) [details]
patch cleaned up by werner fink of suse.

------- Comment #7 From Tavis Ormandy (RETIRED) 2005-04-15 04:51:32 0000 -------
xv-3.10a-r11 has been committed.

------- Comment #8 From Thierry Carrez (RETIRED) 2005-04-15 05:13:20 0000 -------
Arches, please test and mark stable (if stable)

------- Comment #9 From Jan Brinkmann (RETIRED) 2005-04-15 06:26:35 0000 -------
stable on amd64

------- Comment #10 From Gustavo Zacarias (RETIRED) 2005-04-15 06:58:26 0000 -------
sparc done.

------- Comment #11 From Michael Hanselmann (hansmi) (RETIRED) 2005-04-15 13:12:35 0000 -------
Stable on ppc.

------- Comment #12 From Markus Rothe 2005-04-16 00:35:14 0000 -------
stable on ppc64

------- Comment #13 From Greg Roelofs 2005-04-17 10:01:10 0000 -------
Er...judging by the massive spike in bandwidth on my site on 2005-04-15 
(virtually all of which was via the same version of wget (1.9.1) and with
no referrer), I'm guessing y'all might be "emerging" directly off of the
bzip2 archive there.  That's OK--it probably should have occurred to me
that this might happen--but insofar as it's about to start costing me
actual money, it will break as soon as freshmeat updates their links.
The new location is on SourceForge, and the links are already updated
on the URL listed above, so feel free to change yours accordingly at
any time.

(And if it wasn't you, then somebody else is going to be in for a surprise
this fine Sunday morning. ;-) )

Thanks, 
  Greg

P.S.  http://pobox.com/~newt/greg_xv.html is a safer long-term URL.

------- Comment #14 From Tavis Ormandy (RETIRED) 2005-04-17 10:27:33 0000 -------
Greg: Apologies, fetching from the upstream distribution site is only supposed
to be a last resort, we have a mirroring system that should automatically fetch
the tarball and prevent that from happening, apparently there was a lag before
that kicked in and caused a bandwidth spike for you.

I've manually moved it onto our mirror system, so that should stop very soon,
very sorry about that :)

------- Comment #15 From Greg Roelofs 2005-04-17 11:39:28 0000 -------
Not a problem, Tavis, but thanks for the quick response anyway!

------- Comment #16 From Bryan Østergaard (RETIRED) 2005-04-18 14:39:14 0000 -------
Stable on alpha.

------- Comment #17 From Bryan Østergaard (RETIRED) 2005-04-18 17:17:15 0000 -------
Stable on ia64."

------- Comment #18 From Sune Kloppenborg Jeppesen 2005-04-18 22:14:00 0000 -------
GLSA 200504-17

hppa, mips, ppc-macos please remember to mark stable to benifit from GLSA.

------- Comment #19 From Lina Pezzella (RETIRED) 2005-04-19 07:48:04 0000 -------
ppc-macos would love to mark it stable, but that would be assuming it works
first, which it does not.
We're working on it.

------- Comment #20 From Lina Pezzella (RETIRED) 2005-05-28 09:21:29 0000 -------
Marked stable. Sorry about the delay - our strategic lead had indicated that he
would take care of this.

------- Comment #21 From René Nussbaumer 2005-05-31 13:16:48 0000 -------
Stable on hppa

------- Comment #22 From Fabian Groffen 2006-05-23 11:18:37 0000 -------
marked xv-3.10a-r12 ppc-macos stable

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug