Bug 1293579 (CVE-2015-8614)

Summary: CVE-2015-8614 claws-mail: Stack overflow in conv_{jistoeuc,euctojis,sjistoeuc}
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: andreas.bierfert, bugs.michael, kupo, ssorce
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20151104,reported=20151221,source=gentoo,cvss2=5.8/AV:N/AC:M/Au:N/C:N/I:P/A:P,cwe=CWE-121,fedora-all/claws-mail=affected,epel-all/claws-mail=affected
Fixed In Version: claws-mail 3.13.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 1293581, 1293580    
Bug Blocks:    

Description Adam Mariš 2015-12-22 04:23:29 EST
Stack-based buffer overflow vulnerabilities were found in conv_jistoeuc, conv_euctojis, conv_sjistoeuc functions, caused by missing bound checking on the output buffer, which is created on the stack with alloca().

Upstream patch:

http://git.claws-mail.org/?p=claws.git;a=commit;h=d390fa07f5548f3173dd9cc13b233db5ce934c82

CVE assignment:

http://seclists.org/oss-sec/2015/q4/557
Comment 1 Adam Mariš 2015-12-22 04:24:11 EST
Created claws-mail tracking bugs for this issue:

Affects: fedora-all [bug 1293580]
Affects: epel-all [bug 1293581]
Comment 2 Michael Schwendt 2015-12-22 06:10:28 EST
> Upstream patch:

Dubious. The change to conv_jistoeuc() disables the loop, because (out-outbuf) will be zero and hence the while-condition will never be true.

Apart from that, the patch is part of 3.13.1 which is pending on its way into updates-testing already.
Comment 5 Fedora Update System 2015-12-30 19:56:23 EST
claws-mail-3.13.1-4.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Comment 6 Fedora Update System 2016-01-03 16:19:12 EST
claws-mail-3.13.1-4.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.