https://github.com/torvalds/linux
Revision 0f22072ab50cac7983f9660d33974b45184da4f9 authored by Dan Rosenberg on 29 April 2011, 14:48:07 UTC, committed by Russell King on 29 April 2011, 14:53:14 UTC
When CONFIG_OABI_COMPAT is set, the wrapper for semtimedop does not
bound the nsops argument.  A sufficiently large value will cause an
integer overflow in allocation size, followed by copying too much data
into the allocated buffer.  Fix this by restricting nsops to SEMOPM.
Untested.

Cc: stable@kernel.org
Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 408133e
History
Tip revision: 0f22072ab50cac7983f9660d33974b45184da4f9 authored by Dan Rosenberg on 29 April 2011, 14:48:07 UTC
ARM: 6891/1: prevent heap corruption in OABI semtimedop
Tip revision: 0f22072
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-- 941 bytes
.mailmap -rw-r--r-- 4.1 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.7 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 188.2 KB
Makefile -rw-r--r-- 51.1 KB
README -rw-r--r-- 17.1 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top