Skip to content

wifi: rtw89: fix IE length passed to cfg80211_find_ie()

Tristan Madani linux-wireless stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 3 repliesIn review

Changes in v2 from the cover letter

- Straightened the cfg80211_find_ie() call in wow.c to a single line
- Removed unnecessary blank line in wow.c
Both per Ping-Ke Shih review feedback.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2wifi: rtw89: fix IE length passed to cfg80211_find_ie() in 6 GHz probedrivers/net/wireless/realtek/rtw89/core.c+5 -11 reply
2/2wifi: rtw89: fix IE length passed to cfg80211_find_ie() in WoW AKMdrivers/net/wireless/realtek/rtw89/wow.c+5 -12 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchPing-Ke Shih
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH wireless v2 0/2] wifi: rtw89: fix IE length passed to cfg80211_find_ie()

From: Tristan Madani <[email protected]>

Two callers of cfg80211_find_ie() in rtw89 pass skb->len as the IE data length, but since ies points past the management frame header and fixed fields, the correct length is skb->len minus the header offset. This causes cfg80211_find_ie() to potentially read past the IE data boundary.

Changes since v1:
- Straightened the cfg80211_find_ie() call in wow.c to a single line
- Removed unnecessary blank line in wow.c
Both per Ping-Ke Shih review feedback.

Tristan Madani (2):
wifi: rtw89: fix IE length passed to cfg80211_find_ie() in 6 GHz probe
wifi: rtw89: fix IE length passed to cfg80211_find_ie() in WoW AKM

 drivers/net/wireless/realtek/rtw89/core.c | 6 +++++-
 drivers/net/wireless/realtek/rtw89/wow.c  | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

--
2.47.3