Bug 1060163 (CVE-2017-14265)

Summary: VUL-0: CVE-2017-14265: libraw: Stack based buffer overflow in the xtrans_interpolate function
Product: [Novell Products] SUSE Security Incidents Reporter: Victor Pereira <vpereira>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: fstrba, meissner, pgajdos, smash_bz
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/191731/
Whiteboard: CVSSv2:NVD:CVE-2017-14265:7.5:(AV:N/AC:L/Au:N/C:P/I:P/A:P) CVSSv3:RedHat:CVE-2017-14265:3.3:(AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L) CVSSv2:SUSE:CVE-2017-14265:5.0:(AV:N/AC:L/Au:N/C:N/I:N/A:P) CVSSv3:SUSE:CVE-2017-14265:5.3:(AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Victor Pereira 2017-09-25 07:20:05 UTC

A Stack-based Buffer Overflow was discovered in xtrans_interpolate in
internal/dcraw_common.cpp in LibRaw before 0.18.3. It could allow a remote
denial of service or code execution attack.

Comment 1 Petr Gajdos 2017-09-25 09:11:18 UTC
This is fixed with libraw 0.18.4 version update in Tumbleweed.
Comment 2 Petr Gajdos 2017-09-25 13:17:36 UTC
I do not see crash or valgrind errors with the testcase from the upstream bug.

I get just:

$ simple_dcraw crash-xtrans_interpolate-stack-overflow
Cannot open_file crash-xtrans_interpolate-stack-overflow: Unsupported file format or not RAW file
Comment 3 Petr Gajdos 2017-09-25 13:39:20 UTC
1xtrans-cfa-range.txt from the upstream bug points to part of

Comment 4 Bernhard Wiedemann 2017-09-25 16:00:43 UTC
This is an autogenerated message for OBS integration:
This bug (1060163) was mentioned in
https://build.opensuse.org/request/show/528660 42.2 / libraw
https://build.opensuse.org/request/show/528661 42.3 / libraw
Comment 5 Petr Gajdos 2017-09-26 07:20:34 UTC
Packages submitted to 42.2 and 42.3.
Comment 6 Petr Gajdos 2017-09-26 11:49:36 UTC
12/libraw is not affected, xtrans_interpolate contains just dcraw.c, which does not compile.
Comment 7 Bernhard Wiedemann 2017-09-26 14:01:22 UTC
This is an autogenerated message for OBS integration:
This bug (1060163) was mentioned in
https://build.opensuse.org/request/show/528790 42.2 / libraw
https://build.opensuse.org/request/show/528791 42.3 / libraw
Comment 8 Victor Pereira 2017-09-27 09:30:27 UTC
@Petr thank you for your feedback.
Comment 9 Swamp Workflow Management 2017-10-03 22:11:29 UTC
openSUSE-SU-2017:2638-1: An update that fixes two vulnerabilities is now available.

Category: security (moderate)
Bug References: 1060163,1060321
CVE References: CVE-2017-13735,CVE-2017-14265
Sources used:
openSUSE Leap 42.3 (src):    libraw-0.17.1-11.1
openSUSE Leap 42.2 (src):    libraw-0.17.1-2.11.1
Comment 10 Marcus Meissner 2017-12-14 14:08:49 UTC
is the dcraw package affected?
Comment 11 Petr Gajdos 2017-12-15 08:58:40 UTC
Fridrich is maintainer of dcraw package.
Comment 12 Fridrich Strba 2022-04-13 10:32:12 UTC
I don't see any crash with current dcraw version. I run it in valgrind to see whether it still tries to read over buffer, but not.
So closing this one