Dan Rosenberg fdac1e0697 irda: prevent integer underflow in IRLMP_ENUMDEVICES
If the user-provided len is less than the expected offset, the
IRLMP_ENUMDEVICES getsockopt will do a copy_to_user() with a very large
size value.  While this isn't be a security issue on x86 because it will
get caught by the access_ok() check, it may leak large amounts of kernel
heap on other architectures.  In any event, this patch fixes it.

Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-12-23 10:09:43 -08:00
..
2010-10-25 13:09:44 -07:00
2010-10-25 13:09:43 -07:00
2010-11-12 14:07:14 -08:00
2010-11-28 11:29:27 -08:00
2010-09-23 14:33:39 -07:00
2010-12-23 09:32:46 -08:00
2010-10-21 15:44:13 +02:00
2010-09-23 14:33:39 -07:00
2010-12-08 12:13:43 -08:00
2010-12-08 09:58:44 -08:00
2010-12-22 13:36:35 -05:00
2010-04-20 16:37:13 -07:00
2010-10-29 04:16:28 -04:00
2010-11-29 09:45:15 -08:00
2010-08-09 11:25:17 +02:00
2010-12-09 20:35:27 -08:00
2010-10-15 15:53:27 +02:00