CVE-2026-142999: serial: core: respect runtime PM when sending x_char
In the Linux kernel, the following vulnerability has been resolved:
serial: core: respect runtime PM when sending xchar
uartstart() calls the starttx operation only if the port is runtime active. Otherwise it asks for a resume, and serialportruntimeresume() starts the transmitter.
uartsendxchar() calls starttx at once, under the port lock, whatever the state of the device. With 8250omap, serial8250starttx() then calls pmruntimegetsync() for a suspended device: that sleeps, and omap8250runtimeresume() takes the port lock again. A tcflow(TCIOFF) on an idle port is enough, if autosuspend has been enabled. It was allowed as long as that driver used pmruntimeirqsafe().
Share the part of uartstart() that deals with runtime PM. A stopped transmission still does not hold up an XON or XOFF character. Let a pending xchar count as work for serialportruntimeresume(), and keep the port from being suspended with it.