Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 855921 Details for
Bug 1056908
CVE-2013-6481 pidgin: DoS caused due to OOB read in Yahoo protocol plugin
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Local copy of the patch
CVE-2013-6481.diff (text/plain), 2.61 KB, created by
Huzaifa S. Sidhpurwala
on 2014-01-27 06:10:49 UTC
(
hide
)
Description:
Local copy of the patch
Filename:
MIME Type:
Creator:
Huzaifa S. Sidhpurwala
Created:
2014-01-27 06:10:49 UTC
Size:
2.61 KB
patch
obsolete
>changeset: 33824:4d139ce8f7ec >branch: release-2.x.y >user: Daniel Atallah <datallah@pidgin.im> >date: Sat Mar 16 14:02:10 2013 -0400 >summary: yahoo: Fix reading memory locations past the buffer bounds > >diff -r 944ec96bb103 -r 4d139ce8f7ec libpurple/protocols/yahoo/libymsg.c >--- a/libpurple/protocols/yahoo/libymsg.c Sun Mar 10 23:31:01 2013 -0400 >+++ b/libpurple/protocols/yahoo/libymsg.c Sat Mar 16 14:02:10 2013 -0400 >@@ -2536,7 +2536,7 @@ static void yahoo_p2p_read_pkt_cb(gpoint > int pos = 0; > int pktlen; > struct yahoo_packet *pkt; >- guchar *start = NULL; >+ guchar *start; > struct yahoo_p2p_data *p2p_data; > YahooData *yd; > >@@ -2558,19 +2558,29 @@ static void yahoo_p2p_read_pkt_cb(gpoint > return; > } > >+ /* TODO: It looks like there's a bug here (and above) where an incorrect >+ * assumtion is being made that the buffer will be added to when this >+ * is next called, but that's not really the case! */ > if(len < YAHOO_PACKET_HDRLEN) > return; > >- if(strncmp((char *)buf, "YMSG", MIN(4, len)) != 0) { >+ if(strncmp((char *)buf, "YMSG", 4) != 0) { > /* Not a YMSG packet */ >+ purple_debug_warning("yahoo", "p2p: Got something other than YMSG packet\n"); >+ >+ start = (guchar *) g_strstr_len((char *) buf + 1, len - 1 ,"YMSG"); >+ if (start == NULL) { >+ /* remove from p2p connection lists, also calls yahoo_p2p_disconnect_destroy_data */ >+ if (g_hash_table_lookup(yd->peers, p2p_data->host_username)) >+ g_hash_table_remove(yd->peers, p2p_data->host_username); >+ else >+ yahoo_p2p_disconnect_destroy_data(data); >+ return; >+ } > purple_debug_warning("yahoo","p2p: Got something other than YMSG packet\n"); > >- start = memchr(buf + 1, 'Y', len - 1); >- if (start == NULL) >- return; >- >- g_memmove(buf, start, len - (start - buf)); >- len -= start - buf; >+ len -= (start - buf); >+ g_memmove(buf, start, len); > } > > pos += 4; /* YMSG */ >@@ -2578,7 +2588,17 @@ static void yahoo_p2p_read_pkt_cb(gpoint > pos += 2; > > pktlen = yahoo_get16(buf + pos); pos += 2; >- purple_debug_misc("yahoo", "p2p: %d bytes to read\n", len); >+ if (len < (YAHOO_PACKET_HDRLEN + pktlen)) { >+ purple_debug_error("yahoo", "p2p: packet length(%d) > buffer length(%d)\n", >+ pktlen, (len - pos)); >+ /* remove from p2p connection lists, also calls yahoo_p2p_disconnect_destroy_data */ >+ if (g_hash_table_lookup(yd->peers, p2p_data->host_username)) >+ g_hash_table_remove(yd->peers, p2p_data->host_username); >+ else >+ yahoo_p2p_disconnect_destroy_data(data); >+ return; >+ } else >+ purple_debug_misc("yahoo", "p2p: %d bytes to read\n", pktlen); > > pkt = yahoo_packet_new(0, 0, 0); > pkt->service = yahoo_get16(buf + pos); pos += 2; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1056908
: 855921