In the Linux kernel, the following vulnerability has been resolved: ALSA: info: Fix memory leak at card removal The fix for potential deadlock at disconnection by the commit c7a606519533 ("ALSA: info: Fix potential deadlock at disconnection") clears card->proc_root pointer at snd_info_card_disconnect(), in order just to be sure. But this leads to a memory leak of card->proc_root content that should have been released at a later call of snd_info_card_free(). For addressing the memory leak, simply drop the card->proc_root clearance at snd_info_card_disconnect(). Since card->proc_root might be still looked at in snd_info_card_id_change() that may be running concurrently during the connection procedure, add a sanity check there, too.
https://git.kernel.org/stable/c/d4b27352e4e1f764535ecce3bed36fa0f3b4e446
https://git.kernel.org/stable/c/cc045f5e432e7c647737f2fa1c95b296ed070b4e
https://git.kernel.org/stable/c/a3e8eec7692eac706ba0934fa18453e46acd1a08
https://git.kernel.org/stable/c/94b93c64b5ef07af6aca8efac7ada1a94cfcad5c
https://git.kernel.org/stable/c/8e2a01649b529b4baa90c38af621f2ecf381860c
https://git.kernel.org/stable/c/4b5567888516594bf2595ddd927a7bf664eb2cc1