{"api_version":"1","generated_at":"2026-11-30T18:22:09+00:00","cve":"CVE-2026-139384","urls":{"html":"https://cve.report/CVE-2026-139384","api":"https://cve.report/api/cve/CVE-2026-139384.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139384","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139384"},"summary":{"title":"ALSA: pcm: Unlink substreams before releasing them","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: Unlink substreams before releasing them\n\nA closing PCM substream can remain in its linked group after the\ndriver close callback has freed its private data. With two configured\ndummy capture substreams on the same PCM device, linked with LINK,\nPREPARE on the surviving substream can still visit the closing member:\n\n  Final close of A                   PREPARE on linked B\n  ----------------                   -------------------\n  snd_pcm_drop(): group -> SETUP\n  do_hw_free(A)\n  dummy_pcm_close(A): free dpcm\n                                     Take snd_pcm_link_rwsem for reading\n                                     Walk the group, including A\n                                     dummy_pcm_prepare(A)\n                                       Read freed timer_ops\n  pcm_release_private(A)\n    snd_pcm_unlink(A)\n\nUnlink at the start of final substream release, before dropping the\nstream or releasing driver resources. The link write lock waits for\nan existing group PREPARE, and unlink removes the closing member from\nlater group actions. Keep the existing stop synchronization in\ndo_hw_free() before the driver resources are freed.\n\nMake unlink independent of the pcm_release callback so OSS substreams\nare covered too. Remove the native-only unlink callback and its\nregistration, while retaining the callback hook for OSS cleanup.\n\nThe existing KASAN report below records the freed timer_ops read in\ndummy_pcm_prepare().\n\nKASAN report as below:\n\n    BUG: KASAN: slab-use-after-free in dummy_pcm_prepare+0xb7/0xc0\n    Read of size 8 at addr ffff888106b35f00 by task alsa_pcm_fixtur/491\n\n    Call Trace:\n     <TASK>\n     dump_stack_lvl+0x93/0xd0\n     print_report+0xce/0x630\n     ? dummy_pcm_prepare+0xb7/0xc0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __virt_addr_valid+0x20d/0x410\n     ? dummy_pcm_prepare+0xb7/0xc0\n     kasan_report+0xe0/0x110\n     ? dummy_pcm_prepare+0xb7/0xc0\n     dummy_pcm_prepare+0xb7/0xc0\n     snd_pcm_do_prepare+0x71/0xb0\n     snd_pcm_action_group+0x505/0xb30\n     snd_pcm_action_nonatomic+0xab/0x150\n     snd_pcm_common_ioctl+0x1bf5/0x3a50\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? do_vfs_ioctl+0x1f5/0x1280\n     ? __pfx_do_vfs_ioctl+0x10/0x10\n     ? ioctl_has_perm.constprop.0.isra.0+0x34f/0x500\n     ? __pfx_snd_pcm_common_ioctl+0x10/0x10\n     ? __fput+0x5ba/0xa60\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     snd_pcm_ioctl+0x76/0xb0\n     ? __pfx_snd_pcm_ioctl+0x10/0x10\n     __x64_sys_ioctl+0x163/0x1d0\n     do_syscall_64+0x115/0x6a0\n     entry_SYSCALL_64_after_hwframe+0x77/0x7f\n    RIP: 0033:0x41ee8d\n    Code: 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8d 45 10 c7 45 b0 10 00 00 00 48 89 45 b8 48 8d 45 d0 48 89 45 c0 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1a 48 8b 45 c8 64 48 2b 04 25 28 00 00 00\n    RSP: 002b:00007ffcfa72fb60 EFLAGS: 00000246 ORIG_RAX: 0000000000000010\n    RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000041ee8d\n    RDX: 0000000000000000 RSI: 0000000000004140 RDI: 0000000000000004\n    RBP: 00007ffcfa72fbb0 R08: 00007ffcfa72fb98 R09: 0000000000000110\n    R10: 0000000000000001 R11: 0000000000000246 R12: 00007ffcfa72fcd8\n    R13: 00007ffcfa72fcf0 R14: 00000000004a8f28 R15: 0000000000000001\n     </TASK>\n\n    Allocated by task 488:\n     kasan_save_stack+0x33/0x60\n     kasan_save_track+0x14/0x30\n     __kasan_kmalloc+0xaa/0xb0\n     __kmalloc_cache_noprof+0x251/0x610\n     dummy_hrtimer_create+0x4a/0x170\n     dummy_pcm_open+0xe7/0x730\n     snd_pcm_open_substream+0x926/0x1580\n     snd_pcm_open+0x28d/0x6d0\n     snd_pcm_capture_open+0x82/0xe0\n     snd_open+0x1ec/0x3e0\n     chrdev_open+0x21f/0x660\n     do_dentry_open+0x5c8/0x1300\n     vfs_open+0x87/0x390\n     path_openat+0x2460/0x3cd0\n     do_file_open+0x21e/0x470\n     do_sys_openat2+0xf4/0x1b0\n     __x64_sys_openat+0x136/0x1e0\n     do_syscall_64+0x115/0x6a0\n     entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\n    Freed by task 490:\n     kasan_save_stack+0x33/0\n---truncated---","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:05","updated_at":"2026-11-30 14:19:05"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/bf3ef3f1610b59e13c3df322879f7cc16f545376","name":"https://git.kernel.org/stable/c/bf3ef3f1610b59e13c3df322879f7cc16f545376","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/00f5db92d9e949cf28db557bc769e3d6245f1b27","name":"https://git.kernel.org/stable/c/00f5db92d9e949cf28db557bc769e3d6245f1b27","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d1e57f8fb7a6b6d32a4aaa31fd6fc4c77339608f","name":"https://git.kernel.org/stable/c/d1e57f8fb7a6b6d32a4aaa31fd6fc4c77339608f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ac38ef8274d07329afe427aa5a9cdaa65a136293","name":"https://git.kernel.org/stable/c/ac38ef8274d07329afe427aa5a9cdaa65a136293","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/130569846c6b01d805543639efc3317b983d6df0","name":"https://git.kernel.org/stable/c/130569846c6b01d805543639efc3317b983d6df0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b801d565cf60ce9d439db12b2ccd0b098c8cfd4d","name":"https://git.kernel.org/stable/c/b801d565cf60ce9d439db12b2ccd0b098c8cfd4d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/43c1f6f436068f4513c2a82939470954e466aeca","name":"https://git.kernel.org/stable/c/43c1f6f436068f4513c2a82939470954e466aeca","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f6b2626d142bb17df3469c7406ebd8e1c04ec309","name":"https://git.kernel.org/stable/c/f6b2626d142bb17df3469c7406ebd8e1c04ec309","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139384","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139384","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1576274d30286dd048967176dc8e75e192051ff5 bf3ef3f1610b59e13c3df322879f7cc16f545376 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1576274d30286dd048967176dc8e75e192051ff5 f6b2626d142bb17df3469c7406ebd8e1c04ec309 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1576274d30286dd048967176dc8e75e192051ff5 130569846c6b01d805543639efc3317b983d6df0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1576274d30286dd048967176dc8e75e192051ff5 00f5db92d9e949cf28db557bc769e3d6245f1b27 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1576274d30286dd048967176dc8e75e192051ff5 b801d565cf60ce9d439db12b2ccd0b098c8cfd4d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1576274d30286dd048967176dc8e75e192051ff5 43c1f6f436068f4513c2a82939470954e466aeca git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1576274d30286dd048967176dc8e75e192051ff5 ac38ef8274d07329afe427aa5a9cdaa65a136293 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1576274d30286dd048967176dc8e75e192051ff5 d1e57f8fb7a6b6d32a4aaa31fd6fc4c77339608f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.17","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.17 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["sound/core/pcm_native.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"bf3ef3f1610b59e13c3df322879f7cc16f545376","status":"affected","version":"1576274d30286dd048967176dc8e75e192051ff5","versionType":"git"},{"lessThan":"f6b2626d142bb17df3469c7406ebd8e1c04ec309","status":"affected","version":"1576274d30286dd048967176dc8e75e192051ff5","versionType":"git"},{"lessThan":"130569846c6b01d805543639efc3317b983d6df0","status":"affected","version":"1576274d30286dd048967176dc8e75e192051ff5","versionType":"git"},{"lessThan":"00f5db92d9e949cf28db557bc769e3d6245f1b27","status":"affected","version":"1576274d30286dd048967176dc8e75e192051ff5","versionType":"git"},{"lessThan":"b801d565cf60ce9d439db12b2ccd0b098c8cfd4d","status":"affected","version":"1576274d30286dd048967176dc8e75e192051ff5","versionType":"git"},{"lessThan":"43c1f6f436068f4513c2a82939470954e466aeca","status":"affected","version":"1576274d30286dd048967176dc8e75e192051ff5","versionType":"git"},{"lessThan":"ac38ef8274d07329afe427aa5a9cdaa65a136293","status":"affected","version":"1576274d30286dd048967176dc8e75e192051ff5","versionType":"git"},{"lessThan":"d1e57f8fb7a6b6d32a4aaa31fd6fc4c77339608f","status":"affected","version":"1576274d30286dd048967176dc8e75e192051ff5","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["sound/core/pcm_native.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.17"},{"lessThan":"2.6.17","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"2.6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"2.6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"2.6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"2.6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"2.6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"2.6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"2.6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"2.6.17","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: Unlink substreams before releasing them\n\nA closing PCM substream can remain in its linked group after the\ndriver close callback has freed its private data. With two configured\ndummy capture substreams on the same PCM device, linked with LINK,\nPREPARE on the surviving substream can still visit the closing member:\n\n  Final close of A                   PREPARE on linked B\n  ----------------                   -------------------\n  snd_pcm_drop(): group -> SETUP\n  do_hw_free(A)\n  dummy_pcm_close(A): free dpcm\n                                     Take snd_pcm_link_rwsem for reading\n                                     Walk the group, including A\n                                     dummy_pcm_prepare(A)\n                                       Read freed timer_ops\n  pcm_release_private(A)\n    snd_pcm_unlink(A)\n\nUnlink at the start of final substream release, before dropping the\nstream or releasing driver resources. The link write lock waits for\nan existing group PREPARE, and unlink removes the closing member from\nlater group actions. Keep the existing stop synchronization in\ndo_hw_free() before the driver resources are freed.\n\nMake unlink independent of the pcm_release callback so OSS substreams\nare covered too. Remove the native-only unlink callback and its\nregistration, while retaining the callback hook for OSS cleanup.\n\nThe existing KASAN report below records the freed timer_ops read in\ndummy_pcm_prepare().\n\nKASAN report as below:\n\n    BUG: KASAN: slab-use-after-free in dummy_pcm_prepare+0xb7/0xc0\n    Read of size 8 at addr ffff888106b35f00 by task alsa_pcm_fixtur/491\n\n    Call Trace:\n     <TASK>\n     dump_stack_lvl+0x93/0xd0\n     print_report+0xce/0x630\n     ? dummy_pcm_prepare+0xb7/0xc0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __virt_addr_valid+0x20d/0x410\n     ? dummy_pcm_prepare+0xb7/0xc0\n     kasan_report+0xe0/0x110\n     ? dummy_pcm_prepare+0xb7/0xc0\n     dummy_pcm_prepare+0xb7/0xc0\n     snd_pcm_do_prepare+0x71/0xb0\n     snd_pcm_action_group+0x505/0xb30\n     snd_pcm_action_nonatomic+0xab/0x150\n     snd_pcm_common_ioctl+0x1bf5/0x3a50\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? do_vfs_ioctl+0x1f5/0x1280\n     ? __pfx_do_vfs_ioctl+0x10/0x10\n     ? ioctl_has_perm.constprop.0.isra.0+0x34f/0x500\n     ? __pfx_snd_pcm_common_ioctl+0x10/0x10\n     ? __fput+0x5ba/0xa60\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     snd_pcm_ioctl+0x76/0xb0\n     ? __pfx_snd_pcm_ioctl+0x10/0x10\n     __x64_sys_ioctl+0x163/0x1d0\n     do_syscall_64+0x115/0x6a0\n     entry_SYSCALL_64_after_hwframe+0x77/0x7f\n    RIP: 0033:0x41ee8d\n    Code: 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8d 45 10 c7 45 b0 10 00 00 00 48 89 45 b8 48 8d 45 d0 48 89 45 c0 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1a 48 8b 45 c8 64 48 2b 04 25 28 00 00 00\n    RSP: 002b:00007ffcfa72fb60 EFLAGS: 00000246 ORIG_RAX: 0000000000000010\n    RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000041ee8d\n    RDX: 0000000000000000 RSI: 0000000000004140 RDI: 0000000000000004\n    RBP: 00007ffcfa72fbb0 R08: 00007ffcfa72fb98 R09: 0000000000000110\n    R10: 0000000000000001 R11: 0000000000000246 R12: 00007ffcfa72fcd8\n    R13: 00007ffcfa72fcf0 R14: 00000000004a8f28 R15: 0000000000000001\n     </TASK>\n\n    Allocated by task 488:\n     kasan_save_stack+0x33/0x60\n     kasan_save_track+0x14/0x30\n     __kasan_kmalloc+0xaa/0xb0\n     __kmalloc_cache_noprof+0x251/0x610\n     dummy_hrtimer_create+0x4a/0x170\n     dummy_pcm_open+0xe7/0x730\n     snd_pcm_open_substream+0x926/0x1580\n     snd_pcm_open+0x28d/0x6d0\n     snd_pcm_capture_open+0x82/0xe0\n     snd_open+0x1ec/0x3e0\n     chrdev_open+0x21f/0x660\n     do_dentry_open+0x5c8/0x1300\n     vfs_open+0x87/0x390\n     path_openat+0x2460/0x3cd0\n     do_file_open+0x21e/0x470\n     do_sys_openat2+0xf4/0x1b0\n     __x64_sys_openat+0x136/0x1e0\n     do_syscall_64+0x115/0x6a0\n     entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\n    Freed by task 490:\n     kasan_save_stack+0x33/0\n---truncated---"}],"providerMetadata":{"dateUpdated":"2026-11-30T13:34:15.499Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/bf3ef3f1610b59e13c3df322879f7cc16f545376"},{"url":"https://git.kernel.org/stable/c/f6b2626d142bb17df3469c7406ebd8e1c04ec309"},{"url":"https://git.kernel.org/stable/c/130569846c6b01d805543639efc3317b983d6df0"},{"url":"https://git.kernel.org/stable/c/00f5db92d9e949cf28db557bc769e3d6245f1b27"},{"url":"https://git.kernel.org/stable/c/b801d565cf60ce9d439db12b2ccd0b098c8cfd4d"},{"url":"https://git.kernel.org/stable/c/43c1f6f436068f4513c2a82939470954e466aeca"},{"url":"https://git.kernel.org/stable/c/ac38ef8274d07329afe427aa5a9cdaa65a136293"},{"url":"https://git.kernel.org/stable/c/d1e57f8fb7a6b6d32a4aaa31fd6fc4c77339608f"}],"title":"ALSA: pcm: Unlink substreams before releasing them","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139384","datePublished":"2026-11-30T13:34:15.499Z","dateReserved":"2026-11-30T13:22:15.930Z","dateUpdated":"2026-11-30T13:34:15.499Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:05","lastModifiedDate":"2026-11-30 14:19:05","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139384","Ordinal":"1","Title":"ALSA: pcm: Unlink substreams before releasing them","CVE":"CVE-2026-139384","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139384","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: Unlink substreams before releasing them\n\nA closing PCM substream can remain in its linked group after the\ndriver close callback has freed its private data. With two configured\ndummy capture substreams on the same PCM device, linked with LINK,\nPREPARE on the surviving substream can still visit the closing member:\n\n  Final close of A                   PREPARE on linked B\n  ----------------                   -------------------\n  snd_pcm_drop(): group -> SETUP\n  do_hw_free(A)\n  dummy_pcm_close(A): free dpcm\n                                     Take snd_pcm_link_rwsem for reading\n                                     Walk the group, including A\n                                     dummy_pcm_prepare(A)\n                                       Read freed timer_ops\n  pcm_release_private(A)\n    snd_pcm_unlink(A)\n\nUnlink at the start of final substream release, before dropping the\nstream or releasing driver resources. The link write lock waits for\nan existing group PREPARE, and unlink removes the closing member from\nlater group actions. Keep the existing stop synchronization in\ndo_hw_free() before the driver resources are freed.\n\nMake unlink independent of the pcm_release callback so OSS substreams\nare covered too. Remove the native-only unlink callback and its\nregistration, while retaining the callback hook for OSS cleanup.\n\nThe existing KASAN report below records the freed timer_ops read in\ndummy_pcm_prepare().\n\nKASAN report as below:\n\n    BUG: KASAN: slab-use-after-free in dummy_pcm_prepare+0xb7/0xc0\n    Read of size 8 at addr ffff888106b35f00 by task alsa_pcm_fixtur/491\n\n    Call Trace:\n     <TASK>\n     dump_stack_lvl+0x93/0xd0\n     print_report+0xce/0x630\n     ? dummy_pcm_prepare+0xb7/0xc0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __virt_addr_valid+0x20d/0x410\n     ? dummy_pcm_prepare+0xb7/0xc0\n     kasan_report+0xe0/0x110\n     ? dummy_pcm_prepare+0xb7/0xc0\n     dummy_pcm_prepare+0xb7/0xc0\n     snd_pcm_do_prepare+0x71/0xb0\n     snd_pcm_action_group+0x505/0xb30\n     snd_pcm_action_nonatomic+0xab/0x150\n     snd_pcm_common_ioctl+0x1bf5/0x3a50\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? do_vfs_ioctl+0x1f5/0x1280\n     ? __pfx_do_vfs_ioctl+0x10/0x10\n     ? ioctl_has_perm.constprop.0.isra.0+0x34f/0x500\n     ? __pfx_snd_pcm_common_ioctl+0x10/0x10\n     ? __fput+0x5ba/0xa60\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     snd_pcm_ioctl+0x76/0xb0\n     ? __pfx_snd_pcm_ioctl+0x10/0x10\n     __x64_sys_ioctl+0x163/0x1d0\n     do_syscall_64+0x115/0x6a0\n     entry_SYSCALL_64_after_hwframe+0x77/0x7f\n    RIP: 0033:0x41ee8d\n    Code: 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8d 45 10 c7 45 b0 10 00 00 00 48 89 45 b8 48 8d 45 d0 48 89 45 c0 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1a 48 8b 45 c8 64 48 2b 04 25 28 00 00 00\n    RSP: 002b:00007ffcfa72fb60 EFLAGS: 00000246 ORIG_RAX: 0000000000000010\n    RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000041ee8d\n    RDX: 0000000000000000 RSI: 0000000000004140 RDI: 0000000000000004\n    RBP: 00007ffcfa72fbb0 R08: 00007ffcfa72fb98 R09: 0000000000000110\n    R10: 0000000000000001 R11: 0000000000000246 R12: 00007ffcfa72fcd8\n    R13: 00007ffcfa72fcf0 R14: 00000000004a8f28 R15: 0000000000000001\n     </TASK>\n\n    Allocated by task 488:\n     kasan_save_stack+0x33/0x60\n     kasan_save_track+0x14/0x30\n     __kasan_kmalloc+0xaa/0xb0\n     __kmalloc_cache_noprof+0x251/0x610\n     dummy_hrtimer_create+0x4a/0x170\n     dummy_pcm_open+0xe7/0x730\n     snd_pcm_open_substream+0x926/0x1580\n     snd_pcm_open+0x28d/0x6d0\n     snd_pcm_capture_open+0x82/0xe0\n     snd_open+0x1ec/0x3e0\n     chrdev_open+0x21f/0x660\n     do_dentry_open+0x5c8/0x1300\n     vfs_open+0x87/0x390\n     path_openat+0x2460/0x3cd0\n     do_file_open+0x21e/0x470\n     do_sys_openat2+0xf4/0x1b0\n     __x64_sys_openat+0x136/0x1e0\n     do_syscall_64+0x115/0x6a0\n     entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\n    Freed by task 490:\n     kasan_save_stack+0x33/0\n---truncated---","Type":"Description","Title":"ALSA: pcm: Unlink substreams before releasing them"}]}}}