]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drm/vmwgfx: NULL pointer dereference in vmw_surface_define_ioctl()
authorMurray McAllister <murray.mcallister@insomniasec.com>
Mon, 27 Mar 2017 09:12:53 +0000 (11:12 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 21 Apr 2017 08:11:55 +0000 (10:11 +0200)
commit00288b9e043eb5a5a34074bb7c416b2cfb5cae3e
tree8d6a4261ebfec786f260faf4ef58e0dc2fd403eb
parentfceabf041d3aaf811ce6a021aad2902b23cd9b35
drm/vmwgfx: NULL pointer dereference in vmw_surface_define_ioctl()

BugLink: http://bugs.launchpad.net/bugs/1682130
commit 36274ab8c596f1240c606bb514da329add2a1bcd upstream.

Before memory allocations vmw_surface_define_ioctl() checks the
upper-bounds of a user-supplied size, but does not check if the
supplied size is 0.

Add check to avoid NULL pointer dereferences.

Signed-off-by: Murray McAllister <murray.mcallister@insomniasec.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c