CVE-2026-138819
serial: 8250_exar: store the GPIO platform device in struct exar8250
Check your servers for CVE-2026-138819
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-138819 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2, before 3a59d55604f47c48f069225a8bebedcb2b2a20d8 affected from d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2, before 72990547fea5a865a5fb17480151826e9554d650 affected from d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2, before 68825efacafc23872eb346b0c9caaae9f23e4669 affected from d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2, before 9eb168ad47c80910016a0d0c14eba30de0647cf4 affected from d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2, before c16555815d4b7aae2b2b2aa2ea320c714d0fee6d affected from d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2, before 55265c0f41ebe877b00b09a3d0cda796e6737e03 affected from d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2, before 3279fe10b300a97eac23a192088491b6a99cdbd1 affected from d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2, before 33d337816e00994daaf670243186d9e537ee090d
Other versions: unaffected
|
| Linux |
affected 4.11 unaffected before 4.11 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.117 up to and including 6.12.* unaffected from 6.18.63 up to and including 6.18.* unaffected from 7.3.4 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-138819 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138819
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-138819
trivy image --scanners vuln IMAGE | grep CVE-2026-138819
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/3a59d55604f47c48f069225a8bebedcb2b2a20d8 git.kernel.org
- https://git.kernel.org/stable/c/72990547fea5a865a5fb17480151826e9554d650 git.kernel.org
- https://git.kernel.org/stable/c/68825efacafc23872eb346b0c9caaae9f23e4669 git.kernel.org
- https://git.kernel.org/stable/c/9eb168ad47c80910016a0d0c14eba30de0647cf4 git.kernel.org
- https://git.kernel.org/stable/c/c16555815d4b7aae2b2b2aa2ea320c714d0fee6d git.kernel.org
- https://git.kernel.org/stable/c/55265c0f41ebe877b00b09a3d0cda796e6737e03 git.kernel.org
- https://git.kernel.org/stable/c/3279fe10b300a97eac23a192088491b6a99cdbd1 git.kernel.org
- https://git.kernel.org/stable/c/33d337816e00994daaf670243186d9e537ee090d git.kernel.org
Source: the record CVE-2026-138819 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse