From: Vasiliy Kulikov Date: Thu, 14 Apr 2011 16:55:16 +0000 (+0400) Subject: agp: fix arbitrary kernel memory writes X-Git-Tag: v2.6.39-rc5~29^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=194b3da873fd334ef183806db751473512af29ce;p=pandora-kernel.git agp: fix arbitrary kernel memory writes pg_start is copied from userspace on AGPIOC_BIND and AGPIOC_UNBIND ioctl cmds of agp_ioctl() and passed to agpioc_bind_wrap(). As said in the comment, (pg_start + mem->page_count) may wrap in case of AGPIOC_BIND, and it is not checked at all in case of AGPIOC_UNBIND. As a result, user with sufficient privileges (usually "video" group) may generate either local DoS or privilege escalation. Signed-off-by: Vasiliy Kulikov Signed-off-by: Dave Airlie --- Reading git-diff-tree failed