net_sched: info leak in atm_tc_dump_class()
Subsystems (4)
PATCH 1/1 net_sched: info leak in atm_tc_dump_class()
The "pvc" struct has a hole after pvc.sap_family which is not cleared.
Signed-off-by Dan Carpenter <[email protected]>
net/sched/sch_atm.c +1 -0
@@ -605,6 +605,7 @@ static int atm_tc_dump_class(struct Qdisc *sch, unsigned long cl,struct sockaddr_atmpvc pvc;int state; +memset (&pvc,0 ,sizeof (pvc)); pvc.sap_family =AF_ATMPVC ; pvc.sap_addr.itf = flow->vcc->dev ? flow->vcc->dev->number :-1 ; pvc.sap_addr.vpi = flow->vcc->vpi;
Quoted 3 lines · Tue, Jul 30, 2013 at 12:23:39PM CEST, [email protected] wrote:
The "pvc" struct has a hole after pvc.sap_family which is not cleared.
Signed-off-by Dan Carpenter <[email protected]>
Reviewed-by Jiri Pirko <[email protected]>
David Miller
maintainerFrom: Jiri Pirko <[email protected]>
Date: Tue, 30 Jul 2013 13:18:20 +0200
Quoted 5 lines
Quoted 3 lines · Tue, Jul 30, 2013 at 12:23:39PM CEST, [email protected] wrote:
The "pvc" struct has a hole after pvc.sap_family which is not cleared.
Signed-off-by Dan Carpenter <[email protected]>Reviewed-by Jiri Pirko <[email protected]>
Applied and queued up for -stable, thanks.