PT-2026-163033

CVE-2026-138992

·

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:
nilfs2: fix checkpoint root lifetime on sysfs errors
nilfs find or create root() links a new checkpoint root into the checkpoint tree and drops ns cptree lock before creating the root's sysfs group. If nilfs sysfs create snapshot group() then fails, the root is freed while it is still reachable from ns cptree, so a concurrent nilfs lookup root() can dereference freed memory.
nilfs sysfs create snapshot group() allocates memory and creates sysfs nodes and may sleep, so it cannot run under the ns cptree lock spinlock. Reorder the creation path so that the sysfs group is set up before the root is published: initialize the root, create its sysfs group outside the lock, and only then take ns cptree lock to link it into the tree. On sysfs failure the root was never visible and is freed directly; in the unlikely case a root with the same checkpoint number is already present, the sysfs group of the new root is removed before it is freed. Concurrent insertions are already serialized by ns snapshot mount mutex, so only the race against nilfs lookup root() needs to be closed.
Because kobject put() does not guarantee that the embedded kobject's release callback has run by the time it returns (CONFIG DEBUG KOBJECT RELEASE defers it), the container must not be freed until the release completes. Keep that wait for completion() of snapshot kobj unregister inside the sysfs helpers, so both the creation error path and nilfs sysfs delete snapshot group() wait for the release before their callers free the root.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾