LWN.net Logo

xchat-ruby: null pointer dereference, remote DoS

Package(s):xchat-ruby CVE #(s):
Created:February 13, 2012 Updated:February 15, 2012
Description: From the Red Hat bugzilla:

In src/xchat-ruby.c functions

 static_ruby_custom_command_hook(char *word[], char *word_eol[], void *userdata)
 static_ruby_custom_server_hook(char *word[], char *word_eol[], void *userdata)

parameter 'word' used in a for cycle without break [1]
 for( i = 1; word[i][0] != '\0'; i++ )
The problem is word[PDIWORDS] always set to NULL by xchat. So if the input contains more words than PDIWORDS (32) [2], the NULL pointer will be dereferenced.

This bug remote triggerable over IRC networks if one or more ruby plugin uses hook_server().

Alerts:
Fedora FEDORA-2012-1334 2012-02-12
Fedora FEDORA-2012-1325 2012-02-12

(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds