infoleak fix1 in timer
PATCH 1/1 infoleak fix1 in timer
The stack object “tread” has a total size of 32 bytes. Its field “event” and “val” both contain 4 bytes padding. These 8 bytes padding bytes are sent to user without being initialized.
Signed-off-by Kangjie Lu <[email protected]>
--- sound/core/timer.c | 1 + 1 file changed, 1 insertion(+)
sound/core/timer.c +1 -0
@@ -1739,6 +1739,7 @@ static int snd_timer_user_params(struct file *file,if (tu->timeri->flags &SNDRV_TIMER_IFLG_EARLY_EVENT ) {if (tu->tread) {struct snd_timer_tread tread; +memset (&tread,0 ,sizeof (tread)); tread.event =SNDRV_TIMER_EVENT_EARLY ; tread.tstamp.tv_sec =0 ; tread.tstamp.tv_nsec =0 ;
Signature · 1 line
1.9.1
Quoted 6 lines · Kangjie Lu
The stack object “tread” has a total size of 32 bytes. Its field “event” and “val” both contain 4 bytes padding. These 8 bytes padding bytes are sent to user without being initialized.
Signed-off-by Kangjie Lu <[email protected]>
Thanks, I applied now all three patches. But I rephrased the subjects to more meaningful ones. Better to give a bit more informative subject line at the next time.
Takashi