Commit 27c7e63b authored by Abdun Nihaal's avatar Abdun Nihaal Committed by Johannes Berg
Browse files

wifi: at76c50x: fix use after free access in at76_disconnect



The memory pointed to by priv is freed at the end of at76_delete_device
function (using ieee80211_free_hw). But the code then accesses the udev
field of the freed object to put the USB device. This may also lead to a
memory leak of the usb device. Fix this by using udev from interface.

Fixes: 29e20aa6 ("at76c50x-usb: fix use after free on failure path in at76_probe()")
Signed-off-by: default avatarAbdun Nihaal <abdun.nihaal@gmail.com>
Link: https://patch.msgid.link/20250330103110.44080-1-abdun.nihaal@gmail.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 9bb8deae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment