mtd: rawnand: lpc32xx_slc: fail DMA transfer on completion timeout
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2944a44da09e46b6db2fd2c3334f242b09e05c43 · < cf7258f57d18026b8f77c0e80ff1805e9caf7250| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mtd: rawnand: lpc32xx_slc: fail DMA transfer on completion timeout
lpc32xx_xmit_dma() waits for the DMA completion callback but ignores wait_for_completion_timeout(). A timed out DMA transfer is therefore unmapped and reported as successful to the NAND read/write path.
Return -ETIMEDOUT when the completion wait expires. Terminate the DMA channel before unmapping the scatterlist so the timed out transfer cannot continue to access the buffer after the error is returned.
From the CVE record · Linux
The Linux kernel’s lpc32xx_slc NAND driver can report a timed-out DMA transfer as successful and unmap its buffer while the transfer may still be active. The input does not establish how an attacker could trigger this behavior or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels that include the lpc32xx_slc NAND driver should check their versions; affected versions are not specified.