Patch "drm: crtc: integer overflow in drm_property_create_blob()" has been added to the 4.2-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
drm: crtc: integer overflow in drm_property_create_blob()
to the 4.2-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-crtc-integer-overflow-in-drm_property_create_blob.patch
and it can be found in the queue-4.2 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
9ac0934bbe52290e4e4c2a58ec41cab9b6ca8c96Mon Sep 17 00:00:00 2001
From: Dan Carpenter <[email protected]>
Date: Thu, 29 Oct 2015 16:37:54 +0300
Subject: drm: crtc: integer overflow in drm_property_create_blob()
From: Dan Carpenter <[email protected]>
commit 9ac0934bbe52290e4e4c2a58ec41cab9b6ca8c96 upstream.
The size here comes from the user via the ioctl, it is a number between 1-u32max so the addition here could overflow on 32 bit systems.
--- drivers/gpu/drm/drm_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_crtc.c +1 -1
@@ -4221,7 +4221,7 @@ drm_property_create_blob(struct drm_devistruct drm_property_blob *blob;int ret; -if (!length) +if (!length || length >ULONG_MAX -sizeof (struct drm_property_blob ))return ERR_PTR (-EINVAL ); blob =kzalloc (sizeof (struct drm_property_blob )+length,GFP_KERNEL );
Patches currently in stable-queue which might be from [email protected] are
queue-4.2/drm-crtc-integer-overflow-in-drm_property_create_blob.patch