First published: Wed Aug 31 2011(Updated: )
A remotely exploitable buffer overflow flaw was found in Cyrus' nntpd. A malicious NNTP client would be able to exploit this to execute arbitrary code on a vulnerable nntpd server. If the 'allowanonymouslogin' option was set in imapd.conf, it could be done without authentication. When compiled with FORTIFY_SOURCE (the default on Red Hat Enterprise Linux 5 and 6, as well as Fedora), this flaw is not exploitable and will result in a crash of the nntpd service. The following patch will correct the flaw: diff --git a/imap/nntpd.c b/imap/nntpd.c index 56405d3..6b30174 100644 --- a/imap/nntpd.c +++ b/imap/nntpd.c @@ -4131,7 +4131,8 @@ static struct wildmat *split_wildmats(char *str) else if (*c == '@') wild[n].not = -1; /* absolute not (feeding) */ else wild[n].not = 0; - strcpy(p, wild[n].not ? c + 1 : c); + strncpy(p, wild[n].not ? c + 1 : c, pattern+sizeof(pattern) - p); + pattern[sizeof(pattern)-1] = '\0'; wild[n++].pat = xstrdup(pattern); } while (c != str); wild[n].pat = NULL;
Credit: secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/cyrus-imapd | <2.4.11 | 2.4.11 |
redhat/cyrus-imapd | <0:2.2.12-16.el4 | 0:2.2.12-16.el4 |
redhat/cyrus-imapd | <0:2.3.7-12.el5_7.1 | 0:2.3.7-12.el5_7.1 |
redhat/cyrus-imapd | <0:2.3.16-6.el6_1.3 | 0:2.3.16-6.el6_1.3 |
Cmu Cyrus Imap Server | =2.2.12 | |
Cmu Cyrus Imap Server | =2.2.14 | |
Cmu Cyrus Imap Server | =2.3.13 | |
Cmu Cyrus Imap Server | <=2.3.16 | |
Cmu Cyrus Imap Server | =2.2.13p1 | |
Cmu Cyrus Imap Server | =2.3.12 | |
Cmu Cyrus Imap Server | =2.1.17 | |
Cmu Cyrus Imap Server | =2.3.6 | |
Cmu Cyrus Imap Server | =2.3.0 | |
Cmu Cyrus Imap Server | =2.2.11 | |
Cmu Cyrus Imap Server | =2.3.14 | |
Cmu Cyrus Imap Server | =2.3.2 | |
Cmu Cyrus Imap Server | =2.3.11 | |
Cmu Cyrus Imap Server | =2.3.8 | |
Cmu Cyrus Imap Server | =2.3.5 | |
Cmu Cyrus Imap Server | =2.2.9 | |
Cmu Cyrus Imap Server | =2.3.9 | |
Cmu Cyrus Imap Server | =2.3.10 | |
Cmu Cyrus Imap Server | =2.2.13 | |
Cmu Cyrus Imap Server | =2.1.16 | |
Cmu Cyrus Imap Server | =2.3.7 | |
Cmu Cyrus Imap Server | =2.2.8 | |
Cmu Cyrus Imap Server | =2.0.17 | |
Cmu Cyrus Imap Server | =2.3.1 | |
Cmu Cyrus Imap Server | =2.3.4 | |
Cmu Cyrus Imap Server | =2.2.10 | |
Cmu Cyrus Imap Server | =2.1.18 | |
Cmu Cyrus Imap Server | =2.3.3 | |
Cmu Cyrus Imap Server | =2.3.15 | |
Cmu Cyrus Imap Server | =2.4.1 | |
Cmu Cyrus Imap Server | =2.4.5 | |
Cmu Cyrus Imap Server | =2.4.0 | |
Cmu Cyrus Imap Server | =2.4.10 | |
Cmu Cyrus Imap Server | =2.4.8 | |
Cmu Cyrus Imap Server | =2.4.7 | |
Cmu Cyrus Imap Server | =2.4.6 | |
Cmu Cyrus Imap Server | =2.4.3 | |
Cmu Cyrus Imap Server | =2.4.4 | |
Cmu Cyrus Imap Server | =2.4.2 | |
Cmu Cyrus Imap Server | =2.4.9 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.