Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A1957182D09 for ; Thu, 30 May 2024 15:30:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717083024; cv=none; b=fWJhStbGqjd8yDa3yCqYv2FER0juKFj8cbY3/BxNnDmDyinjVHScwU8YvzQNdv3aEwI+9M2xsJ7BAf0NQR26UUR1NQ7mq4eq3DB3VwQF85fTBrJOsj8YOW0orHFgxKxrsKXPYJYYEnpAy0mV5Jz6lvRQUYoy5WZk/Q9lF9FY6tE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717083024; c=relaxed/simple; bh=9Nfr47PAq/7hWtDqrn7825pqUVpMIOLktJY22cARhpY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sjow9vg0yH5TsZAIem2px8/sIs4VadNkj9l+x8MUnS7EHDlWjC4W7cswtJqCaqD9RJw9+InAnlR5cL9VBKFHl6HKPFW1DwXVkX/wjDUQF0xx8rzHOb9deR24K7CTQ92owjl3TbTq2cY8O0uVM5n45wgCGpFUp3hCHghz6QmiuMw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Bswnczw1; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Bswnczw1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 365E9C4AF14; Thu, 30 May 2024 15:30:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717083024; bh=9Nfr47PAq/7hWtDqrn7825pqUVpMIOLktJY22cARhpY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Bswnczw1h2P9Vi/2aj0qo1iIeZJG7dbNFikXAsrJrdFfqRiQxJJT+7Y5h/LgwTBHD gUqDayGx2404FvqeiNG8WbTyAhc11I7qoej+G4vR/19+XI0DlpLC3hwC4AadPY3aT5 +b1F6G8TMigVcwV/qQTFWZD9xqg+yQsCRlufiJFA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36926: powerpc/pseries/iommu: LPAR panics during boot up with a frozen PE Date: Thu, 30 May 2024 17:29:18 +0200 Message-ID: <2024053040-CVE-2024-36926-c3a3@gregkh> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=4098; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9Nfr47PAq/7hWtDqrn7825pqUVpMIOLktJY22cARhpY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRszWECgO4d6bpGffJ/A9+dtLtTKT+/oPzLmXvjpqks 3E5u4BTRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk/T2G+fV/dE0Lqn+xNvTM 5v5nUVRiyWM+nWHB9uvBcjyeC62y7t8LlZhfa32+KN4BAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: powerpc/pseries/iommu: LPAR panics during boot up with a frozen PE At the time of LPAR boot up, partition firmware provides Open Firmware property ibm,dma-window for the PE. This property is provided on the PCI bus the PE is attached to. There are execptions where the partition firmware might not provide this property for the PE at the time of LPAR boot up. One of the scenario is where the firmware has frozen the PE due to some error condition. This PE is frozen for 24 hours or unless the whole system is reinitialized. Within this time frame, if the LPAR is booted, the frozen PE will be presented to the LPAR but ibm,dma-window property could be missing. Today, under these circumstances, the LPAR oopses with NULL pointer dereference, when configuring the PCI bus the PE is attached to. BUG: Kernel NULL pointer dereference on read at 0x000000c8 Faulting instruction address: 0xc0000000001024c0 Oops: Kernel access of bad area, sig: 7 [#1] LE PAGE_SIZE=64K MMU=Radix SMP NR_CPUS=2048 NUMA pSeries Modules linked in: Supported: Yes CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.4.0-150600.9-default #1 Hardware name: IBM,9043-MRX POWER10 (raw) 0x800200 0xf000006 of:IBM,FW1060.00 (NM1060_023) hv:phyp pSeries NIP: c0000000001024c0 LR: c0000000001024b0 CTR: c000000000102450 REGS: c0000000037db5c0 TRAP: 0300 Not tainted (6.4.0-150600.9-default) MSR: 8000000002009033 CR: 28000822 XER: 00000000 CFAR: c00000000010254c DAR: 00000000000000c8 DSISR: 00080000 IRQMASK: 0 ... NIP [c0000000001024c0] pci_dma_bus_setup_pSeriesLP+0x70/0x2a0 LR [c0000000001024b0] pci_dma_bus_setup_pSeriesLP+0x60/0x2a0 Call Trace: pci_dma_bus_setup_pSeriesLP+0x60/0x2a0 (unreliable) pcibios_setup_bus_self+0x1c0/0x370 __of_scan_bus+0x2f8/0x330 pcibios_scan_phb+0x280/0x3d0 pcibios_init+0x88/0x12c do_one_initcall+0x60/0x320 kernel_init_freeable+0x344/0x3e4 kernel_init+0x34/0x1d0 ret_from_kernel_user_thread+0x14/0x1c The Linux kernel CVE team has assigned CVE-2024-36926 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit b1fc44eaa9ba and fixed in 6.1.91 with commit 7fb5793c53f8 Issue introduced in 6.0 with commit b1fc44eaa9ba and fixed in 6.6.31 with commit 802b13b79ab1 Issue introduced in 6.0 with commit b1fc44eaa9ba and fixed in 6.8.10 with commit 2bed905a7248 Issue introduced in 6.0 with commit b1fc44eaa9ba and fixed in 6.9 with commit 49a940dbdc31 Issue introduced in 5.18.18 with commit b9f08b2649dd Issue introduced in 5.19.2 with commit 58942f672c6d 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-2024-36926 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/platforms/pseries/iommu.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/7fb5793c53f8c024e3eae9f0d44eb659aed833c4 https://git.kernel.org/stable/c/802b13b79ab1fef66c6852fc745cf197dca0cb15 https://git.kernel.org/stable/c/2bed905a72485a2b79a001bd7e66c750942d2155 https://git.kernel.org/stable/c/49a940dbdc3107fecd5e6d3063dc07128177e058