1
0
Fork 0

staging: wilc1000: fix infoleak in wilc_wfi_cfgoperations

"mac" is an array allocated in stack without being initialized,
and will be sent out via "nla_put". The dump_station() is supposed
to initialize the mac address; otherwise, sensitive data in kernel
stack will be leaked. To fix this, copy the mac address to it.

Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
Kangjie Lu 2016-05-03 21:36:11 -04:00 committed by Greg Kroah-Hartman
parent 5c69585837
commit d13829686b
1 changed files with 1 additions and 0 deletions

View File

@ -1804,6 +1804,7 @@ static int dump_station(struct wiphy *wiphy, struct net_device *dev,
wilc_get_rssi(vif, &sinfo->signal);
memcpy(mac, priv->au8AssociatedBss, ETH_ALEN);
return 0;
}