Bug 1378343 (CVE-2016-7044)

Summary: CVE-2016-7044 irssi: Unchecked input in unformat_24bit_color() can lead to crash
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: cbuissar, huzaifas, jskarvad, mmahut
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: irssi 0.8.20 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-27 08:59:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1378345, 1378346    
Bug Blocks: 1378349    

Description Adam Mariš 2016-09-22 08:18:38 UTC
A vulnerability caused by improper input checking was found in irssi, allowing remote attacker to cause application crash.

The unformat_24bit_color() function is called by format_send_to_gui() to decode 24bit color codes into their components. The pointer is advanced unconditionally without checking if a complete code was supplied. Thus, after the return of unformat_24bit_color(), ptr might be invalid and point out of the buffer.

Affected versions: Irssi 0.8.17-beta up to and including 0.8.19 up to 0.8.19-219-g52fedea

External Reference:

https://irssi.org/security/irssi_sa_2016.txt

Comment 1 Adam Mariš 2016-09-22 08:23:33 UTC
Created irssi tracking bugs for this issue:

Affects: fedora-all [bug 1378345]
Affects: epel-5 [bug 1378346]

Comment 2 Jaroslav Škarvada 2016-09-22 13:43:32 UTC
(In reply to Adam Mariš from comment #1)
> Affects: epel-5 [bug 1378346]

Are you sure? According to comment 0, "Affected versions: Irssi 0.8.17-beta up", there is irssi-0.8.15-1.el5 in the EPEL-5.

Comment 3 Adam Mariš 2016-09-22 13:57:30 UTC
(In reply to Jaroslav Škarvada from comment #2)
> (In reply to Adam Mariš from comment #1)
> > Affects: epel-5 [bug 1378346]
> 
> Are you sure? According to comment 0, "Affected versions: Irssi 0.8.17-beta
> up", there is irssi-0.8.15-1.el5 in the EPEL-5.

I know, I haven't got time to check it. Sometimes upstream doesn't include information about unsupported versions, so we have to check it as well. However, the only difference here is in patch version, thus 0.8.15 is unlikely to be unsupported. Reconsidering it now, I'll close the bug. Thanks for notifying me!

Comment 4 Cedric Buissart 2016-09-27 08:57:32 UTC
The unformat_24bit_color() function is not part of irssi as shipped in RHEL-6, RHEL-7 or EPEL-5. These products are not affected by this flaw.