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

Filename Description Type Creator Created Size Actions
jasper-1.900.1-CVE-2008-3520+1+2.patch jasper-1.900.1-CVE-2008-3520+1+2.patch patch Robert Buchholz 2008-08-19 09:30 0000 26.85 KB Details | Diff
ebuild.patch Patch for jasper-1.900.1-r1.ebuild patch Patrick Kursawe 2008-08-19 19:19 0000 280 bytes Details | Diff
jasper-1.900.1-r1.ebuild jasper-1.900.1-r1.ebuild text/plain Jeroen Roovers 2008-08-19 20:50 0000 1.35 KB Details
jasper-1.900.1-r2.ebuild jasper-1.900.1-r2.ebuild text/plain Robert Buchholz 2008-08-19 20:53 0000 1.35 KB Details
jasper-1.900.1-CVE-2008-3520-redhat-additions.patch jasper-1.900.1-CVE-2008-3520-redhat-additions.patch patch Robert Buchholz 2008-10-30 23:29 0000 8.02 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 222819 depends on: 245545 Show dependency tree
Bug 222819 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: 2008-05-19 14:46 0000
Marc Espie and Christian Weisgerber have discoverd several integer overflows in
libjasper

** Please note that this issue is confidential at the moment and no information
should be disclosed until it is made public **

------- Comment #1 From Patrick Kursawe 2008-05-20 07:15:03 0000 -------
What exactly am I supposed to do about this without any further
information/patches/updated versions available? I am a bit irritated.

------- Comment #2 From Pierre-Yves Rofes 2008-05-20 21:35:01 0000 -------
(In reply to comment #1)
> What exactly am I supposed to do about this without any further
> information/patches/updated versions available? I am a bit irritated.
> 

sorry, the CC was just to inform you. For the moment, patches have been
provided on vendor-sec, but some of them are *BSD specific (e.g they use
strlcat()), so they'll need some additional work to make them apply on Linux.

------- Comment #3 From Robert Buchholz 2008-08-19 09:29:19 0000 -------
The following analysis was provided by Ludwig Nussel of Suse/Novell:

CVE-2008-3520:
- patches change all occurrences of malloc(a*b) with
  jas_alloc2(a,b). Hard to tell whether any are actually
  exploitable. Some seem to multiply a value from the file with the
  size of a structure indeed. The ones that multiply two variables
  seem to be harmless due to 16 or only 8 bit values. I talked to
  Marc Espie but he is not interested in investigating it further.
  So unless someone wants to spend a lot of time analyzing the
  context of every multiplication patching all such places seems to
  be a logical defensive measurement.

CVE-2008-3521:
- tmp race in jas_stream_tmpfile(), jas_stream.c

CVE-2008-3522:
- vsprintf buffer overflow in jas_stream_printf(), jas_stream.c. Potentially
  dangerous. Called from mif_hdr_put() where it's not obvious to me
  whether there is a limit on the passed string.

------- Comment #4 From Robert Buchholz 2008-08-19 09:30:00 0000 -------
Created an attachment (id=163282) [details]
jasper-1.900.1-CVE-2008-3520+1+2.patch

Relevant portions of the patches shipped by OpenBSD

------- Comment #5 From Robert Buchholz 2008-08-19 09:31:57 0000 -------
Patrick, we are currently discussing whether the patch and information about
the vulnerabilities should be embargoed and until when. Please keep them
confidential until this discussion has yielded a decision.
In the meantime, please test the patch and prepare an ebuild and attach the
ebuild to this bug. We can do prestable testing if we go for an extended
embargo.

------- Comment #6 From Patrick Kursawe 2008-08-19 19:19:09 0000 -------
Created an attachment (id=163324) [details]
Patch for jasper-1.900.1-r1.ebuild

The patch seems to work straightforward - see attachment.

------- Comment #7 From Robert Buchholz 2008-08-19 19:46:42 0000 -------
Arch Security Liaisons, please test the attached ebuild and report it stable on
this bug.
Target keywords : "alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"

CC'ing current Liaisons:
   alpha : yoswink, armin76
   amd64 : keytoaster, tester
    hppa : jer
     ppc : dertobi123
   ppc64 : corsair
   sparc : fmccor
     x86 : maekke, armin76

------- Comment #8 From Jeroen Roovers 2008-08-19 20:22:57 0000 -------
Ugh. Please post a full working ebuild next time -- The PV in the
`ebuild.patch' should be PN, or the security patch shouldn't have PN in the
name...

------- Comment #9 From Jeroen Roovers 2008-08-19 20:50:53 0000 -------
Created an attachment (id=163328) [details]
jasper-1.900.1-r1.ebuild

HPPA is OK.

------- Comment #10 From Jeroen Roovers 2008-08-19 20:52:10 0000 -------
(In reply to comment #8)
 Ugh. Please post a full working ebuild next time -- The PV in the
- `ebuild.patch' should be PN, or the security patch shouldn't have PN in the
+ `ebuild.patch' should be P, or the security patch shouldn't have PN in the

The attached ebuild fixes that.

------- Comment #11 From Robert Buchholz 2008-08-19 20:53:10 0000 -------
Created an attachment (id=163329) [details]
jasper-1.900.1-r2.ebuild

Try this :-)

------- Comment #12 From Robert Buchholz 2008-08-19 20:54:07 0000 -------
oops, I lost that race. Sorry

------- Comment #13 From Patrick Kursawe 2008-08-20 07:29:40 0000 -------
(In reply to comment #8)
> Ugh. Please post a full working ebuild next time -- The PV in the
> `ebuild.patch' should be PN, or the security patch shouldn't have PN in the
> name...

Sorry for the inconvenience. 

------- Comment #14 From Jose Luis Rivero (yoswink) 2008-08-20 08:41:41 0000 -------
Report for alpha:
 - compiles just fine
 - imagemagick is able to use the library
 - jasper is able to change the format between jpeg and bmp

green light here.

------- Comment #15 From Markus Meier 2008-08-20 17:51:02 0000 -------
looks good on amd64/x86.

------- Comment #16 From Markus Rothe 2008-08-20 22:39:54 0000 -------
looks good on ppc64

------- Comment #17 From Raúl Porcel 2008-08-26 15:04:48 0000 -------
Looks good on ia64/sparc

------- Comment #18 From Robert Buchholz 2008-09-14 11:34:04 0000 -------
it's public

------- Comment #19 From Robert Buchholz 2008-09-14 11:35:09 0000 -------
Sorry, I forgot we haven't been stabling in-tree. Please commit straight to
stable with the keywords gathered.

------- Comment #20 From Robert Buchholz 2008-10-04 18:35:39 0000 -------
*jasper-1.900.1-r2 (04 Oct 2008)

  04 Oct 2008; Robert Buchholz <rbu@gentoo.org> jasper-1.701.0.ebuild,
  +jasper-1.900.1-r2.ebuild:
  Fix multiple integer overflows (bug #222819), remove mips stable keyword.

------- Comment #21 From Robert Buchholz 2008-10-04 18:36:40 0000 -------
Arches, please test and mark stable:
=media-libs/jasper-1.900.1-r2
Target keywords : "alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"
Already stabled : "alpha amd64 hppa ia64 ppc64 sparc x86"
Missing keywords: "arm ppc s390 sh"

------- Comment #22 From Tobias Scherbaum 2008-10-11 16:52:00 0000 -------
ppc stable

------- Comment #23 From Tobias Heinlein 2008-10-13 18:50:29 0000 -------
GLSA request filed.

------- Comment #24 From Robert Buchholz 2008-10-30 23:29:11 0000 -------
Let's recap this:
CVE-2008-3521 is not actually an issue, as Tomas Hoger pointed out in
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2008-3521

CVE-2008-3520: Tomas Hoger pointed out on vendor-sec that the patch that was
applied by us does not contain all needed jas_malloc -> jas_alloc2 changes. It
also contains some unneeded hunks, but we can live with this. I'll attach the
additional hunks we need to apply.

@Phosphan, can you apply those in an ebuild bump (or refresh the patch we ship
with those additions). Thanks.

------- Comment #25 From Robert Buchholz 2008-10-30 23:29:42 0000 -------
Created an attachment (id=170366) [details]
jasper-1.900.1-CVE-2008-3520-redhat-additions.patch

------- Comment #26 From Robert Buchholz 2008-11-26 23:35:09 0000 -------
phosphan, ping

------- Comment #27 From Patrick Kursawe 2008-11-27 09:34:23 0000 -------
(In reply to comment #26)
> phosphan, ping

Thanks for pinging, did not notice this due to email overload after being
absent for one month. Hope I will find the time to do this soon. Sorry.

------- Comment #28 From Patrick Kursawe 2008-12-10 10:48:32 0000 -------
Joined both patches and the fix from bug #245545 in -r3. Please check and
declare it stable soon since the older versions are either insecure or broken.

------- Comment #29 From Pierre-Yves Rofes 2008-12-11 20:17:17 0000 -------
Arches, please test and mark stable media-libs/jasper-1.900.1-r3. Target
keywords: "alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd
x86 ~x86-fbsd"

------- Comment #30 From Brent Baude 2008-12-11 21:27:32 0000 -------
ppc64 done

------- Comment #31 From Tobias Scherbaum 2008-12-13 12:54:13 0000 -------
ppc stable

------- Comment #32 From Tobias Klausmann 2008-12-13 15:18:32 0000 -------
Stable on alpha.

------- Comment #33 From Friedrich Oslage 2008-12-13 22:05:56 0000 -------
sparc stable

------- Comment #34 From Markus Meier 2008-12-14 12:44:59 0000 -------
amd64/x86 stable

------- Comment #35 From Jeroen Roovers 2008-12-14 21:03:00 0000 -------
Stable for HPPA.

------- Comment #36 From Raúl Porcel 2008-12-16 10:50:01 0000 -------
arm/ia64/sh stable

------- Comment #37 From Robert Buchholz 2008-12-16 22:09:19 0000 -------
GLSA 200812-18, thanks.

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