CVE-2026-139638

serial: 8250_mxpcie: take the line settings from the new termios

Published Nov 30, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

serial: 8250_mxpcie: take the line settings from the new termios

mxpcie8250_set_termios() reads the line settings out of
port->state->port.tty, which is only set once the port has been opened.

uart_set_options() builds a termios of its own and calls ->set_termios()
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
uart_resume_port().

Read the settings from the termios the serial core passes in instead.
It holds the same values on the normal path - uart_change_line_settings()
passes &tty->termios - and it is what serial8250_do_set_termios() right
above already uses.

Analysis

AI-generated

Technical impact

The bug lies in the Linux kernel serial 8250 driver, specifically for 8250_mxpcie devices. During console initialization, the driver incorrectly attempts to read line settings from a NULL tty structure. This results in a null pointer dereference that can trigger a kernel panic, effectively shutting down the system. The vulnerability is a classic example of a null pointer dereference, which can lead to system stability loss and potential disruption of services.

Affected Systems

The affected product is the Linux kernel on any distribution that includes the 8250_mxpcie serial driver. No specific kernel version range is listed, so any kernel that predates the commit referenced in the advisory may be vulnerable unless the user is already running a patched build. The primary impact would be observed on systems that configure the console to use a serial port via the console=ttyS<n> kernel parameter.

Risk and Exploitability

The attacker would need to influence the kernel console configuration, such as by changing the console= parameter or by enabling kgdboc on the affected device. Once the risky assignment occurs during boot or runtime, the kernel will dereference a NULL pointer, causing a crash. The EPSS score is unavailable, and the vulnerability is not listed in CISA KEV. Therefore, while the impact is severe (system crash), the likelihood of exploitation is uncertain, with a moderate probability if an attacker can set console parameters or manipulate the kernel environment. The situation warrants prompt attention and the application of a fix if available.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel version that includes the fix for the 8250_mxpcie null pointer dereference
  • Reconfigure the system to avoid using serial consoles (ttyS<n>) during boot; use a different console device or the default VGA console
  • Monitor kernel boot messages for panic events caused by serial console initialization and be prepared to apply an emergency patch if the issue persists

Generated by OpenCVE AI on December 1, 2026 at 13:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: serial: 8250_mxpcie: take the line settings from the new termios mxpcie8250_set_termios() reads the line settings out of port->state->port.tty, which is only set once the port has been opened. uart_set_options() builds a termios of its own and calls ->set_termios() 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 uart_resume_port(). Read the settings from the termios the serial core passes in instead. It holds the same values on the normal path - uart_change_line_settings() passes &tty->termios - and it is what serial8250_do_set_termios() right above already uses.
Title serial: 8250_mxpcie: take the line settings from the new termios
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM