Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202351 - media-gfx/exiv2 < 0.13-r1 Integer overflow (CVE-2007-6353)
Summary: media-gfx/exiv2 < 0.13-r1 Integer overflow (CVE-2007-6353)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Security
URL: http://dev.robotbattle.com/mantis/vie...
Whiteboard: B2 [glsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-15 00:40 UTC by Robert Buchholz (RETIRED)
Modified: 2008-03-06 09:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
exiv2-CVE-2007-6353.patch (exiv2-CVE-2007-6353.patch,3.63 KB, patch)
2007-12-15 00:41 UTC, Robert Buchholz (RETIRED)
no flags Details | Diff
Fix static_cast usage (CVE-2007-6353.patch,3.65 KB, patch)
2007-12-15 10:05 UTC, İsmail Dönmez
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Buchholz (RETIRED) gentoo-dev 2007-12-15 00:40:56 UTC
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 Robert Buchholz (RETIRED) gentoo-dev 2007-12-15 00:41:54 UTC
Created attachment 138527 [details, diff]
exiv2-CVE-2007-6353.patch
Comment 2 İsmail Dönmez 2007-12-15 10:04:21 UTC
That patch won't compile due to wrong usage of static_cast, I will upload the fixed patch.
Comment 3 İsmail Dönmez 2007-12-15 10:05:04 UTC
Created attachment 138536 [details, diff]
Fix static_cast usage
Comment 4 Stefan Briesenick (RETIRED) gentoo-dev 2007-12-15 15:29:55 UTC
ok, I have a look at it and try to commit that fix asap. Thanks for reporting.
Comment 5 Stefan Briesenick (RETIRED) gentoo-dev 2007-12-15 15:40:43 UTC
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 Robert Buchholz (RETIRED) gentoo-dev 2007-12-15 18:13:21 UTC
(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 Robert Buchholz (RETIRED) gentoo-dev 2007-12-15 18:13:46 UTC
Oh, and Ismail - thanks for the corrected patch!
Comment 8 İsmail Dönmez 2007-12-15 18:38:55 UTC
(In reply to comment #7)
> Oh, and Ismail - thanks for the corrected patch!

Thats my pleasure. 
Comment 9 Stefan Briesenick (RETIRED) gentoo-dev 2007-12-15 19:10:35 UTC
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 Robert Buchholz (RETIRED) gentoo-dev 2007-12-16 00:14:40 UTC
(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 Stefan Briesenick (RETIRED) gentoo-dev 2007-12-16 01:26:07 UTC
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 Robert Buchholz (RETIRED) gentoo-dev 2007-12-16 13:26:50 UTC
(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 İsmail Dönmez 2007-12-16 13:29:25 UTC
(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 Robert Buchholz (RETIRED) gentoo-dev 2007-12-16 13:44:09 UTC
(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 Robert Buchholz (RETIRED) gentoo-dev 2007-12-16 13:44:31 UTC
Arches, please test and mark stable media-gfx/exiv2-0.13-r1.
Target keywords : "alpha amd64 ia64 ppc sparc x86"
Comment 16 Markus Meier gentoo-dev 2007-12-16 14:22:49 UTC
x86 stable
Comment 17 Ferris McCormick (RETIRED) gentoo-dev 2007-12-16 16:50:13 UTC
Stable for sparc.  Everything as expected.
Comment 18 Raúl Porcel (RETIRED) gentoo-dev 2007-12-17 11:07:07 UTC
alpha/ia64 stable
Comment 19 Tobias Scherbaum (RETIRED) gentoo-dev 2007-12-17 19:01:49 UTC
ppc stable
Comment 20 Peter Weller (RETIRED) gentoo-dev 2007-12-19 15:39:32 UTC
amd64 stable
Comment 21 Tobias Heinlein (RETIRED) gentoo-dev 2007-12-21 23:05:29 UTC
All arches done, GLSA request filed.
Comment 22 Pierre-Yves Rofes (RETIRED) gentoo-dev 2007-12-29 13:51:03 UTC
GLSA 200712-16
Comment 23 Peter Volkov (RETIRED) gentoo-dev 2008-03-06 09:59:05 UTC
Does not affect current (2008.0) release. Removing release.