CVE-2026-74654: serial: 8250_dma: Clear stale RX state on shutdown
In the Linux kernel, the following vulnerability has been resolved:
serial: 8250dma: Clear stale RX state on shutdown
serial8250releasedma() terminates RX DMA and releases the channel, but leaves rxrunning set. If the port is closed while an RX transfer is active, the stale state remains while rxchan is NULL until the channel is requested again on the next open.
The DesignWare BUSY workaround added by commit a7b9ce39fbe4 ("serial: 8250dw: Ensure BUSY is deasserted") calls serial8250rxdmaflush() from the LCR write path during startup. This happens before serial8250requestdma() obtains a new RX channel. On reopen, the stale rxrunning state therefore makes the flush path pass a NULL channel to dmaenginepause(), causing a kernel Oops.
Clear rxrunning after terminating RX DMA, matching the TX cleanup. Also make the flush helper return if the DMA object or RX channel is not available so startup and teardown paths cannot pass a NULL channel to the DMAengine API.