Bug 1378343 (CVE-2016-7044) - CVE-2016-7044 irssi: Unchecked input in unformat_24bit_color() can lead to crash
Summary: CVE-2016-7044 irssi: Unchecked input in unformat_24bit_color() can lead to crash
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2016-7044
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1378345 1378346
Blocks: 1378349
TreeView+ depends on / blocked
 
Reported: 2016-09-22 08:18 UTC by Adam Mariš
Modified: 2019-09-29 13:57 UTC (History)
4 users (show)

Fixed In Version: irssi 0.8.20
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-27 08:59:38 UTC


Attachments (Terms of Use)

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.


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