Bug 875181 (CVE-2012-5854)

Summary: CVE-2012-5854 weechat: Heap-based buffer overflow when decoding IRC colors
Product: [Other] Security Response Reporter: Florent Le Coz <louiz>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: i, jlieskov, karlthered, niveusluna, peter.borsa
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: impact=moderate,public=20121109,reported=20121109,source=redhat,cvss2=6.8/AV:N/AC:M/Au:N/C:P/I:P/A:P,fedora-all/weechat=notaffected,epel-all/weechat=notaffected,cwe=CWE-122[auto]
Fixed In Version: weechat 0.3.9.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-21 05:32:45 EDT Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Florent Le Coz 2012-11-09 12:32:45 EST
A buffer overflow can be exploited using IRC colors.

The bug is fixed upstream: 
http://git.savannah.gnu.org/cgit/weechat.git/patch/?id=9453e81baa7935db82a0b765a47cba772aba730d

A 0.3.9.1 version is said to be released in the next few hours, but fedora 17 does include only version 0.3.8.

That fix should be backported to the version in the repository since this is a security issue.
Comment 1 Fedora Update System 2012-11-09 17:20:49 EST
weechat-0.3.8-3.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/weechat-0.3.8-3.el6
Comment 3 Jan Lieskovsky 2012-11-10 07:35:44 EST
CVE Request:
[4] http://www.openwall.com/lists/oss-security/2012/11/10/4
Comment 4 Jan Lieskovsky 2012-11-10 07:41:03 EST
The following updates have been scheduled to correct this issue:
1) weechat-0.3.8-3.el6 for Fedora EPEL 6 version,
2) weechat-0.3.8-3.fc16 for Fedora 16 version,
3) weechat-0.3.8-3.fc17 for Fedora 17 version,
4) weechat-0.3.8-3.fc18 for upcoming Fedora 18 version,
5) weechat-0.3.8-3.fc19 for Rawhide.

This issue did NOT affect the version of the weechat package, as shipped with Fedora EPEL 5 (weechat-0.2.6-1.el5 currently), as it did NOT contain vulnerable source code part yet.
Comment 5 Paul P Komkoff Jr 2012-11-10 09:52:19 EST
Thanks, Jan. I was interrupted mid-building f16, didn't have a chance to push out the update until now.
Comment 6 Jan Lieskovsky 2012-11-12 06:11:00 EST
(In reply to comment #5)
> Thanks, Jan. I was interrupted mid-building f16, didn't have a chance to
> push out the update until now.

No problem, Paul. Thank you for scheduling the builds (I will update this bug with CVE id yet once it got assigned).
Comment 7 Jan Lieskovsky 2012-11-12 12:45:06 EST
The CVE identifier of CVE-2012-5854 has been assigned to this issue:
  http://www.openwall.com/lists/oss-security/2012/11/12/2
Comment 8 Vincent Danen 2012-11-13 12:13:44 EST
The upstream bug:

https://savannah.nongnu.org/bugs/?37704

Also, please do not set these CVE bugs to MODIFIED state; they should remain as NEW until they are fixed.  Thanks.
Comment 9 Fedora Update System 2012-11-13 21:11:05 EST
weechat-0.3.8-3.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 10 Fedora Update System 2012-11-18 21:18:43 EST
weechat-0.3.8-3.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 11 Fedora Update System 2012-11-18 21:32:05 EST
weechat-0.3.8-3.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 12 Fedora Update System 2012-12-10 20:26:17 EST
weechat-0.3.9.2-2.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 13 Fedora Update System 2012-12-11 04:18:24 EST
weechat-0.3.9.2-2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 14 Fedora Update System 2012-12-11 19:13:36 EST
weechat-0.3.9.2-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 15 Fedora Update System 2012-12-19 13:34:58 EST
weechat-0.3.9.2-2.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 16 Peter Borsa 2013-03-21 02:50:01 EDT
Jan, Vincent,

can we close this issue because weechat 0.4.0 is in the stable repositories?
Comment 17 Jan Lieskovsky 2013-03-21 05:32:45 EDT
(In reply to comment #16)
> Jan, Vincent,
> 
> can we close this issue because weechat 0.4.0 is in the stable repositories?

Thank you for checking, Peter, I have verified this if corrected in all weechat packages across Fedora EPEL-5, Fedora EPEL-6, Fedora release of 17, and 18 products.

So yes, this one can be closed safely.

Regards, Jan.