]> www.pilppa.org Git - linux-2.6-omap-h63xx.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)
committerDave Airlie <airlied@linux.ie>
Fri, 17 Oct 2008 21:18:05 +0000 (07:18 +1000)
commit4b40893918203ee1a1f6a114316c2a19c072e9bd
tree7ff8c6df471c7be88e0507bb36bc686ef3d97e80
parent9e0b97e37fddaf5419d8af24362015ab684eff7e
drm/i915: fix ioremap of a user address for non-root (CVE-2008-3831)

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>
drivers/gpu/drm/i915/i915_dma.c