{"id":25607,"date":"2026-09-18T04:31:37","date_gmt":"2026-09-17T20:31:37","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-90198"},"modified":"2026-09-18T04:31:37","modified_gmt":"2026-09-17T20:31:37","slug":"cve-2026-90198","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-90198","title":{"rendered":"CVE-2026-90198 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: core: Fix use-a"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>ALSA: core: Fix use-after-free in snd_card_do_free()<\/p>\n<p>A use-after-free was detected in snd_card_do_free() when a sound card<br \/>\nmanaged by devres is unbound while a user-space application still holds an<br \/>\nopen file descriptor.<\/p>\n<p>For managed cards, the memory is allocated using devres_alloc(), and its<br \/>\nrelease function is set to __snd_card_release(), which calls<br \/>\nsnd_card_free(). When the device is unbound, the unbind thread calls<br \/>\nsnd_card_free(), which drops a reference to the card&#8217;s device. If the user<br \/>\nthread still has an open file descriptor, the reference count does not<br \/>\nreach zero, and the unbind thread blocks on wait_for_completion(&amp;released).<\/p>\n<p>When the user thread closes the file descriptor, it drops the final<br \/>\nreference, invoking the device release callback release_card_device(),<br \/>\nwhich calls snd_card_do_free(). snd_card_do_free() performs cleanup and<br \/>\ncalls complete(card-&gt;release_completion). This wakes up the unbind thread,<br \/>\nwhich returns from snd_card_free() and __snd_card_release(). The devres<br \/>\ncore then immediately frees the memory block containing the snd_card<br \/>\nstructure.<\/p>\n<p>Meanwhile, the user thread continues execution in snd_card_do_free() and<br \/>\nevaluates `if (!card-&gt;managed)`. It reads the `managed` boolean from the<br \/>\nsnd_card structure that was just freed by the unbind thread, triggering a<br \/>\nKASAN use-after-free.<\/p>\n<p>Fix this by caching the value of card-&gt;managed in a local variable before<br \/>\ncalling complete(). This ensures that the card pointer is not dereferenced<br \/>\nafter the unbind thread has been woken up and potentially freed the card.<\/p>\n<p>BUG: KASAN: use-after-free in snd_card_do_free sound\/core\/init.c:604<br \/>\n[inline]<br \/>\nBUG: KASAN: use-after-free in release_card_device+0x1ab\/0x1b0<br \/>\nsound\/core\/init.c:153<br \/>\nRead of size 1 at addr ffff8881912ec909 by task syz-executor130\/5857<\/p>\n<p>Call Trace:<\/p>\n<p> dump_stack_lvl+0xe8\/0x150 lib\/dump_stack.c:120<br \/>\n print_address_description+0x55\/0x1e0 mm\/kasan\/report.c:378<br \/>\n print_report+0x58\/0x70 mm\/kasan\/report.c:482<br \/>\n kasan_report+0x117\/0x150 mm\/kasan\/report.c:595<br \/>\n snd_card_do_free sound\/core\/init.c:604 [inline]<br \/>\n release_card_device+0x1ab\/0x1b0 sound\/core\/init.c:153<br \/>\n device_release+0xc4\/0x1f0 drivers\/base\/core.c:-1<br \/>\n kobject_cleanup lib\/kobject.c:689 [inline]<br \/>\n kobject_release lib\/kobject.c:720 [inline]<br \/>\n kref_put include\/linux\/kref.h:65 [inline]<br \/>\n kobject_put+0x222\/0x550 lib\/kobject.c:737<br \/>\n snd_card_file_remove+0x331\/0x390 sound\/core\/init.c:1125<br \/>\n snd_pcm_release+0x12c\/0x160 sound\/core\/pcm_native.c:2986<br \/>\n __fput+0x418\/0xa50 fs\/file_table.c:512<br \/>\n fput_close_sync+0x11f\/0x240 fs\/file_table.c:617<br \/>\n __do_sys_close fs\/open.c:1511 [inline]<br \/>\n __se_sys_close fs\/open.c:1496 [inline]<br \/>\n __x64_sys_close+0x7e\/0x110 fs\/open.c:1496<br \/>\n do_syscall_x64 arch\/x86\/entry\/syscall_64.c:63 [inline]<br \/>\n do_syscall_64+0x174\/0x580 arch\/x86\/entry\/syscall_64.c:94<br \/>\n entry_SYSCALL_64_after_hwframe+0x77\/0x7f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>ALSA: core: Fix use-after-free in snd_card_do_free()<\/p>\n<p>A use-after-free was detected in snd_card_do_free() when a sound card<br \/>\nmanaged<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-25607","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/25607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}