Patch "video: fbdev: aty: do not leak uninitialized padding in clk to userspace" has been added to the 3.18-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
video: fbdev: aty: do not leak uninitialized padding in clk to userspace
to the 3.18-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:
video-fbdev-aty-do-not-leak-uninitialized-padding-in-clk-to-userspace.patch
and it can be found in the queue-3.18 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
8e75f7a7a00461ef6d91797a60b606367f6e344dMon Sep 17 00:00:00 2001
From: Vladis Dronov <[email protected]>
Date: Mon, 4 Sep 2017 16:00:50 +0200
Subject: video: fbdev: aty: do not leak uninitialized padding in clk to userspace
From: Vladis Dronov <[email protected]>
commit 8e75f7a7a00461ef6d91797a60b606367f6e344d upstream.
'clk' is copied to a userland with padding byte(s) after 'vclk_post_div' field unitialized, leaking data from the stack. Fix this ensuring all of 'clk' is initialized to zero.
References: https://github.com/torvalds/linux/pull/441
--- drivers/video/fbdev/aty/atyfb_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/aty/atyfb_base.c +1 -1
@@ -1852,7 +1852,7 @@ static int atyfb_ioctl(struct fb_info *i#if defined(DEBUG ) && defined(CONFIG_FB_ATY_CT )case ATYIO_CLKR :if (M64_HAS (INTEGRATED )) { -struct atyclk clk; +struct atyclk clk = {0 };union aty_pll *pll = &par->pll;u32 dsp_config = pll->ct.dsp_config;u32 dsp_on_off = pll->ct.dsp_on_off;
Patches currently in stable-queue which might be from [email protected] are
queue-3.18/nl80211-check-for-the-required-netlink-attributes-presence.patch queue-3.18/video-fbdev-aty-do-not-leak-uninitialized-padding-in-clk-to-userspace.patch