Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
fa7c9cc3cb310a6c51923c135991eb206ce6a821 to < 8e2a01649b529b4baa90c38af621f2ecf381860caffected2dac108b9dd7fa08450750dec10ba5db429c8817 to < 4b5567888516594bf2595ddd927a7bf664eb2cc1affectedc7a60651953359f98dbf24b43e1bf561e1573ed4 to < d4b27352e4e1f764535ecce3bed36fa0f3b4e446affectedc7a60651953359f98dbf24b43e1bf561e1573ed4 to < cc045f5e432e7c647737f2fa1c95b296ed070b4eaffectedc7a60651953359f98dbf24b43e1bf561e1573ed4 to < 94b93c64b5ef07af6aca8efac7ada1a94cfcad5caffectedc7a60651953359f98dbf24b43e1bf561e1573ed4 to < a3e8eec7692eac706ba0934fa18453e46acd1a08affectedb6f7b2c1acee124bd88a90702064aabec9cace52affected9f3d7b6a0d2b70abe94ecd6850db087385c8aed3affected4ef452297de48cd0407f8b8ed45834beeb500a01affecteda681d28b973fd446c75b11dbc17592a214a6eef1affected767c988771cb56ffcfbf18ab3d0061573c1c110aaffected746820e6963a687508aac6dc5c02048e2201fd64affected6.1.64 to < 6.1.193affected6.6.3 to < 6.6.163affected4.14.331 to < 4.15affected4.19.300 to < 4.20affected5.4.262 to < 5.5affected5.10.202 to < 5.11affected5.15.140 to < 5.16affected6.5.13 to < 6.6affected
Linux Linux
Default version status: affected
6.7affected0 to < 6.7unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/8e2a01649b529b4baa90c38af621f2ecf381860c ↗
- https://git.kernel.org/stable/c/4b5567888516594bf2595ddd927a7bf664eb2cc1 ↗
- https://git.kernel.org/stable/c/d4b27352e4e1f764535ecce3bed36fa0f3b4e446 ↗
- https://git.kernel.org/stable/c/cc045f5e432e7c647737f2fa1c95b296ed070b4e ↗
- https://git.kernel.org/stable/c/94b93c64b5ef07af6aca8efac7ada1a94cfcad5c ↗
- https://git.kernel.org/stable/c/a3e8eec7692eac706ba0934fa18453e46acd1a08 ↗