Hide Forgot
A vulnerability was found in irssi. Printing the value %[ leads to out-of-bounds read. CVE assignment: http://seclists.org/oss-sec/2017/q1/77
Created irssi tracking bugs for this issue: Affects: fedora-all [bug 1410829] Affects: epel-5 [bug 1410830]
Corresponding patch for CVE-2017-5356 : ---8<--- --- a/src/fe-common/core/formats.c 2010-04-03 18:19:24.000000000 +0200 +++ b/src/fe-common/core/formats.c 2017-02-24 16:53:56.663978694 +0100 @@ -68,7 +68,7 @@ static void format_expand_code(const cha if (flags == NULL) { /* flags are being ignored - skip the code */ - while (**format != ']') + while (**format != ']' && **format != '\0') (*format)++; return; } @@ -161,6 +161,10 @@ int format_expand_styles(GString *out, c case '[': /* code */ format_expand_code(format, out, flags); + if ((*format)[0] == '\0') + /* oops, reached end prematurely */ + (*format)--; + break; default: /* check if it's a background color */ --->8---
Lowering the impact to low : the attacker would need to trick user into loading a maliciously crafted theme, or running a malicious command in order to crash irssi.
Statement: Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.