Skip to content

Commit 6a411a7

Browse files
computersforpeaceSomasundaram Krishnasamy
authored andcommitted
mwifiex: fix unbalanced locking in mwifiex_process_country_ie()
We called rcu_read_lock(), so we need to call rcu_read_unlock() before we return. Fixes: 3d94a4a ("mwifiex: fix possible heap overflow in mwifiex_process_country_ie()") Cc: [email protected] Cc: huangwen <[email protected]> Cc: Ganapathi Bhat <[email protected]> Signed-off-by: Brian Norris <[email protected]> Acked-by: Ganapathi Bhat <[email protected]> Signed-off-by: Kalle Valo <[email protected]> (cherry picked from commit 65b1aae) Orabug: 30781857 CVE: CVE-2019-14895 Signed-off-by: Vijayendra Suman <[email protected]> Reviewed-by: Allen Pais <[email protected]> Signed-off-by: Somasundaram Krishnasamy <[email protected]>
1 parent e95be12 commit 6a411a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/wireless/marvell/mwifiex/sta_ioctl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ static int mwifiex_process_country_ie(struct mwifiex_private *priv,
274274

275275
if (country_ie_len >
276276
(IEEE80211_COUNTRY_STRING_LEN + MWIFIEX_MAX_TRIPLET_802_11D)) {
277+
rcu_read_unlock();
277278
mwifiex_dbg(priv->adapter, ERROR,
278279
"11D: country_ie_len overflow!, deauth AP\n");
279280
return -EINVAL;

0 commit comments

Comments
 (0)