summaryrefslogtreecommitdiffstats
path: root/net/wireless/lib80211_crypt_ccmp.c
diff options
context:
space:
mode:
authorDan Rosenberg <drosenberg@vsecurity.com>2010-12-22 13:58:27 +0000
committerDavid S. Miller <davem@davemloft.net>2010-12-23 10:09:43 -0800
commitfdac1e0697356ac212259f2147aa60c72e334861 (patch)
treece479592fda66f81e1058c02b813dbc168958197 /net/wireless/lib80211_crypt_ccmp.c
parent1bde5ac49398a064c753bb490535cfad89e99a5f (diff)
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>
Diffstat (limited to 'net/wireless/lib80211_crypt_ccmp.c')
0 files changed, 0 insertions, 0 deletions