PT-2026-152598
CVE-2026-99718
·
Publicado
2026-11-20
·
Atualizado
2026-11-20
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:
hwmon: (peci/dimmtemp) Fix devres leak and UAF on concurrent unbind
When a peci dimmtemp device is unbound concurrently with its delayed
initialization work (detect work), newly allocated devm resources and
the hwmon device are leaked, leading to a use-after-free when reading
the lingering hwmon sysfs attributes.
In peci dimmtemp probe(), detect work is registered for cancellation via
devm delayed work autocancel(). During driver detach, devres release all()
first moves all existing entries from dev->devres head onto a local todo
list before invoking their release callbacks in reverse order. If
create dimm temp info delayed() is already running when
devm delayed work drop() calls cancel delayed work sync(),
create dimm temp info() can allocate dimmtemp label strings via
devm kzalloc()/devm kasprintf() and register the hwmon device via
devm hwmon device register with info(), appending new devres entries to
the now-empty dev->devres head. Once the work finishes,
devres release all() frees priv and priv->name from the local todo list
without re-evaluating dev->devres head, leaving the late devres
allocations and registered hwmon device behind with a dangling priv
pointer.
Cancel detect work synchronously in a driver .remove() callback instead
of relying on devm delayed work autocancel() so that the work is fully
drained before devres release all() detaches dev->devres head, allowing
any devm resources registered by the delayed work to be released in
proper reverse order. Also only schedule detect work when
check populated dimms() returns -EAGAIN so that probe failure paths do
not leave delayed work pending.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾