CVE-2026-139578: RDMA/ionic: Fix XArray initialization to use XArray flags
In the Linux kernel, the following vulnerability has been resolved:
RDMA/ionic: Fix XArray initialization to use XArray flags
xainitflags() takes XArray flags (XAFLAGS), not gfp flags, even though the parameter is typed gfpt. Passing GFPATOMIC leaves both lock-type bits clear, so xalocktype() resolves to XALOCKNORMAL for qptbl and cqtbl.
Both tables are used with the IRQ-safe accessors: xastoreirq() with GFPKERNEL from process context, and xalockirqsave() from the event queue path. When a store needs to grow the tree, xasnomem() drops the lock using the recorded lock type before allocating:
if (gfpflagsallowblocking(gfp)) { xasunlocktype(xas, locktype); xas->xaalloc = kmemcachealloclru(...); xaslocktype(xas, locktype); }
With XALOCKNORMAL that is a plain spinunlock(), so the sleeping GFPKERNEL allocation runs with interrupts still disabled by xastoreirq(), and lockdep annotates the lock with the wrong class.
GFPATOMIC also happens to set GFPHIGH (0x20), which collides with XAFLAGSACCOUNT (32U) and silently enables memcg accounting of the XArray nodes.
Use XAFLAGSLOCKIRQ so the lock type matches how the tables are actually accessed.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Configuration
Initialize qp_tbl and cq_tbl with xa_init_flags() using XA_FLAGS_LOCK_IRQ so the lock type matches their IRQ-safe accessors.
Linux kernel RDMA/ionic (qp_tbl and cq_tbl) XArray initialization flags = XA_FLAGS_LOCK_IRQ
Event History
Frequently Asked Questions
When can the faulty locking behavior occur?
It occurs when an insertion into the qp_tbl or cq_tbl XArray needs to grow the tree. In that path, a GFP_KERNEL allocation can be attempted after xa_store_irq() has disabled interrupts, while the XArray is configured with the wrong lock type.
What should be changed to remediate the issue?
Initialize the qp_tbl and cq_tbl XArrays with XA_FLAGS_LOCK_IRQ rather than passing GFP_ATOMIC to xa_init_flags(). This makes the recorded XArray lock type match the IRQ-safe accessors used by these tables.
How can I determine whether a source tree contains the vulnerable initialization?
Inspect the RDMA/ionic XArray initialization for qp_tbl and cq_tbl. The affected code passes GFP_ATOMIC to xa_init_flags(); corrected code uses XA_FLAGS_LOCK_IRQ.