{"id":"CVE-2026-139351","state":"PUBLISHED","title":"ALSA: core: Serialize snd_refcount put and sync","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: core: Serialize snd_refcount put and sync\n\nWhen a thread tries to sync-and-destroy the resource with\nsnd_refcount_sync(), it might lead to a UAF in a very slight time\nwindow.  Namely, snd_refount_put() calls wake_up() after\natomic_dec_and_test(), but wait_event() in snd_refcount_sync() checks\nthe condition via atomic_test() without serialization, hence the\nthread that called snd_refcount_sync() can continue immediately to\nrelease the resource before another thread calls wake_up().\n\nFor avoiding the race above, introduce the spinlock and take it at\nsnd_refcount_put() and snd_refcount_sync() in order to serialize the\noperations.","publishedAt":"2026-11-30T13:33:57.476Z","updatedAt":"2026-11-30T13:33:57.476Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ace34a5be975b0f1ae6878a7dd536c4929473765","status":"affected","lessThan":"182e3635d217678be47d9b6ca8fe4269a9b12e74","versionType":"git"},{"version":"3cad562cf4de4d1b9fd46511f0b313986fec8240","status":"affected","lessThan":"e2c1efb23d124d5479813b57ed20934d281993f9","versionType":"git"},{"version":"43b4b873ed5c36d4f2fdfa315917770d770964d1","status":"affected","lessThan":"d27b48f61f9c7e55b4d9dcdddf5c396121b658ff","versionType":"git"},{"version":"f9c0604b1bff23ae3206afdc75ac18549b16b40a","status":"affected","lessThan":"fb9232201be10e96c50cc8162acf10d77ec20d1a","versionType":"git"},{"version":"1842d0f045ca1d5547adbd0d0579d050139e139d","status":"affected","lessThan":"6939ffcfdf93d2a46bbfceced1166bd59906632e","versionType":"git"},{"version":"dcca9b6064c33c84fbeb9f09814178a206321249","status":"affected","lessThan":"e457ae1fcecd197deb25c7840b7e926a91f20f60","versionType":"git"},{"version":"dcca9b6064c33c84fbeb9f09814178a206321249","status":"affected","lessThan":"6904743ab77e0684dff319f3806ef982e5eea6cf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/core.h","sound/core/misc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.2","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/core.h","sound/core/misc.c"]}],"references":["https://git.kernel.org/stable/c/182e3635d217678be47d9b6ca8fe4269a9b12e74","https://git.kernel.org/stable/c/e2c1efb23d124d5479813b57ed20934d281993f9","https://git.kernel.org/stable/c/d27b48f61f9c7e55b4d9dcdddf5c396121b658ff","https://git.kernel.org/stable/c/fb9232201be10e96c50cc8162acf10d77ec20d1a","https://git.kernel.org/stable/c/6939ffcfdf93d2a46bbfceced1166bd59906632e","https://git.kernel.org/stable/c/e457ae1fcecd197deb25c7840b7e926a91f20f60","https://git.kernel.org/stable/c/6904743ab77e0684dff319f3806ef982e5eea6cf"],"weaknesses":[],"ingestedAt":"2026-11-30T13:48:04.491Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139351.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139351","state":"PUBLISHED","datePublished":"2026-11-30T13:33:57.476Z","dateUpdated":"2026-11-30T13:33:57.476Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.928Z"},"containers":{"cna":{"title":"ALSA: core: Serialize snd_refcount put and sync","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: core: Serialize snd_refcount put and sync\n\nWhen a thread tries to sync-and-destroy the resource with\nsnd_refcount_sync(), it might lead to a UAF in a very slight time\nwindow.  Namely, snd_refount_put() calls wake_up() after\natomic_dec_and_test(), but wait_event() in snd_refcount_sync() checks\nthe condition via atomic_test() without serialization, hence the\nthread that called snd_refcount_sync() can continue immediately to\nrelease the resource before another thread calls wake_up().\n\nFor avoiding the race above, introduce the spinlock and take it at\nsnd_refcount_put() and snd_refcount_sync() in order to serialize the\noperations."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ace34a5be975b0f1ae6878a7dd536c4929473765","status":"affected","lessThan":"182e3635d217678be47d9b6ca8fe4269a9b12e74","versionType":"git"},{"version":"3cad562cf4de4d1b9fd46511f0b313986fec8240","status":"affected","lessThan":"e2c1efb23d124d5479813b57ed20934d281993f9","versionType":"git"},{"version":"43b4b873ed5c36d4f2fdfa315917770d770964d1","status":"affected","lessThan":"d27b48f61f9c7e55b4d9dcdddf5c396121b658ff","versionType":"git"},{"version":"f9c0604b1bff23ae3206afdc75ac18549b16b40a","status":"affected","lessThan":"fb9232201be10e96c50cc8162acf10d77ec20d1a","versionType":"git"},{"version":"1842d0f045ca1d5547adbd0d0579d050139e139d","status":"affected","lessThan":"6939ffcfdf93d2a46bbfceced1166bd59906632e","versionType":"git"},{"version":"dcca9b6064c33c84fbeb9f09814178a206321249","status":"affected","lessThan":"e457ae1fcecd197deb25c7840b7e926a91f20f60","versionType":"git"},{"version":"dcca9b6064c33c84fbeb9f09814178a206321249","status":"affected","lessThan":"6904743ab77e0684dff319f3806ef982e5eea6cf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/core.h","sound/core/misc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.2","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/core.h","sound/core/misc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/182e3635d217678be47d9b6ca8fe4269a9b12e74"},{"url":"https://git.kernel.org/stable/c/e2c1efb23d124d5479813b57ed20934d281993f9"},{"url":"https://git.kernel.org/stable/c/d27b48f61f9c7e55b4d9dcdddf5c396121b658ff"},{"url":"https://git.kernel.org/stable/c/fb9232201be10e96c50cc8162acf10d77ec20d1a"},{"url":"https://git.kernel.org/stable/c/6939ffcfdf93d2a46bbfceced1166bd59906632e"},{"url":"https://git.kernel.org/stable/c/e457ae1fcecd197deb25c7840b7e926a91f20f60"},{"url":"https://git.kernel.org/stable/c/6904743ab77e0684dff319f3806ef982e5eea6cf"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:57.476Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}