PT-2026-64597 · Linux · Linux
CVE-2026-64376
·
Publicado
2026-07-25
·
Atualizado
2026-07-25
Nenhuma
Nã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:
firmware loader: fix device reference leak in firmware upload register()
firmware upload register()
-> fw create instance()
-> device initialize()
After fw create instance() succeeds, the lifetime of the embedded struct
device is expected to be managed through the device core reference
counting, since fw create instance() has already called
device initialize().
In firmware upload register(), if alloc lookup fw priv() fails after
fw create instance() succeeds, the code reaches free fw sysfs and frees
fw sysfs directly instead of releasing the device reference with
put device(). This may leave the reference count of the embedded struct
device unbalanced, resulting in a refcount leak.
The issue was identified by a static analysis tool I developed and
confirmed by manual review. Fix this by using put device(fw dev) in the
failure path and letting fw dev release() handle the final cleanup,
instead of freeing the instance directly from the error path.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Identificadores relacionados
Produtos afetados
Linux