ACK: [CVE-2017-7294][Yakkety] drm/vmwgfx: fix integer overflow in vmw_surface_define_ioctl()

Seth Forshee seth.forshee at
Wed May 17 17:50:22 UTC 2017

On Mon, May 15, 2017 at 07:39:53PM +0800, Po-Hsu Lin wrote:
> From: Li Qiang <liq3ea at>
> In vmw_surface_define_ioctl(), the 'num_sizes' is the sum of the
> 'req->mip_levels' array. This array can be assigned any value from
> the user space. As both the 'num_sizes' and the array is uint32_t,
> it is easy to make 'num_sizes' overflow. The later 'mip_levels' is
> used as the loop count. This can lead an oob write. Add the check of
> 'req->mip_levels' to avoid this.
> Cc: <stable at>
> Signed-off-by: Li Qiang <liqiang6-s at>
> Reviewed-by: Thomas Hellstrom <thellstrom at>
> (cherry picked from commit e7e11f99564222d82f0ce84bd521e57d78a6678)
> CVE-2017-7294
> Signed-off-by: Po-Hsu Lin <po-hsu.lin at>

For all 3:

Acked-by: Seth Forshee <seth.forshee at>

More information about the kernel-team mailing list