mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* driver/video/fbdev/aty/atyfb_base.c: atyfb_ioctl() stack infoleak
@ 2017-08-03 14:01 sohu0106
  0 siblings, 0 replies; only message in thread
From: sohu0106 @ 2017-08-03 14:01 UTC (permalink / raw)
  To: linux-fbdev; +Cc: linux-kernel, torvalds




driver/video/fbdev/aty/atyfb_base.c
In atyfb_ioctl() structure atyclk is copied to userland with padding bytes after "vclk_post_div" field unitialized.  It leads to leaking of contents of kernel stack memory.



3  drivers/video/fbdev/aty/atyfb_base.c
 @@ -1857,6 +1857,9 @@ static int atyfb_ioctl(struct fb_info *info, u_int cmd, u_long arg)
  		if (M64_HAS(INTEGRATED)) {
  			struct atyclk clk;
  			union aty_pll *pll = &par->pll;
 +			
 +			memset( &clk, 0, sizeof(struct atyclk) );
 +			
  			u32 dsp_config = pll->ct.dsp_config;
  			u32 dsp_on_off = pll->ct.dsp_on_off;
  			clk.ref_clk_per = par->ref_clk_per;


 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-08-03 14:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-03 14:01 driver/video/fbdev/aty/atyfb_base.c: atyfb_ioctl() stack infoleak sohu0106

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®