# CVE-2026-139047: media: cx231xx-audio: drain wq_trigger before audio fini

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-11-30T13:27:22.574Z
- Modified: 2026-11-30T14:18:10.210Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

media: cx231xx-audio: drain wq_trigger before audio fini

audio_trigger() is deferred work (dev->wq_trigger) armed from
snd_cx231xx_capture_trigger() on every PCM START/STOP; it dereferences
dev->adev state and may free the URBs via cx231xx_isoc_audio_deinit().
cx231xx_audio_fini() tore down that state without draining wq_trigger,
so work armed before or racing fini ran against freed state.

Use disable_work_sync() in fini to drain the work and prevent further
queueing.  Initialize the work, lock and stream_started counter at the
top of cx231xx_audio_init(), before any fallible allocation, and clear
the partially-built audio state on its error path, so fini is safe even
if a later step fails.

This issue was found by an in-house static analysis tool.

(As written by CVE List.)

## Affected

- Linux Linux: from 61b04cb24a129f2483d5110e119fc2e365177741 before 3cd008aa8391ba1d788035d6e33f092d15f95dfa; from 61b04cb24a129f2483d5110e119fc2e365177741 before 5c8ecd9ebc95523c950b3616703d4c19ee5e8b33; from 61b04cb24a129f2483d5110e119fc2e365177741 before 450f37994eb36e006ebfd075e8fdc27b9465ca22; from 61b04cb24a129f2483d5110e119fc2e365177741 before a691c54986412e1fa87f036d2577d5a78a75e658; 2.6.37 (not affected: before 2.6.37; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/3cd008aa8391ba1d788035d6e33f092d15f95dfa>
- <https://git.kernel.org/stable/c/5c8ecd9ebc95523c950b3616703d4c19ee5e8b33>
- <https://git.kernel.org/stable/c/450f37994eb36e006ebfd075e8fdc27b9465ca22>
- <https://git.kernel.org/stable/c/a691c54986412e1fa87f036d2577d5a78a75e658>

## Sources

- CVE List: [CVE-2026-139047](https://www.cve.org/CVERecord?id=CVE-2026-139047), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139047](https://nvd.nist.gov/vuln/detail/CVE-2026-139047), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139047 · Whole record: https://cve.day/CVE-2026-139047.json · Rebuilt by cve.day 2026-11-30T14:32:48.772Z
