serial: amba-pl011: synchronize DMA teardown
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ead76f329f777c7301e0a5456a0a1c7a081570bd · < 5974cb66681eac367107b05924744d7e3b49d41c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
serial: amba-pl011: synchronize DMA teardown
dmaengine_terminate_all() does not wait for a running callback, so the TX callback can still touch the TX buffer after it is freed. The RX poll timer reads the RX buffers without the port lock.
Switch to dmaengine_terminate_sync() and delete the RX timer before freeing the buffers.
From the CVE record · Linux
The amba-pl011 serial driver does not synchronize DMA teardown with a running TX callback, which can access the TX buffer after it is freed. The RX poll timer can also read RX buffers without the port lock. The input does not specify how an attacker could trigger these conditions, or whether authentication or user interaction is required.
Anyone running a Linux kernel with the amba-pl011 serial driver should check their kernel version; affected versions are not specified.