{"id":"CVE-2026-139351","summary":"ALSA: core: Serialize snd_refcount put and sync","details":"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.","modified":"2026-12-01T21:02:37.759360295Z","published":"2026-11-30T13:33:57.476Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139351.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/182e3635d217678be47d9b6ca8fe4269a9b12e74"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6904743ab77e0684dff319f3806ef982e5eea6cf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6939ffcfdf93d2a46bbfceced1166bd59906632e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d27b48f61f9c7e55b4d9dcdddf5c396121b658ff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e2c1efb23d124d5479813b57ed20934d281993f9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e457ae1fcecd197deb25c7840b7e926a91f20f60"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fb9232201be10e96c50cc8162acf10d77ec20d1a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139351.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139351"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ace34a5be975b0f1ae6878a7dd536c4929473765"},{"fixed":"182e3635d217678be47d9b6ca8fe4269a9b12e74"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3cad562cf4de4d1b9fd46511f0b313986fec8240"},{"fixed":"e2c1efb23d124d5479813b57ed20934d281993f9"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"43b4b873ed5c36d4f2fdfa315917770d770964d1"},{"fixed":"d27b48f61f9c7e55b4d9dcdddf5c396121b658ff"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f9c0604b1bff23ae3206afdc75ac18549b16b40a"},{"fixed":"fb9232201be10e96c50cc8162acf10d77ec20d1a"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1842d0f045ca1d5547adbd0d0579d050139e139d"},{"fixed":"6939ffcfdf93d2a46bbfceced1166bd59906632e"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"dcca9b6064c33c84fbeb9f09814178a206321249"},{"fixed":"e457ae1fcecd197deb25c7840b7e926a91f20f60"},{"fixed":"6904743ab77e0684dff319f3806ef982e5eea6cf"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139351.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.2.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139351.json"}}],"schema_version":"1.9.2"}