Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 179AE3AEF59 for ; Thu, 28 May 2026 09:41:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961278; cv=none; b=S6c+mXaXUTarBFUVWSEcRhazw9Tq9d7eE7EXdpxdnwvBbmYT+S4L47qSwkP9xa6qpvq7RyL7Ka1lSIp0DfWyH3lU2CLhU33oLzH+/hrtE+DkqmhOBb4QJiP9aZpWwPljxAFsYjr3kzl2DXktGyRoG+9UWvkPmLYRoyib+q7Ij8U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961278; c=relaxed/simple; bh=9iBQEZBcq+ULaBQacjtP68qJClaHG3Ipa9DSUmkeUW0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X7kPxVTvnFdmf1NJoHpcDRxZ1d0i3XMRu2GBE5ExpyxlFpXzGpsNpgng1/rOiF3jTX08Ww23nMmD4A9aUYethVXsIjv4qpuQMzU/kbSONUmmKf9085YgB9r8HNgRbeigVcHCF51RjgZZL6u2fTib2Cwxr2FwpJBVVBL/+PrZhIs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=o66S9GuU; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="o66S9GuU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 387781F000E9; Thu, 28 May 2026 09:41:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961277; bh=zj1HdBQWHxROxeVLzs9hqMr5hxJrEHz6XozqC6HPVqI=; h=From:To:Cc:Subject:Date:Reply-To; b=o66S9GuUAJeLp0Wnifq6m/UY/UNbEeipXr4c0cNeACNa5E/gh54wqEU4aYeUK0Ncu +CnL2tJ/TWAoNjqHmveWpv21OjhTc3kw1onXROqIXVfk9F+SRmMh6cgUjY41RAF1K7 DjqldLRcQ3lp3F73x1JY+1Qp6qtMWbQv9cjyG/6M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46141: powerpc/xive: fix kmemleak caused by incorrect chip_data lookup Date: Thu, 28 May 2026 11:36:46 +0200 Message-ID: <2026052820-CVE-2026-46141-075f@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3951; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ln5+l9rCUd7xQ5yVggJPZFDdF1BLNRCW354KgWZt3Pg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPFOyKu9rK14O2zDHwySTI5Px87aLHE/+X/1/TCvC/ o7jtsprHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRZnGGBVdj3ypUyaq6ijPp 2Eh7zP2neX7afYZ5Kjd2fcy51vrz5mMt7TKlHXEBO9NPAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: powerpc/xive: fix kmemleak caused by incorrect chip_data lookup The kmemleak reports the following memory leak: Unreferenced object 0xc0000002a7fbc640 (size 64): comm "kworker/8:1", pid 540, jiffies 4294937872 hex dump (first 32 bytes): 01 00 00 00 00 00 00 00 00 00 09 04 00 04 00 00 ................ 00 00 a7 81 00 00 0a c0 00 00 08 04 00 04 00 00 ................ backtrace (crc 177d48f6): __kmalloc_cache_noprof+0x520/0x730 xive_irq_alloc_data.constprop.0+0x40/0xe0 xive_irq_domain_alloc+0xd0/0x1b0 irq_domain_alloc_irqs_parent+0x44/0x6c pseries_irq_domain_alloc+0x1cc/0x354 irq_domain_alloc_irqs_parent+0x44/0x6c msi_domain_alloc+0xb0/0x220 irq_domain_alloc_irqs_locked+0x138/0x4d0 __irq_domain_alloc_irqs+0x8c/0xfc __msi_domain_alloc_irqs+0x214/0x4d8 msi_domain_alloc_irqs_all_locked+0x70/0xf8 pci_msi_setup_msi_irqs+0x60/0x78 __pci_enable_msix_range+0x54c/0x98c pci_alloc_irq_vectors_affinity+0x16c/0x1d4 nvme_pci_enable+0xac/0x9c0 [nvme] nvme_probe+0x340/0x764 [nvme] This occurs when allocating MSI-X vectors for an NVMe device. During allocation the XIVE code creates a struct xive_irq_data and stores it in irq_data->chip_data. When the MSI-X irqdomain is later freed, xive_irq_free_data() is responsible for retrieving this structure and freeing it. However, after commit cc0cc23babc9 ("powerpc/xive: Untangle xive from child interrupt controller drivers"), xive_irq_free_data() retrieves the chip_data using irq_get_chip_data(), which looks up the data through the child domain. This is incorrect because the XIVE-specific irq data is associated with the XIVE (parent) domain. As a result the lookup fails and the allocated struct xive_irq_data is never freed, leading to the kmemleak report shown above. Fix this by retrieving the irq_data from the correct domain using irq_domain_get_irq_data() and then accessing the chip_data via irq_data_get_irq_chip_data(). The Linux kernel CVE team has assigned CVE-2026-46141 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit cc0cc23babc979e399f34f53e4bccf702a389558 and fixed in 6.18.30 with commit 2546fb8c9acc8c7512ed4339ce2a982cb7407065 Issue introduced in 6.18 with commit cc0cc23babc979e399f34f53e4bccf702a389558 and fixed in 7.0.7 with commit e66ed135cdf23a318e9727dca48f98f7f6142f78 Issue introduced in 6.18 with commit cc0cc23babc979e399f34f53e4bccf702a389558 and fixed in 7.1-rc1 with commit 6771c54728c278bf1e4bfdab4fddbbb186e33498 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-46141 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: arch/powerpc/sysdev/xive/common.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/2546fb8c9acc8c7512ed4339ce2a982cb7407065 https://git.kernel.org/stable/c/e66ed135cdf23a318e9727dca48f98f7f6142f78 https://git.kernel.org/stable/c/6771c54728c278bf1e4bfdab4fddbbb186e33498