CVE-2026-139640

serial: 8250_mxpcie: set the driver data before registering ports

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: set the driver data before registering ports

mxpcie8250_rs485_config() looks the board up with dev_get_drvdata() on
the PCI device, but pci_set_drvdata() only runs after the registration
loop. Where mxpcie8250_setup_port() presets rs485.flags to
SER_RS485_ENABLED and the flag survives uart_get_rs485_mode() - the
device has no firmware node, or its node sets
linux,rs485-enabled-at-boot-time - uart_configure_port() calls
->rs485_config() from inside serial8250_register_8250_port(), and the
callback dereferences a NULL board pointer.

Publish the driver data before the first port is registered.

Analysis

AI-generated

Technical impact

A NULL pointer dereference occurs in the 8250_mxpcie serial driver when the driver attempts to configure RS485 settings during port registration. Because the board data pointer is only set after the registration loop, the configuration callback dereferences a NULL pointer, causing a kernel panic. The result is a system crash that makes the operating system unavailable.

Affected Systems

All Linux kernels that include the unpatched 8250_mxpcie driver are potentially affected. The vendor information lists the kernel generically as Linux:Linux, and no specific distribution or kernel release is specified, so any kernel containing this driver before the patch may be at risk.

Risk and Exploitability

The vulnerability is likely exploitable during boot or when a device that triggers the RS485 configuration is present, requiring local or physical access to influence the device configuration. Exploitation would result in a kernel panic, immediately denying availability. The EPSS score is not available, the CVSS score is not provided, and the vulnerability is not listed in CISA’s KEV catalog. Nevertheless, the severity of a kernel crash warrants close scrutiny, and the risk is considered very high if the affected driver is active.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that contains the 8250_mxpcie fix.
  • If an immediate kernel upgrade is not possible, disable or block the affected serial port (e.g., via device tree changes or PCI device disable) to prevent the driver from registering ports that trigger the crash.
  • After applying the patch or disabling the device, reboot the system to clear any stale state and confirm that the kernel is no longer crashing.

Generated by OpenCVE AI on December 1, 2026 at 17:22 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
Weaknesses CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: serial: 8250_mxpcie: set the driver data before registering ports mxpcie8250_rs485_config() looks the board up with dev_get_drvdata() on the PCI device, but pci_set_drvdata() only runs after the registration loop. Where mxpcie8250_setup_port() presets rs485.flags to SER_RS485_ENABLED and the flag survives uart_get_rs485_mode() - the device has no firmware node, or its node sets linux,rs485-enabled-at-boot-time - uart_configure_port() calls ->rs485_config() from inside serial8250_register_8250_port(), and the callback dereferences a NULL board pointer. Publish the driver data before the first port is registered.
Title serial: 8250_mxpcie: set the driver data before registering ports
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

No weakness.

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