PT-2026-162931
CVE-2026-99964
·
Publicado
2026-11-30
·
Atualizado
2026-11-30
Descrição por
Pontuação
N/A
Não disponívelNã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: use the stored hash when checking xattr bucket collision
ocfs2 check xattr bucket collision() decides whether splitting a full
bucket can make room for the entry being set by recomputing the hash of
the name:
u32 name hash = ocfs2 xattr name hash(inode, name, strlen(name));
if (name hash != le32 to cpu(xh->xh entries[0].xe name hash))
return 0;For a new entry that is the hash it will be stored under, so comparing it
is correct. An existing entry keeps the hash it already has: an update
never rewrites xe name hash, since ocfs2 xa add entry() is the only
writer of that field for a real entry and ocfs2 xa prepare entry() calls
it only when loc->xl entry is NULL.
An entry stored by a kernel that sign-extended the name bytes when
hashing can still be updated, because ocfs2 xattr find entry() searches
a non-indexed xattr block by memcmp on the name and never looks at
xe name hash. Growing it past the space left in the block converts the
block into a tree, ocfs2 cp xattr block to bucket() fills the bucket in
stored hash order, and the update runs out of room in the bucket too.
The collision check then compares the unsigned hash against the legacy
hashes in the bucket and reports no collision.
ocfs2 xattr set entry index block() goes on to allocate a bucket that
ocfs2 divide xattr bucket() cannot fill: a bucket whose entries all share
one hash has no divide position, so all it does is append an empty bucket
with a sentinel hash one above the last entry's.
The re-search that follows depends on where the unsigned hash sorts.
Below the legacy ones, it comes back to the full bucket and the set fails
with -ENOSPC, having grown the tree for nothing. Above them, it lands on
the new empty bucket, which ocfs2 xattr bucket find() handles explicitly
and ocfs2 find xe in bucket() scans zero times, so the set stores a second
copy of the entry under the unsigned hash and returns success. The
original stays in the full bucket, listxattr reports the name twice and
getxattr returns the new copy.
Pass the hash the entry is stored under instead: the stored one for an
existing entry, the unsigned one for a new entry. A tree whose entries
are all stored under the unsigned hash sees no change, since there the
two are the same value.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾