PT-2026-166856
CVE-2026-143001
·
Publicado
2026-12-03
·
Atualizado
2026-12-03
Descrição por
Pontuação
N/A
Não disponívelNão há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.
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.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾