PT-2026-163619
CVE-2026-139578
·
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:
RDMA/ionic: Fix XArray initialization to use XArray flags
xa init flags() takes XArray flags (XA FLAGS *), not gfp flags, even
though the parameter is typed gfp t. Passing GFP ATOMIC leaves both
lock-type bits clear, so xa lock type() resolves to XA LOCK NORMAL for
qp tbl and cq tbl.
Both tables are used with the IRQ-safe accessors: xa store irq() with
GFP KERNEL from process context, and xa lock irqsave() from the event
queue path. When a store needs to grow the tree, xas nomem() drops
the lock using the recorded lock type before allocating:
if (gfpflags allow blocking(gfp)) {
xas unlock type(xas, lock type);
xas->xa alloc = kmem cache alloc lru(...);
xas lock type(xas, lock type);
}With XA LOCK NORMAL that is a plain spin unlock(), so the sleeping
GFP KERNEL allocation runs with interrupts still disabled by
xa store irq(), and lockdep annotates the lock with the wrong class.
GFP ATOMIC also happens to set GFP HIGH (0x20), which collides with
XA FLAGS ACCOUNT (32U) and silently enables memcg accounting of the
XArray nodes.
Use XA FLAGS LOCK IRQ so the lock type matches how the tables are
actually accessed.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾