CVE-2026-138819

Not scored yetLast modified Nov 30, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

serial: 8250_exar: store the GPIO platform device in struct exar8250

The GPIO platform device is registered via platform->register_gpio() when port 0 is being set up. It is stored to port->port.private_data of the on-stack uart template (and from there it is copied into every registered port). pci_xr17v35x_exit() then fetches it back by serial8250_get_port(priv->line[0]).

But port 0 does not have to exist at that point. If serial8250_register_8250_port() fails for port 0, priv->line[0] holds a negative error code. The probe still succeeds (it only breaks the loop), so on unbind, priv->line[0] (a negative value) is passed to serial8250_get_port(). The GPIO device is never unregistered and a bogus port is accessed.

The same problem would also occur after the planned conversion of serial8250_register_8250_port() to return a uart port instead of a line. As Sashiko pointed out in that case: If board->setup() fails for the first port (i=0) in exar_pci_probe(), priv->uport[0] remains NULL. If serial8250_register_8250_port() fails, it returns an ERR_PTR. In either case, the loop breaks and probe returns success. When the device is later unbound, pci_xr17v35x_exit() unconditionally passes priv->uport[0] to platform->unregister_gpio(), which will dereference it without checking for validity.

The GPIO device belongs to the PCI device, not to any particular port. So store it in a new struct exar8250::gpio member. Pass priv to both ->register_gpio() and ->unregister_gpio(), so that pci_xr17v35x_exit() does not need to look up any port at all.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138829.6Race in USB in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised the renderer process to potentially perforCVE-2026-138820In the Linux kernel, the following vulnerability has been resolved: arm64/mm: Treat faults taken by EFI runtime firmware as kernel faults CVE-2026-1388217.0In the Linux kernel, the following vulnerability has been resolved: fbdev: sh_mobile_lcdc: check for fb_deferred_io_init() error fb_deferrCVE-2026-138822In the Linux kernel, the following vulnerability has been resolved: fbdev: smscufx: check for fb_deferred_io_init() error fb_deferred_io_iCVE-2026-138823In the Linux kernel, the following vulnerability has been resolved: fbdev: udlfb: check for fb_deferred_io_init() error fb_deferred_io_iniCVE-2026-138824In the Linux kernel, the following vulnerability has been resolved: fbdev: xen-fbfront: check for fb_deferred_io_init() error fb_deferred_CVE-2026-138825In the Linux kernel, the following vulnerability has been resolved: fbdev: core: Initialize modelist in framebuffer_alloc() framebuffer_alCVE-2026-138826In the Linux kernel, the following vulnerability has been resolved: fbdev: sh_mobile_lcdcfb: Restore the per-overlay sysfs attributes The CVE-2026-138827In the Linux kernel, the following vulnerability has been resolved: platform/x86/amd: hfi: Fix out-of-bounds reads when parsing ranking datCVE-2026-138828In the Linux kernel, the following vulnerability has been resolved: platform/x86: asus-wmi: Serialize WMI method evaluations with a mutex CVE-2026-138829In the Linux kernel, the following vulnerability has been resolved: platform/x86: hp-bioscfg: fix 16-byte heap overflow for empty auth tokeCVE-2026-138839.6Type Confusion in ANGLE in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to potentially perform a sandbox escape via a craf
CVE-2026-138819: Unscored | Vulnix