Bug 968382 (CVE-2013-2127) - CVE-2013-2127 LibRaw: buffer overrun in exposure correction code
Summary: CVE-2013-2127 LibRaw: buffer overrun in exposure correction code
Alias: CVE-2013-2127
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 970713
TreeView+ depends on / blocked
Reported: 2013-05-29 15:20 UTC by Vincent Danen
Modified: 2021-10-20 10:39 UTC (History)
7 users (show)

Fixed In Version: LibRaw 0.15.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2021-10-20 10:39:03 UTC

Attachments (Terms of Use)

Description Vincent Danen 2013-05-29 15:20:15 UTC
LibRaw 0.15.1 notes the following fix [1]:

* check for possible buffer overrun in exposure correction code

Successful exploitation could allow for the execution of arbitrary code with the privileges of the user running an application linked to LibRaw.

This has been fixed in LibRaw 0.15.1 [2].

[1] http://www.libraw.org/news/libraw-0-15-1
[2] https://github.com/LibRaw/LibRaw/commit/2f912f5b33582961b1cdbd9fd828589f8b78f21d

Comment 1 Vincent Danen 2013-05-29 15:26:45 UTC
Created LibRaw tracking bugs for this issue

Affects: fedora-all [bug 968387]

Comment 2 Gwyn Ciesla 2013-05-29 15:28:51 UTC
This seems to affect 0.15.x branch only, we ship only 0.14.x currently.  Can you verify?

Comment 3 Vincent Danen 2013-05-29 21:18:56 UTC
This has been assigned CVE-2013-2127 as per:


Comment 4 Vincent Danen 2013-05-29 23:15:25 UTC
This one I cannot tell by looking at the code whether or not we are affected.  I'm going to email upstream and ask.

Comment 5 Vincent Danen 2013-05-30 14:16:22 UTC
According to upstream, 0.14.x is not affected by this flaw:

"0.14.x are not affected by 'buffer overrun'  (this is not arbitrary access in 0.15 , but access to lookup table at fixed index [(unsigned)(-1)] )

The code calculating max real data value is completely different in 0.14 (and early 0.15 alphas), so no prior initialization of data maximum to -1."

Since we only ship 0.14.x, this does not affect Fedora at all.

Comment 6 Vincent Danen 2013-06-04 16:50:47 UTC
Digikam embeds 0.15.0.beta3 and this patch applies to it, so it needs to be updated.

Comment 7 Vincent Danen 2013-06-04 17:05:50 UTC
Created libkdcraw tracking bugs for this issue

Affects: fedora-all [bug 970713]

Note You need to log in before you can comment on or make changes to this bug.