dmaengine: idxd: Fix possible Use-After-Free in irq_process_work_list
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: idxd: Fix possible Use-After-Free in irq_process_work_list
Use list_for_each_entry_safe() to allow iterating through the list and deleting the entry in the iteration process. The descriptor is freed via idxd_desc_complete() and there's a slight chance may cause issue for the list iterator when the descriptor is reused by another thread without it being deleted from the list.
From the CVE record · Linux
The Linux kernel's idxd driver may encounter a use-after-free while processing an IRQ work list. This can happen if a descriptor is freed during iteration and reused by another thread before it is removed from the list. The input does not specify an attack path, authentication requirement, or user-interaction requirement.
Engineers running the Linux kernel with the idxd driver should check their installations; affected versions are not specified.