staging: vme_user: Fix possible UAF in tsi148_dma_list_add
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b2383c90a9d691201b9aee557776694cde86a935 · < 1f5661388f43df3ac106ce93e67d8d22b16a78ff| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
staging: vme_user: Fix possible UAF in tsi148_dma_list_add
Smatch report warning as follows:
drivers/staging/vme_user/vme_tsi148.c:1757 tsi148_dma_list_add() warn: '&entry->list' not removed from list
In tsi148_dma_list_add(), the error path "goto err_dma" will not remove entry->list from list->entries, but entry will be freed, then list traversal may cause UAF.
Fix by removeing it from list->entries before free().
From the CVE record · Linux
The Linux kernel’s vme_user driver can free a DMA list entry without removing it from the list when tsi148_dma_list_add() takes an error path. Subsequent list traversal may cause a use-after-free; the input does not specify attacker access requirements or user interaction.
Engineers running Linux kernels with the vme_user driver should check their versions against the vendor advisory; affected versions are not specified.