{"id":"CVE-2026-139453","state":"PUBLISHED","title":"ALSA: hda: Stop unsol events and jack polling before codec unbind","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda: Stop unsol events and jack polling before codec unbind\n\nAt unbinding a codec driver, hda_codec_driver_remove() calls the\ncodec's remove callback that releases the driver resources, followed\nby snd_hda_codec_cleanup_for_unbind().  Meanwhile, the unsolicited\nevents are processed asynchronously in bus->unsol_work, and\nsnd_hdac_bus_process_unsol_events() checks only codec->registered flag\nbefore calling the driver's unsol_event callback without the lock.\nSince codec->registered is cleared only in\nsnd_hda_codec_cleanup_for_unbind(), and there is no flush of the unsol\nwork at unbinding, the unsol event handler may run concurrently during\nthe running remove callback, which may lead to a UAF.  The same\nproblem applies to the jack polling work, which is canceled only after\nthe remove callback.\n\nFor addressing those races, introduce a new flag unsol_disabled to\nhdac_device, to be checked it in the unsol event worker, while a new\nhelper snd_hdac_device_disable_unsol() sets this flag and flushes the\npending unsol work.  The helper is called at hda_codec_driver_remove()\ntogether with the cancel of jackpoll_work to assure that no\nasynchronous jack handling can run.  The flag is cleared again at\nprobing the codec driver, while the events are still blocked by the\nregistered flag until the codec gets registered.","publishedAt":"2026-11-30T13:34:53.733Z","updatedAt":"2026-11-30T13:34:53.733Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"d4e76b7b6f533462280cdfa9a3e5e2213ea42c42","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"e651c7dea72ba4b2c90769022eaf9694d784739d","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"f3607b6952ca9a5638eeef4f301daa7933ce24b1","versionType":"git"},{"version":"0","status":"affected","lessThan":"6.18.65","versionType":"semver"},{"version":"0","status":"affected","lessThan":"7.3.6","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/hdaudio.h","sound/hda/common/bind.c","sound/hda/core/bus.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"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/hdaudio.h","sound/hda/common/bind.c","sound/hda/core/bus.c"]}],"references":["https://git.kernel.org/stable/c/d4e76b7b6f533462280cdfa9a3e5e2213ea42c42","https://git.kernel.org/stable/c/e651c7dea72ba4b2c90769022eaf9694d784739d","https://git.kernel.org/stable/c/f3607b6952ca9a5638eeef4f301daa7933ce24b1"],"weaknesses":[],"ingestedAt":"2026-11-30T13:50:04.417Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139453.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139453","state":"PUBLISHED","datePublished":"2026-11-30T13:34:53.733Z","dateUpdated":"2026-11-30T13:34:53.733Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.934Z"},"containers":{"cna":{"title":"ALSA: hda: Stop unsol events and jack polling before codec unbind","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda: Stop unsol events and jack polling before codec unbind\n\nAt unbinding a codec driver, hda_codec_driver_remove() calls the\ncodec's remove callback that releases the driver resources, followed\nby snd_hda_codec_cleanup_for_unbind().  Meanwhile, the unsolicited\nevents are processed asynchronously in bus->unsol_work, and\nsnd_hdac_bus_process_unsol_events() checks only codec->registered flag\nbefore calling the driver's unsol_event callback without the lock.\nSince codec->registered is cleared only in\nsnd_hda_codec_cleanup_for_unbind(), and there is no flush of the unsol\nwork at unbinding, the unsol event handler may run concurrently during\nthe running remove callback, which may lead to a UAF.  The same\nproblem applies to the jack polling work, which is canceled only after\nthe remove callback.\n\nFor addressing those races, introduce a new flag unsol_disabled to\nhdac_device, to be checked it in the unsol event worker, while a new\nhelper snd_hdac_device_disable_unsol() sets this flag and flushes the\npending unsol work.  The helper is called at hda_codec_driver_remove()\ntogether with the cancel of jackpoll_work to assure that no\nasynchronous jack handling can run.  The flag is cleared again at\nprobing the codec driver, while the events are still blocked by the\nregistered flag until the codec gets registered."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"d4e76b7b6f533462280cdfa9a3e5e2213ea42c42","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"e651c7dea72ba4b2c90769022eaf9694d784739d","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"f3607b6952ca9a5638eeef4f301daa7933ce24b1","versionType":"git"},{"version":"0","status":"affected","lessThan":"6.18.65","versionType":"semver"},{"version":"0","status":"affected","lessThan":"7.3.6","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/hdaudio.h","sound/hda/common/bind.c","sound/hda/core/bus.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"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/hdaudio.h","sound/hda/common/bind.c","sound/hda/core/bus.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d4e76b7b6f533462280cdfa9a3e5e2213ea42c42"},{"url":"https://git.kernel.org/stable/c/e651c7dea72ba4b2c90769022eaf9694d784739d"},{"url":"https://git.kernel.org/stable/c/f3607b6952ca9a5638eeef4f301daa7933ce24b1"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:34:53.733Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}