Description
Off-by-one error in the options_write function in drivers/misc/sgi-gru/gruprocfs.c in the SGI GRU driver in the Linux kernel 2.6.30.2 and earlier on ia64 and x86 platforms might allow local users to overwrite arbitrary memory locations and gain privileges via a crafted count argument, which triggers a stack-based buffer overflow.
References
- [linux-kernel] 20090720 Re: [PATCH] sgi-gru: Fix kernel stack buffer overrun mailing-list
- USN-852-1 vendor-advisory
- [linux-kernel] 20090721 [PATCH] sgi-gru: Fix kernel stack buffer overrun mailing-list
- http://grsecurity.net/~spender/exploit_demo.c
- kernel-sgigru-bo(51887) vdb-entry
- 35753 vdb-entry
- 37105 third-party-advisory
- http://xorl.wordpress.com/2009/07/21/linux-kernel-sgi-gru-driver-off-by-one-overwrite/