[PATCH V2] cfg80211: Fix possible memory leak in function cfg80211_bss_update

Kalle Valo kvalo at codeaurora.org
Sat Jul 31 07:53:28 UTC 2021

Greg KH <greg at kroah.com> writes:

> On Mon, Jun 28, 2021 at 09:23:34PM +0800, Nguyen Dinh Phi wrote:
>> When we exceed the limit of BSS entries, this function will free the
>> new entry, however, at this time, it is the last door to access the
>> inputed ies, so these ies will be unreferenced objects and cause memory
>> leak.
>> Therefore we should free its ies before deallocating the new entry, beside
>> of dropping it from hidden_list.
>> Signed-off-by: Nguyen Dinh Phi <phind.uet at gmail.com>


> Did this change get lost somewhere?

Johannes applied it to the macc80211 tree:


Ah, and it's already in Linus' tree as well.



More information about the Linux-kernel-mentees mailing list