PT-2026-162914

CVE-2026-99947

·

Publicado

2026-11-30

·

Atualizado

2026-11-30

Descrição por

Pontuação
N/A
Não disponível

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:
i2c: acpi: Fix adapter reference leak in i2c acpi new device by fwnode()
i2c acpi new device by fwnode() obtains an i2c adapter through i2c acpi find adapter by handle(). That helper uses bus find device() internally, so it returns the adapter with a reference held:
adapter = i2c verify adapter(dev);
if (!adapter)
    put device(dev);

return adapter;
The reference is only put on the failure path inside that helper. The caller owns it otherwise. i2c acpi new device by fwnode() never drops it, neither on the -EPROBE DEFER path nor after i2c new client device(), so every call leaks one reference on the adapter and the adapter can never be released.
i2c new client device() does not consume that reference. It registers the new client with the adapter as its parent, and device add() takes its own reference on the parent, which device del() releases when the client goes away. The reference obtained by the lookup is a separate one and has to be dropped here.
i2c acpi notify() in the same file already does exactly this. It takes the adapter from the same helper, registers the client through i2c acpi register device(), which calls i2c new client device(), and then puts the reference.
i2c new client device() gives the client its own reference on the adapter, so ours can be dropped unconditionally.
Found by code review.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾