https://github.com/torvalds/linux
Revision fdac1e0697356ac212259f2147aa60c72e334861 authored by Dan Rosenberg on 22 December 2010, 13:58:27 UTC, committed by David S. Miller on 23 December 2010, 18:09:43 UTC
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>
1 parent 1bde5ac
History
Tip revision: fdac1e0697356ac212259f2147aa60c72e334861 authored by Dan Rosenberg on 22 December 2010, 13:58:27 UTC
irda: prevent integer underflow in IRLMP_ENUMDEVICES
Tip revision: fdac1e0
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 936 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 178.0 KB
Makefile -rw-r--r-- 50.9 KB
README -rw-r--r-- 17.1 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top