media: netup_unidvb: fix use-after-free at del_timer()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 52b1eaf4c59a3bbd07afbb4ab4f43418a807d02e · < 07821524f67bf920342bc84ae8b3dea2a315a89e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: netup_unidvb: fix use-after-free at del_timer()
When Universal DVB card is detaching, netup_unidvb_dma_fini() uses del_timer() to stop dma->timeout timer. But when timer handler netup_unidvb_dma_timeout() is running, del_timer() could not stop it. As a result, the use-after-free bug could happen. The process is shown below:
(cleanup routine) | (timer routine) | mod_timer(&dev->tx_sim_timer, ..) netup_unidvb_finidev() | (wait a time) netup_unidvb_dma_fini() | netup_unidvb_dma_timeout() del_timer(&dma->timeout); | | ndev->pci_dev->dev //USE
Fix by changing del_timer() to del_timer_sync().
From the CVE record · Linux
The Linux kernel’s netup_unidvb driver can use freed memory when a Universal DVB card detaches while its DMA timeout handler is running. The input does not specify how an attacker could trigger this condition, whether authentication or user interaction is needed, or whether access is local or remote.
Engineers running Linux kernels with the netup_unidvb driver should check whether their kernel includes the fix; affected versions are not specified.