# CVE-2026-139578: RDMA/ionic: Fix XArray initialization to use XArray flags

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-11-30T13:36:03.148Z
- Modified: 2026-11-30T14:19:39.050Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from e8521822c733c6deab0f339843cd37cd62c12795 before af56f866f152afe843239818ed127994bb564eb2; from e8521822c733c6deab0f339843cd37cd62c12795 before cf11ce423eb12ce5fb774101e7e49ec397ed732a; from e8521822c733c6deab0f339843cd37cd62c12795 before 2eca9c14e66a1f71c089fe5c3afb2d339da3023a; 6.18 (not affected: before 6.18; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/af56f866f152afe843239818ed127994bb564eb2>
- <https://git.kernel.org/stable/c/cf11ce423eb12ce5fb774101e7e49ec397ed732a>
- <https://git.kernel.org/stable/c/2eca9c14e66a1f71c089fe5c3afb2d339da3023a>

## Sources

- CVE List: [CVE-2026-139578](https://www.cve.org/CVERecord?id=CVE-2026-139578), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139578](https://nvd.nist.gov/vuln/detail/CVE-2026-139578), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139578 · Whole record: https://cve.day/CVE-2026-139578.json · Rebuilt by cve.day 2026-11-30T14:33:38.578Z
