PT-2026-166678

CVE-2026-142941

·

Publicado

2026-12-03

·

Atualizado

2026-12-03

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:
ocfs2: fix deadlock in inline-data truncate transactions
Updating an inode xattr can cause an ABBA deadlock with inline file truncation:
ocfs2 truncate file() down write(&oi->ip alloc sem) ocfs2 truncate inline() ocfs2 start trans()
ocfs2 xattr set() ocfs2 start trans() ocfs2 xattr ibody set() down write(&oi->ip alloc sem)
The xattr set path starts the merged transaction before the inode-body xattr helper acquires ip alloc sem, reversing the ip alloc sem -> transaction order used by the allocation and truncate paths. The transaction merge in commit 85db90e77806 ("ocfs2/xattr: Merge xattr set transaction.") introduced this ordering.
Fix it by acquiring ip alloc sem once in ocfs2 xattr set(), before xattr preparation, allocation reservations and ocfs2 start trans(), and removing the per-helper acquisition from ocfs2 xattr ibody find(), ocfs2 xattr ibody set() and ocfs2 xattr create index block(). These helpers now assert via lockdep that the caller holds ip alloc sem.
ocfs2 xattr set handle(), which only sets initial ACL or security xattrs on unpublished inodes inside the create transaction, takes ip alloc sem under a dedicated lockdep subclass so that the assertions hold without creating a transaction -> ip alloc sem cycle against the ip alloc sem -> transaction order. The inode is unpublished, so the acquisition can never contend.
This keeps the established ip alloc sem -> transaction order and makes the locking unconditional, so lockdep can verify a single plain ordering instead of conditional acquisitions.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾