media: cx23885: cancel NetUP CI work before teardown
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c184dcd282337c09695a4c1761d7ac77fdc8fb7d · < bf3f49273d5bf6acbdad18ff44c01ffcf7a7a146| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: cx23885: cancel NetUP CI work before teardown
netup_ci_exit() frees a netup_ci_state while its work item, netup_read_ci_status(), may still be pending or running on the system workqueue. The worker obtains the state with container_of() and dereferences it, so it must not outlive the state.
netup_ci_init() queues the initial status read, and CI GPIO interrupts subsequently queue the same work from netup_ci_slot_status(). During remove, cx23885_finidev() calls free_irq() before the CI device is unregistered. free_irq() prevents further IRQ handlers from running, but does not drain work queued previously, so the worker can run after netup_ci_exit() frees the state.
Call cancel_work_sync() before dvb_ca_en50221_release() and kfree().
This issue was found by an in-house static analysis tool.
From the CVE record · Linux
The Linux kernel cx23885 NetUP CI driver can free state while a queued status-read worker still uses it, causing a use-after-free during device removal. The input does not establish whether an attacker can trigger this condition, or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the cx23885 NetUP CI driver should check their kernel; affected versions are not specified.