CVE-2026-138819
publishedserial: 8250_exar: store the GPIO platform device in struct exar8250
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxd0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < 3a59d55604f47c48f069225a8bebedcb2b2a20d8 · d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < 72990547fea5a865a5fb17480151826e9554d650 · d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < 68825efacafc23872eb346b0c9caaae9f23e4669 · d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < 9eb168ad47c80910016a0d0c14eba30de0647cf4 · d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < c16555815d4b7aae2b2b2aa2ea320c714d0fee6d · d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < 55265c0f41ebe877b00b09a3d0cda796e6737e03 · d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < 3279fe10b300a97eac23a192088491b6a99cdbd1 · d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < 33d337816e00994daaf670243186d9e537ee090d · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.11 (affected) · 0 to < 4.11 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < 3a59d55604f47c48f069225a8bebedcb2b2a20d8 (affected · git)d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < 72990547fea5a865a5fb17480151826e9554d650 (affected · git)d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < 68825efacafc23872eb346b0c9caaae9f23e4669 (affected · git)d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < 9eb168ad47c80910016a0d0c14eba30de0647cf4 (affected · git)d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < c16555815d4b7aae2b2b2aa2ea320c714d0fee6d (affected · git)d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < 55265c0f41ebe877b00b09a3d0cda796e6737e03 (affected · git)d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < 3279fe10b300a97eac23a192088491b6a99cdbd1 (affected · git)d0aeaa83f0b0f7a92615bbdd6b1f96812f7dcfd2 to < 33d337816e00994daaf670243186d9e537ee090d (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.11 (affected)0 to < 4.11 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/3279fe10b300a97eac23a192088491b6a99cdbd1
- https://git.kernel.org/stable/c/33d337816e00994daaf670243186d9e537ee090d
- https://git.kernel.org/stable/c/3a59d55604f47c48f069225a8bebedcb2b2a20d8
- https://git.kernel.org/stable/c/55265c0f41ebe877b00b09a3d0cda796e6737e03
- https://git.kernel.org/stable/c/68825efacafc23872eb346b0c9caaae9f23e4669
- https://git.kernel.org/stable/c/72990547fea5a865a5fb17480151826e9554d650
- https://git.kernel.org/stable/c/9eb168ad47c80910016a0d0c14eba30de0647cf4
- https://git.kernel.org/stable/c/c16555815d4b7aae2b2b2aa2ea320c714d0fee6d
Provider assertions
1Linux · cna
serial: 8250_exar: store the GPIO platform device in struct exar8250
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- af028316d709c7458db71747887380d9958c54787ed5d03575e8d7c0f531f34f
- Ingested
- 30 Nov 2026, 13:30:06 UTC
- Source record
- Official CVE record