PT-2026-162679

CVE-2026-138819

·

تاريخ النشر

2026-11-30

·

تاريخ التحديث

2026-11-30

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

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.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾