{"id":"CVE-2026-139578","summary":"RDMA/ionic: Fix XArray initialization to use XArray flags","details":"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-\u003exa_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.","modified":"2026-12-01T21:02:38.904746909Z","published":"2026-11-30T13:36:03.148Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139578.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2eca9c14e66a1f71c089fe5c3afb2d339da3023a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/af56f866f152afe843239818ed127994bb564eb2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cf11ce423eb12ce5fb774101e7e49ec397ed732a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139578.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139578"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e8521822c733c6deab0f339843cd37cd62c12795"},{"fixed":"af56f866f152afe843239818ed127994bb564eb2"},{"fixed":"cf11ce423eb12ce5fb774101e7e49ec397ed732a"},{"fixed":"2eca9c14e66a1f71c089fe5c3afb2d339da3023a"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139578.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.18.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139578.json"}}],"schema_version":"1.9.2"}