CVE-2026-139578

RDMA/ionic: Fix XArray initialization to use XArray flags

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The defect occurs in the Linux kernel's RDMA/ionic subsystem where an XArray initialization helper is incorrectly called with GFP_ATOMIC, thereby clearing essential lock-type bits. This results in the lock being treated as a normal spinlock instead of an IRQ‑safe lock, and causes a memory‑allocation path to execute while interrupts remain disabled. The collision of GFP_ATOMIC with accounting flags also inadvertently enables memcg accounting of XArray nodes. These mis‑initializations can lead to kernel deadlocks, improper memory accounting, and, in worst cases, race‑condition‑driven memory corruption or crashes. The issue is an Improper Initialization coupled with Improper Locking.

Affected Systems

All Linux kernel builds before the commits shown in the referenced source control patches are affected. The vulnerability is confined to the RDMA/ionic code that manages qp_tbl and cq_tbl XArrays. Users running upstream or downstream kernels that have not applied the commit that changes the flag to XA_FLAGS_LOCK_IRQ are vulnerable.

Risk and Exploitability

No public exploit or CVSS score is available, and the vulnerability is not listed in the CISA KEV catalog. The EPSS score is not available, suggesting no documented active exploitation at the time of this analysis. Nonetheless, the bug introduces a race condition that could lead to kernel instability. While a remote exploitation path is not evident, the potential impact on system availability warrants timely remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the commits 2eca9c14e66a1f71c089fe5c3afb2d339da3023a, af56f866f152afe843239818ed127994bb564eb2, or cf11ce423eb12ce5fb774101e7e49ec397ed732a.
  • If immediate update is not possible, enable lockdep consistency checks to detect mismatched lock classes.
  • Monitor system logs for deadlock or memory‑corruption events and respond promptly if such events occur.

Generated by OpenCVE AI on December 1, 2026 at 00:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-665
CWE-823
Type Values Removed Values Added
Description 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.
Title RDMA/ionic: Fix XArray initialization to use XArray flags
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-665

    Improper Initialization

  • CWE-823

    Use of Out-of-range Pointer Offset

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM