CVE-2026-139638: serial: 8250_mxpcie: take the line settings from the new termios

Published Nov 30, 2026
·
Updated

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

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:36 PM
Data Sourced
via MITRE·01:36 PM
Description

Frequently Asked Questions

1

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().

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203