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

Filename Description Type Creator Created Size Actions
test.xwd xwd DoS testcase application/octet-stream Tavis Ormandy (RETIRED) 2005-05-05 13:32 0000 105 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 90423 depends on: Show dependency tree
Bug 90423 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-25 12:54 0000
Affected version: 6.x up to and including 6.2.1
Vendor status: Fixed version released (6.2.2)

Remote exploitation of a heap overflow vulnerability could allow execution of
arbitrary code or couse denial of service.

http://www.overflow.pl/adv/imheapoverflow.txt

------- Comment #1 From Sune Kloppenborg Jeppesen 2005-04-25 12:56:57 0000 -------
graphics please advise.

------- Comment #2 From Jakub Moc (RETIRED) 2005-04-26 04:51:23 0000 -------
*** Bug 90479 has been marked as a duplicate of this bug. ***

------- Comment #3 From Karol Wojtaszek (RETIRED) 2005-04-26 13:02:48 0000 -------
Bumped to 6.2.2.0 in portage

------- Comment #4 From Sune Kloppenborg Jeppesen 2005-04-26 21:57:23 0000 -------
Arches please test and mark stable.

Note that Perlmagick is now part of Imagemagick so you only need to mark one package stable.

------- Comment #5 From Markus Rothe 2005-04-27 02:11:39 0000 -------
stable on ppc64

------- Comment #6 From Bryan Østergaard (RETIRED) 2005-04-27 02:50:06 0000 -------
Stable on alpha + ia64.

------- Comment #7 From Herbie Hopkins (RETIRED) 2005-04-27 03:05:00 0000 -------
Stable on amd64

------- Comment #8 From Luca Barbato 2005-04-27 04:23:09 0000 -------
ppc stable

------- Comment #9 From Thierry Carrez (RETIRED) 2005-04-27 04:59:53 0000 -------
Apparently this is not exploitable to execute code so it might be declassified
from vulnerability to a simple bug. Waiting as our auditors are busy scouting
the code for exploitable ones.

------- Comment #10 From Olivier Crete 2005-04-27 08:04:16 0000 -------
Shouldn't the imagemagick ebuild block (using DEPEND) perlmagick instead of
doing it in pkg_setup() ??

------- Comment #11 From Gustavo Zacarias (RETIRED) 2005-04-27 08:35:58 0000 -------
sparc stable.

------- Comment #12 From Olivier Crete 2005-04-27 08:46:16 0000 -------
stable on x86

------- Comment #13 From Karol Wojtaszek (RETIRED) 2005-04-27 11:15:20 0000 -------
tester: we want to inform users about this change, perlmagick will be soon
removed from portage.

------- Comment #14 From Michael Hanselmann (hansmi) (RETIRED) 2005-04-27 11:58:40 0000 -------
Stable on hppa.

------- Comment #15 From Tobias Sager 2005-04-28 07:55:25 0000 -------
Imagemagick should block perlmagick in DEPEND not pkg_setup().
See comment 10.

------- Comment #16 From Michael Cummings (RETIRED) 2005-04-28 13:21:02 0000 -------
iirc, the logic was that we wanted to be able to explain why it was blocked
(ie, via some nice ewarns) than merely to show up with a B and no explanation.

------- Comment #17 From Sune Kloppenborg Jeppesen 2005-05-02 22:46:40 0000 -------
Taviso/tigger any news on this one?

------- Comment #18 From Tavis Ormandy (RETIRED) 2005-05-03 02:56:13 0000 -------
There are a few crashes, but nothing that looks serious yet. There is a DoS in
the xwd decoder:

in this loop, the mask is set in the image and can be set to zero:

 346         /*
 347           Determine shift and mask for red, green, and blue.
 348         */
 349         red_mask=ximage->red_mask;
 350         red_shift=0;
 351         while ((red_mask & 0x01) == 0)
 352         {
 353           red_mask>>=1;
 354           red_shift++;
 355         }

(and the same below for green and blue), which could potentially be a nuisance
for web-apps or similar that rely on im for image processing.

------- Comment #19 From Sune Kloppenborg Jeppesen 2005-05-03 09:52:11 0000 -------
Arches please mark stable.

------- Comment #20 From Tavis Ormandy (RETIRED) 2005-05-05 13:32:22 0000 -------
Created an attachment (id=58154) [details]
xwd DoS testcase

testcase for XWD DoS.

------- Comment #21 From Sune Kloppenborg Jeppesen 2005-05-05 22:44:34 0000 -------
As I understand it, this is NOT fixed by the current release -> back to
upstream status.

Btw: Taviso, has upstream been notified?

------- Comment #22 From Tavis Ormandy (RETIRED) 2005-05-13 02:18:34 0000 -------
PNM Heap overflow is being re-classified as a non-security bug, remaining issue
is the xwd DoS.

------- Comment #23 From Thierry Carrez (RETIRED) 2005-05-13 02:36:59 0000 -------
XWD DoS issue fixed in upstream 6.2.2-3
graphics team, please bump

------- Comment #24 From Karol Wojtaszek (RETIRED) 2005-05-15 09:00:38 0000 -------
imagemagick-6.2.2.3 in portage

------- Comment #25 From Thierry Carrez (RETIRED) 2005-05-15 14:05:27 0000 -------
Arches, please test and mark stable
Target KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"

------- Comment #26 From Michael Hanselmann (hansmi) (RETIRED) 2005-05-15 14:57:11 0000 -------
Stable on ppc. (it even fixes those funny colors with import!)

------- Comment #27 From René Nussbaumer 2005-05-15 15:51:43 0000 -------
Stable on hppa

------- Comment #28 From Jan Brinkmann (RETIRED) 2005-05-15 16:01:18 0000 -------
stable on amd64

------- Comment #29 From Olivier Crete 2005-05-15 17:28:54 0000 -------
on x86, I get a sigfpe with the attached test.xwd.. that does not feel ok to
me..

------- Comment #30 From Jason Wever (RETIRED) 2005-05-15 17:46:02 0000 -------
SPARC me like a hurricane

------- Comment #31 From Markus Rothe 2005-05-16 01:14:31 0000 -------
stable on ppc64

------- Comment #32 From Bryan Østergaard (RETIRED) 2005-05-16 05:13:43 0000 -------
Stable on alpha + ia64.

------- Comment #33 From Sune Kloppenborg Jeppesen 2005-05-16 13:07:52 0000 -------
Karol please see comment #29

------- Comment #34 From Olivier Crete 2005-05-16 17:26:35 0000 -------
btw, I get the same result on amd64 as comment #29

------- Comment #35 From Thierry Carrez (RETIRED) 2005-05-17 01:08:33 0000 -------
The security bug was that processing the testcase image would eat your CPU for
a
few minutes. If it just crashes, it's no longer an issue... That said, I
thought
that using Tavis patch it would fail more nicely.

------- Comment #36 From Sune Kloppenborg Jeppesen 2005-05-19 00:28:49 0000 -------
[09:26:46] <@taviso> jaervosz: it wasnt my patch, i just reported the issue and
suggested catching the condition..that's how upstream fixed it :) sigfpe isnt a
security problem, no different from feeding it an invalid image.

------- Comment #37 From Olivier Crete 2005-05-19 06:14:06 0000 -------
Not that its a good fix.. but I'm marking stable anyway ;)

------- Comment #38 From Thierry Carrez (RETIRED) 2005-05-21 07:52:47 0000 -------
Ready for a combined GLSA with graphicsmagick

------- Comment #39 From Thierry Carrez (RETIRED) 2005-05-21 08:49:22 0000 -------
GLSA 200505-16

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