CVE-2026-138916: media: chips-media: wave5: Handle polling IRQ thread failure
In the Linux kernel, the following vulnerability has been resolved:
media: chips-media: wave5: Handle polling IRQ thread failure
When falling back to polling mode, wave5vpuprobe() does not check the return value of kthreadrun(). On failure, dev->irqthread holds an error pointer instead of a valid task pointer.
Both the probe error path and the remove path only check dev->irqthread against NULL before calling kthreadstop() on it, so an error pointer passes the check and kthreadstop() crashes on it.
Check the kthreadrun() result, clear dev->irqthread and unwind the probe on failure.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel wave5 driver, check the return value of kthread_run(); on failure, clear dev->irq_thread and unwind wave5_vpu_probe().