CVE-2026-139638: serial: 8250_mxpcie: take the line settings from the new termios
In the Linux kernel, the following vulnerability has been resolved:
serial: 8250mxpcie: take the line settings from the new termios
mxpcie8250settermios() reads the line settings out of port->state->port.tty, which is only set once the port has been opened.
uartsetoptions() builds a termios of its own and calls ->settermios() with no tty behind it, so using such a board as the console (console=ttyS<n>) dereferences a NULL tty during console setup, as does attaching kgdboc to it and resuming a suspended console from uartresumeport().
Read the settings from the termios the serial core passes in instead. It holds the same values on the normal path - uartchangelinesettings() passes &tty->termios - and it is what serial8250dosettermios() right above already uses.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this failure?
Systems using the 8250_mxpcie serial driver are exposed when an affected board is configured as a serial console using console=ttyS<n>. The issue can also occur when kgdboc is attached to that port or when a suspended console is resumed through uart_resume_port().
What conditions trigger the crash?
The failure occurs when the driver set_termios callback is invoked without an associated tty object. During console setup, uart_set_options() supplies a termios structure but no tty, causing the driver's access to port->state->port.tty to dereference NULL.
Does normal serial-port configuration trigger the issue?
Normal line-setting changes use the tty's termios and provide the same settings that the corrected driver reads from the termios argument. The described NULL dereference is associated with paths that invoke set_termios without a tty, rather than the ordinary open-port configuration path.