Files
linux/net/rds
Dan Rosenberg 0dd472b3a5 rds: Integer overflow in RDS cmsg handling
commit 218854af84 upstream.

In rds_cmsg_rdma_args(), the user-provided args->nr_local value is
restricted to less than UINT_MAX.  This seems to need a tighter upper
bound, since the calculation of total iov_size can overflow, resulting
in a small sock_kmalloc() allocation.  This would probably just result
in walking off the heap and crashing when calling rds_rdma_pages() with
a high count value.  If it somehow doesn't crash here, then memory
corruption could occur soon after.

Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-12-09 13:27:12 -08:00
..
2009-08-23 19:13:07 -07:00
2009-08-23 19:13:07 -07:00
2009-08-23 19:13:07 -07:00
2009-08-23 19:13:07 -07:00
2010-10-28 21:44:05 -07:00
2010-09-26 17:21:20 -07:00
2009-08-23 19:13:07 -07:00
2009-08-23 19:13:07 -07:00
2009-08-23 19:13:02 -07:00
2009-08-23 19:13:02 -07:00
2009-08-23 19:13:02 -07:00
2009-08-23 19:13:02 -07:00
2009-08-23 19:13:02 -07:00
2009-08-23 19:13:02 -07:00
2009-08-23 19:13:07 -07:00