[PATCH] Fix segfault in tcpConnectionTable

This is a discussion on [PATCH] Fix segfault in tcpConnectionTable within the SNMP Coders forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --------------000304000603040804090905 Content-Type: text/plain; charset=ISO-8859-1; format=flowed ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-17-2006
Scott Moynes
 
Posts: n/a
Default [PATCH] Fix segfault in tcpConnectionTable

This is a multi-part message in MIME format.
--------------000304000603040804090905
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hello,

Attached is a patch to fix a segfault that I was experiencing on x86_64
Linux host running net-snmp 5.3.0.

The issue is that incorrect types are passed to netsnmp_hex_to_binary
which are cast unsafely causing a buffer overflow. I think the patch is
trivially correct, but if you want more details, please let me know.

Cheers,
scott.

--------------000304000603040804090905
Content-Type: text/plain;
name="net-snmp-5.3.0-tcpConn-64bit-patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="net-snmp-5.3.0-tcpConn-64bit-patch"

--- agent/mibgroup/tcp-mib/data_access/tcpConn_linux.c 10 Dec 2005 16:35:37 -0000 1.5
+++ agent/mibgroup/tcp-mib/data_access/tcpConn_linux.c 16 Aug 2006 18:29:50 -0000
@@ -248,8 +248,8 @@ _load6(netsnmp_container *container, u_i
*/
while (fgets(line, sizeof(line), in)) {
netsnmp_tcpconn_entry *entry;
- int state, rc, local_port, remote_port, buf_len, offset,
- tmp_state;
+ int state, rc, local_port, remote_port, tmp_state;
+ size_t buf_len, offset;
u_char local_addr[48], remote_addr[48];
u_char *tmp_ptr;


--------------000304000603040804090905
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
--------------000304000603040804090905
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--------------000304000603040804090905--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:57 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0