{"id":"CVE-2026-139578","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:19:39.050","lastModified":"2026-11-30T14:19:39.050","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/ionic: Fix XArray initialization to use XArray flags\n\nxa_init_flags() takes XArray flags (XA_FLAGS_*), not gfp flags, even\nthough the parameter is typed gfp_t. Passing GFP_ATOMIC leaves both\nlock-type bits clear, so xa_lock_type() resolves to XA_LOCK_NORMAL for\nqp_tbl and cq_tbl.\n\nBoth tables are used with the IRQ-safe accessors: xa_store_irq() with\nGFP_KERNEL from process context, and xa_lock_irqsave() from the event\nqueue path. When a store needs to grow the tree, __xas_nomem() drops\nthe lock using the recorded lock type before allocating:\n\n\tif (gfpflags_allow_blocking(gfp)) {\n\t\txas_unlock_type(xas, lock_type);\n\t\txas->xa_alloc = kmem_cache_alloc_lru(...);\n\t\txas_lock_type(xas, lock_type);\n\t}\n\nWith XA_LOCK_NORMAL that is a plain spin_unlock(), so the sleeping\nGFP_KERNEL allocation runs with interrupts still disabled by\nxa_store_irq(), and lockdep annotates the lock with the wrong class.\n\nGFP_ATOMIC also happens to set __GFP_HIGH (0x20), which collides with\nXA_FLAGS_ACCOUNT (32U) and silently enables memcg accounting of the\nXArray nodes.\n\nUse XA_FLAGS_LOCK_IRQ so the lock type matches how the tables are\nactually accessed."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/infiniband/hw/ionic/ionic_ibdev.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"e8521822c733c6deab0f339843cd37cd62c12795","lessThan":"af56f866f152afe843239818ed127994bb564eb2","versionType":"git","status":"affected"},{"version":"e8521822c733c6deab0f339843cd37cd62c12795","lessThan":"cf11ce423eb12ce5fb774101e7e49ec397ed732a","versionType":"git","status":"affected"},{"version":"e8521822c733c6deab0f339843cd37cd62c12795","lessThan":"2eca9c14e66a1f71c089fe5c3afb2d339da3023a","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/infiniband/hw/ionic/ionic_ibdev.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.18","status":"affected"},{"version":"0","lessThan":"6.18","versionType":"semver","status":"unaffected"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/2eca9c14e66a1f71c089fe5c3afb2d339da3023a","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/af56f866f152afe843239818ed127994bb564eb2","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/cf11ce423eb12ce5fb774101e7e49ec397ed732a","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}