]> git.ipfire.org Git - people/ms/linux.git/commit
drm/i915: fix ioremap of a user address for non-root (CVE-2008-3831)
authorMatthias Hopf <mhopf@suse.de>
Fri, 17 Oct 2008 21:18:05 +0000 (07:18 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Oct 2008 21:05:16 +0000 (14:05 -0700)
commit54e4b4720e7eda31b4e3c72a09d0bcda9dd3482c
tree638493cf11142b632f388880a1d055b44a99ccbd
parent79f095640dd266b97d53e6f8d06208beb7b346fa
drm/i915: fix ioremap of a user address for non-root (CVE-2008-3831)

commit 4b40893918203ee1a1f6a114316c2a19c072e9bd upstream

Olaf Kirch noticed that the i915_set_status_page() function of the i915
kernel driver calls ioremap with an address offset that is supplied by
userspace via ioctl. The function zeroes the mapped memory via memset
and tells the hardware about the address. Turns out that access to that
ioctl is not restricted to root so users could probably exploit that to
do nasty things. We haven't tried to write actual exploit code though.

It only affects the Intel G33 series and newer.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/drm/i915_dma.c