1
linux/arch/score/kernel
Dan Rosenberg c25a785d66 score: fix off-by-one index into syscall table
If the provided system call number is equal to __NR_syscalls, the
current check will pass and a function pointer just after the system
call table may be called, since sys_call_table is an array with total
size __NR_syscalls.

Whether or not this is a security bug depends on what the compiler puts
immediately after the system call table.  It's likely that this won't do
anything bad because there is an additional NULL check on the syscall
entry, but if there happens to be a non-NULL value immediately after the
system call table, this may result in local privilege escalation.

Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>
Cc: <stable@vger.kernel.org>
Cc: Chen Liqin <liqin.chen@sunplusct.com>
Cc: Lennox Wu <lennox.wu@gmail.com>
Cc: Eugene Teo <eugeneteo@kernel.sg>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-01-23 08:38:49 -08:00
..
asm-offsets.c
entry.S score: fix off-by-one index into syscall table 2012-01-23 08:38:49 -08:00
head.S
init_task.c
irq.c score: Use generic show_interrupts() 2011-03-28 12:03:35 +08:00
Makefile
module.c modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
process.c
ptrace.c
setup.c score: Use HAVE_MEMBLOCK_NODE_MAP 2011-12-08 10:22:09 -08:00
signal.c
sys_call_table.c
sys_score.c
time.c
traps.c
vmlinux.lds.S