{"id":"CVE-2026-139203","state":"PUBLISHED","title":"ALSA: ump: Drain sequencer callbacks before freeing their client","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: ump: Drain sequencer callbacks before freeing their client\n\nseq_ump_client_free() cancels group_notify_work while the endpoint still\npublishes seq_ops and seq_client. A received Function Block update can\nenter the sequencer callback after cancellation and queue the work again.\nEven disabling the work cannot protect a callback that already loaded\nseq_client and then resumes after the client has been freed.\n\nA USB UMP endpoint can continue receiving while its sequencer binding\nis removed. The following order uses the same endpoint and client:\n\n  Sequencer binding removal             UMP input completion\n  -------------------------             --------------------\n  cancel_work_sync()\n                                        load seq_ops and seq_client\n  delete sequencer client\n  clear endpoint binding\n  kfree(client)\n                                        schedule group_notify_work\n                                        read client->seq_client\n\nCover all calls through seq_ops with SRCU in the UMP core. Withdraw the\noperations pointer and wait for those callbacks before canceling work\nand deleting the client. No producer can then queue work after the final\ncancellation, and both the client and callback code remain available\nuntil the last in-flight callback returns.\n\nPublish seq_ops with release/acquire ordering so the separately stored\nseq_client is initialized before any callback uses it. Use SRCU because\nsequencer notification delivery can sleep; no callback needs to change\nits existing execution context or allocation behavior.","publishedAt":"2026-11-30T13:32:31.993Z","updatedAt":"2026-11-30T13:32:31.993Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4a16a3af05712e7fd5a205f34e2908055bd9fb5e","status":"affected","lessThan":"257c999b0a11912f08daeee86078b2139cdeb79f","versionType":"git"},{"version":"4a16a3af05712e7fd5a205f34e2908055bd9fb5e","status":"affected","lessThan":"becb29ee5eacd3251783d891f6c0d39140e37ec1","versionType":"git"},{"version":"4a16a3af05712e7fd5a205f34e2908055bd9fb5e","status":"affected","lessThan":"c88dbfbd092315cabf71deccd8685541186f8533","versionType":"git"},{"version":"4a16a3af05712e7fd5a205f34e2908055bd9fb5e","status":"affected","lessThan":"9b30046de03acb3b3f2135d45af6be7ee0b565b6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/ump.h","sound/core/seq/seq_ump_client.c","sound/core/ump.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.5","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/ump.h","sound/core/seq/seq_ump_client.c","sound/core/ump.c"]}],"references":["https://git.kernel.org/stable/c/257c999b0a11912f08daeee86078b2139cdeb79f","https://git.kernel.org/stable/c/becb29ee5eacd3251783d891f6c0d39140e37ec1","https://git.kernel.org/stable/c/c88dbfbd092315cabf71deccd8685541186f8533","https://git.kernel.org/stable/c/9b30046de03acb3b3f2135d45af6be7ee0b565b6"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139203.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139203","state":"PUBLISHED","datePublished":"2026-11-30T13:32:31.993Z","dateUpdated":"2026-11-30T13:32:31.993Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.920Z"},"containers":{"cna":{"title":"ALSA: ump: Drain sequencer callbacks before freeing their client","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: ump: Drain sequencer callbacks before freeing their client\n\nseq_ump_client_free() cancels group_notify_work while the endpoint still\npublishes seq_ops and seq_client. A received Function Block update can\nenter the sequencer callback after cancellation and queue the work again.\nEven disabling the work cannot protect a callback that already loaded\nseq_client and then resumes after the client has been freed.\n\nA USB UMP endpoint can continue receiving while its sequencer binding\nis removed. The following order uses the same endpoint and client:\n\n  Sequencer binding removal             UMP input completion\n  -------------------------             --------------------\n  cancel_work_sync()\n                                        load seq_ops and seq_client\n  delete sequencer client\n  clear endpoint binding\n  kfree(client)\n                                        schedule group_notify_work\n                                        read client->seq_client\n\nCover all calls through seq_ops with SRCU in the UMP core. Withdraw the\noperations pointer and wait for those callbacks before canceling work\nand deleting the client. No producer can then queue work after the final\ncancellation, and both the client and callback code remain available\nuntil the last in-flight callback returns.\n\nPublish seq_ops with release/acquire ordering so the separately stored\nseq_client is initialized before any callback uses it. Use SRCU because\nsequencer notification delivery can sleep; no callback needs to change\nits existing execution context or allocation behavior."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4a16a3af05712e7fd5a205f34e2908055bd9fb5e","status":"affected","lessThan":"257c999b0a11912f08daeee86078b2139cdeb79f","versionType":"git"},{"version":"4a16a3af05712e7fd5a205f34e2908055bd9fb5e","status":"affected","lessThan":"becb29ee5eacd3251783d891f6c0d39140e37ec1","versionType":"git"},{"version":"4a16a3af05712e7fd5a205f34e2908055bd9fb5e","status":"affected","lessThan":"c88dbfbd092315cabf71deccd8685541186f8533","versionType":"git"},{"version":"4a16a3af05712e7fd5a205f34e2908055bd9fb5e","status":"affected","lessThan":"9b30046de03acb3b3f2135d45af6be7ee0b565b6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/ump.h","sound/core/seq/seq_ump_client.c","sound/core/ump.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.5","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/ump.h","sound/core/seq/seq_ump_client.c","sound/core/ump.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/257c999b0a11912f08daeee86078b2139cdeb79f"},{"url":"https://git.kernel.org/stable/c/becb29ee5eacd3251783d891f6c0d39140e37ec1"},{"url":"https://git.kernel.org/stable/c/c88dbfbd092315cabf71deccd8685541186f8533"},{"url":"https://git.kernel.org/stable/c/9b30046de03acb3b3f2135d45af6be7ee0b565b6"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:31.993Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}