PT-2026-152613

CVE-2026-99733

·

Publicado

2026-11-20

·

Atualizado

2026-11-20

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:
mm/truncate: look again if a folio left the mapping
invalidate inode pages2 range() skips a folio which no longer belongs to the mapping by the time it has got the folio lock, on the assumption that somebody else has removed it from the page cache. But the folio may have been replaced, and then there is a new folio with the same data at that index.
For most cases, like folio migration, that is impossible. However, collapse file() only checks the refcount of the old folios, under the i pages lock, and relies on their folio locks from there on. That works for users which repeat the lookup when they find folio->mapping changed. The following scenario is, however, possible:
CPU0 pwrite(O DIRECT) CPU1 collapse file() kiocb invalidate pages() read the folio (old data), lock it refcount check the write completes copy to new folio kiocb invalidate post direct write() find get entries() -> old folio xas store(new folio) folio->mapping = NULL folio unlock(folio) folio lock() folio->mapping != mapping -> continue
In that scenario, the collapsed folio with the data from before the write stays in the page cache after the write has returned.
This used to be impossible, as khugepaged only collapsed files that nobody had open for writing.
Restart the lookup at that index, like shmem undo range() does. The same problem seems to exist in truncate inode pages range() as well when truncate inode folio() fails, so handle it there as well, but slightly differently: simply check once more through find get entries().
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾