{"id":"CVE-2026-139047","aliases":["CVE-2026-139047"],"related":[],"kind":"vulnerability","state":"published","title":"media: cx231xx-audio: drain wq_trigger before audio fini","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: cx231xx-audio: drain wq_trigger before audio fini\n\naudio_trigger() is deferred work (dev->wq_trigger) armed from\nsnd_cx231xx_capture_trigger() on every PCM START/STOP; it dereferences\ndev->adev state and may free the URBs via cx231xx_isoc_audio_deinit().\ncx231xx_audio_fini() tore down that state without draining wq_trigger,\nso work armed before or racing fini ran against freed state.\n\nUse disable_work_sync() in fini to drain the work and prevent further\nqueueing.  Initialize the work, lock and stream_started counter at the\ntop of cx231xx_audio_init(), before any fallible allocation, and clear\nthe partially-built audio state on its error path, so fini is safe even\nif a later step fails.\n\nThis issue was found by an in-house static analysis tool.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: cx231xx-audio: drain wq_trigger before audio fini\n\naudio_trigger() is deferred work (dev->wq_trigger) armed from\nsnd_cx231xx_capture_trigger() on every PCM START/STOP; it dereferences\ndev->adev state and may free the URBs via cx231xx_isoc_audio_deinit().\ncx231xx_audio_fini() tore down that state without draining wq_trigger,\nso work armed before or racing fini ran against freed state.\n\nUse disable_work_sync() in fini to drain the work and prevent further\nqueueing.  Initialize the work, lock and stream_started counter at the\ntop of cx231xx_audio_init(), before any fallible allocation, and clear\nthe partially-built audio state on its error path, so fini is safe even\nif a later step fails.\n\nThis issue was found by an in-house static analysis tool.","source":"cvelist"}],"published":"2026-11-30T13:27:22.574Z","modified":"2026-11-30T14:18:10.210Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"61b04cb24a129f2483d5110e119fc2e365177741","fixed":"3cd008aa8391ba1d788035d6e33f092d15f95dfa","status":"affected"},{"type":"git","introduced":"61b04cb24a129f2483d5110e119fc2e365177741","fixed":"5c8ecd9ebc95523c950b3616703d4c19ee5e8b33","status":"affected"},{"type":"git","introduced":"61b04cb24a129f2483d5110e119fc2e365177741","fixed":"450f37994eb36e006ebfd075e8fdc27b9465ca22","status":"affected"},{"type":"git","introduced":"61b04cb24a129f2483d5110e119fc2e365177741","fixed":"a691c54986412e1fa87f036d2577d5a78a75e658","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.37","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.37","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/3cd008aa8391ba1d788035d6e33f092d15f95dfa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c8ecd9ebc95523c950b3616703d4c19ee5e8b33","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/450f37994eb36e006ebfd075e8fdc27b9465ca22","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a691c54986412e1fa87f036d2577d5a78a75e658","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139047","url":"https://www.cve.org/CVERecord?id=CVE-2026-139047","licence":"CVE Terms of Use","modified":"2026-11-30T13:27:22.574Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139047","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139047","licence":"Public domain","modified":"2026-11-30T14:18:10.210Z"}],"updatedAt":"2026-11-30T14:32:48.772Z","epss":{"score":0.00353,"percentile":0.31038,"date":"2026-12-01T12:00:22.000Z"}}