Skip to contentSkip to conversation

cfg80211: fix truncated IEs

PATCH New Johannes Berg 1 participant 1 message Apr 30, 2009 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 cfg80211: fix truncated IEs

Another bug in the "cfg80211: do not replace BSS structs" patch, a forgotten length update leads to bogus data being stored and passed to userspace, often truncated.

---
 net/wireless/scan.c |    1 +
 1 file changed, 1 insertion(+)
net/wireless/scan.c +1 -0
@@ -393,6 +393,7 @@ cfg80211_bss_update(struct cfg80211_regi
 					memcpy(ies, res->pub.information_elements, ielen);
 					found->ies_allocated = true;
 					found->pub.information_elements = ies;
+					found->pub.len_information_elements = ielen;
 				}
 			}
 		}