CVE-2026-143001

Not scored yetLast modified Dec 3, 2026

Description

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

serial: 8250_exar: check priv->gpio properly

priv->gpio is set by platform_device_register_full(), which returns error-encoded pointers on failure, not NULL. Sashiko reported:

> Does __xr17v35x_register_gpio() return an ERR_PTR if > platform_device_register_full() fails? > > If it does, we might be storing an error pointer directly into > priv->gpio in xr17v35x_register_gpio() without validating it with > IS_ERR(). Because the error is ignored, the device probe > successfully continues.

Before commit 1145d1a0703f ("serial: 8250_exar: use platform_device_register_full()"), __xr17v35x_register_gpio() returned NULL on any failure (platform_device_alloc(), device_add_software_node() or platform_device_add() failing were all turned into a NULL return). The plain truthy check in xr17v35x_unregister_gpio() matched that convention. That commit switched registration to platform_device_register_full(), which reports failure as an ERR_PTR() instead of NULL, but the unregister check was never updated to match. As a result, a failed registration left an error pointer in priv->gpio, and unbind would tear it down as if it were a real platform_device, dereferencing the encoded error value in device_remove_software_node() and platform_device_unregister().

Use IS_ERR_OR_NULL() instead, so both the unset (non-EXAR vendor, priv->gpio never assigned) and failed-registration (ERR_PTR) cases are skipped.

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
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143002In the Linux kernel, the following vulnerability has been resolved: misc: vmw_vmci: wait for callbacks in event unsubscribe event_deliver(CVE-2026-143003In the Linux kernel, the following vulnerability has been resolved: misc: bcm-vk: fix DMA allocation memory leak bcm_vk_dma_alloc() leaks CVE-2026-143004In the Linux kernel, the following vulnerability has been resolved: mei: lb: read the MTU once mei_cldev_mtu() returns 0 if the client is CVE-2026-143005In the Linux kernel, the following vulnerability has been resolved: iio: sx9310: use the data of the I2C table sx9310_check_whoami() takesCVE-2026-143006In the Linux kernel, the following vulnerability has been resolved: iio: hid-sensors: fix a division by zero convert_to_vtf_format() dividCVE-2026-143007In the Linux kernel, the following vulnerability has been resolved: comedi: ni_660x: don't poll without a DMA channel A counter command owCVE-2026-143008In the Linux kernel, the following vulnerability has been resolved: comedi: fix endless recursion in comedi_event() When comedi_event() waCVE-2026-143009In the Linux kernel, the following vulnerability has been resolved: vt: serialise the producers of the flip buffer Typing on a virtual conCVE-2026-143010In the Linux kernel, the following vulnerability has been resolved: dm-thin: fix data corruption if discard races with regular I/O In the CVE-2026-143011In the Linux kernel, the following vulnerability has been resolved: dm-raid: fix use-after-free in raid_dtr() raid_dtr() currently flushesCVE-2026-143012In the Linux kernel, the following vulnerability has been resolved: dm-raid: bound array_position before indexing failed_devices super_iniCVE-2026-143013In the Linux kernel, the following vulnerability has been resolved: dm-integrity: don't recalculate with HMAC because of a dirty bitmap Co
CVE-2026-143001: Unscored | Vulnix