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

Filename Description Type Creator Created Size Actions
exiv2-CVE-2007-6353.patch exiv2-CVE-2007-6353.patch patch Robert Buchholz 2007-12-15 00:41 0000 3.63 KB Details | Diff
CVE-2007-6353.patch Fix static_cast usage patch İsmail "cartman" Dönmez 2007-12-15 10:05 0000 3.65 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 202351 depends on: Show dependency tree
Bug 202351 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: 2007-12-15 00:40 0000
Meder Kydyraliev (Google Security) reported an integer overflow in exiv2.

Attaching upstream committed patch, one line change was necessary to get it to
apply to 0.13.

Stefan, please advise.

------- Comment #1 From Robert Buchholz 2007-12-15 00:41:54 0000 -------
Created an attachment (id=138527) [details]
exiv2-CVE-2007-6353.patch

------- Comment #2 From İsmail "cartman" Dönmez 2007-12-15 10:04:21 0000 -------
That patch won't compile due to wrong usage of static_cast, I will upload the
fixed patch.

------- Comment #3 From İsmail "cartman" Dönmez 2007-12-15 10:05:04 0000 -------
Created an attachment (id=138536) [details]
Fix static_cast usage

------- Comment #4 From Stefan Briesenick 2007-12-15 15:29:55 0000 -------
ok, I have a look at it and try to commit that fix asap. Thanks for reporting.

------- Comment #5 From Stefan Briesenick 2007-12-15 15:40:43 0000 -------
one question: is this bug already fixed in exiv2-0.15?

if so, then I would suggest to get 0.15 stable and remove 0.13. IMHO that would
be the best solution.

------- Comment #6 From Robert Buchholz 2007-12-15 18:13:21 0000 -------
(In reply to comment #5)
> one question: is this bug already fixed in exiv2-0.15?
> 
> if so, then I would suggest to get 0.15 stable and remove 0.13. IMHO that would
> be the best solution.

No, it is not. The patch should apply to 0.15 though. If you are more
comfortable with bumping to an actual release than patching, you could ask
upstream for a security release.

------- Comment #7 From Robert Buchholz 2007-12-15 18:13:46 0000 -------
Oh, and Ismail - thanks for the corrected patch!

------- Comment #8 From İsmail "cartman" Dönmez 2007-12-15 18:38:55 0000 -------
(In reply to comment #7)
> Oh, and Ismail - thanks for the corrected patch!

Thats my pleasure. 

------- Comment #9 From Stefan Briesenick 2007-12-15 19:10:35 0000 -------
ok, currently we have 3 versions in portage. 0.13 which is stable and 0.14/0.15
which are testing. So I will remove 0.14 and patch 0.13.

But what to do with 0.15? Is there a patch already or can I use the 0.13 patch
also?

------- Comment #10 From Robert Buchholz 2007-12-16 00:14:40 0000 -------
(In reply to comment #9)
> ok, currently we have 3 versions in portage. 0.13 which is stable and 0.14/0.15
> which are testing. So I will remove 0.14 and patch 0.13.
> 
> But what to do with 0.15? Is there a patch already or can I use the 0.13 patch
> also?

Since src/exif.cpp did not change at all between 0.13 and 0.15, whichever you
patch is fine. There are several options, it's your choice as maintainer:

1) Patch 0.13, remove 0.14 and 0.15.
2) Patch 0.13, patch 0.15 with 0.13 staying stable. (remove 0.14 after that)
3) Patch 0.15 with 0.15 going stable. (remove 0.13 and 0.14 after that)

I'd go with (3) if you would stable 0.15 anyway soon, otherwise (2). (1) if you
are lazy, but it will mean ~arch user's are going to downgrade their copies.

------- Comment #11 From Stefan Briesenick 2007-12-16 01:26:07 0000 -------
ok, what I did:

1. removed 0.14 completely
2. revbumped 0.15 to 0.15-1 and removed 0.15
3. revbumped 0.13 to 0.13-1 and switched to testing

since the patch looks sane, it should be easy to stablize 0.13-r1 after a few
tests. Furthermore, we should stabalize 0.15-r1 afterwards.

------- Comment #12 From Robert Buchholz 2007-12-16 13:26:50 0000 -------
(In reply to comment #8)
> (In reply to comment #7)
> > Oh, and Ismail - thanks for the corrected patch!
> 
> Thats my pleasure. 

Did you contact upstream about the issue in the patch or does this only affect
the releases?

------- Comment #13 From İsmail "cartman" Dönmez 2007-12-16 13:29:25 0000 -------
(In reply to comment #12)
> (In reply to comment #8)
> > (In reply to comment #7)
> > > Oh, and Ismail - thanks for the corrected patch!
> > 
> > Thats my pleasure. 
> 
> Did you contact upstream about the issue in the patch or does this only affect
> the releases?

I didn't contact upstream as I guessed they would fix it once it fails to
compile as the error is obvious.

------- Comment #14 From Robert Buchholz 2007-12-16 13:44:09 0000 -------
(In reply to comment #13)
> I didn't contact upstream as I guessed they would fix it once it fails to
> compile as the error is obvious.

Hm, the trunk compiles fine for me. However, you are right, on the releases,
the patch won't work.

------- Comment #15 From Robert Buchholz 2007-12-16 13:44:31 0000 -------
Arches, please test and mark stable media-gfx/exiv2-0.13-r1.
Target keywords : "alpha amd64 ia64 ppc sparc x86"

------- Comment #16 From Markus Meier 2007-12-16 14:22:49 0000 -------
x86 stable

------- Comment #17 From Ferris McCormick 2007-12-16 16:50:13 0000 -------
Stable for sparc.  Everything as expected.

------- Comment #18 From Raúl Porcel 2007-12-17 11:07:07 0000 -------
alpha/ia64 stable

------- Comment #19 From Tobias Scherbaum 2007-12-17 19:01:49 0000 -------
ppc stable

------- Comment #20 From Peter Weller 2007-12-19 15:39:32 0000 -------
amd64 stable

------- Comment #21 From Tobias Heinlein 2007-12-21 23:05:29 0000 -------
All arches done, GLSA request filed.

------- Comment #22 From Pierre-Yves Rofes 2007-12-29 13:51:03 0000 -------
GLSA 200712-16

------- Comment #23 From Peter Volkov 2008-03-06 09:59:05 0000 -------
Does not affect current (2008.0) release. Removing release.

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