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 E976035959 for ; Fri, 27 Dec 2024 15:01:23 +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=1735311684; cv=none; b=PhCshIzfvKDoIxeYjyOfPW2H/HBacYjRTP3+l4jmnujMOWex36v1YkC4EKQytsfasD9lAHFP5pJKRRwCkyA+fZTb1DDPiKc+ons799cW3P2frQGtCAifgaV0jDo2No/+suhdaPoQgFaX+rrS7py77+KQwVk3L2zQ5oaMyIgL/5g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735311684; c=relaxed/simple; bh=zFWx/7aS2M9GSPf0fyf48xKciYQhj+cjd5Sal58RzX0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QS5W+obIsw70g3fxcWHidc/TVXBXLbHJgMcgo56eL/qk7r/DS4cJpX+DGxoSMQqQeZnnN34LW59o7waKXVpTuTwinSAJA5ycFI/ZKqnXZAWiPnWiX/Y9tLjZ7330D9fIFvL5Yj0ZRlDOFyQmoEVuIIOzPx2bsS8faX+oQVSSgLI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dxDy/Vjc; 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="dxDy/Vjc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA132C4CED0; Fri, 27 Dec 2024 15:01:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735311683; bh=zFWx/7aS2M9GSPf0fyf48xKciYQhj+cjd5Sal58RzX0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dxDy/Vjckl4/05oUEFnRbWVUwdmK6Aoaitxs2oyxxqoNd2iIH4tM5Dl2BjODMeqdM omutIM/xVlZB+CF8PweW9kuvfED8naPmMzHjsUicH0FDb+hPOuQ1hm51ZAYfs9j+gb xkk2gQEej6yWb8akzMMr3/8fEffcyoFr3SnktJJg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56620: scsi: ufs: qcom: Only free platform MSIs when ESI is enabled Date: Fri, 27 Dec 2024 15:51:27 +0100 Message-ID: <2024122709-CVE-2024-56620-d1a8@gregkh> X-Mailer: git-send-email 2.47.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=2525; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zFWx/7aS2M9GSPf0fyf48xKciYQhj+cjd5Sal58RzX0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5++7JnrdYJZJedHaG8+M9mh55p5YJNpzhPZi52Oxu0 drGhj0hHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARuQiG+Tkr+w8eFal5MOur 1/LqDSb3NjayFzEsuGC8JSnIzLFTXKO+ZRl39r+I410PAA== 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: scsi: ufs: qcom: Only free platform MSIs when ESI is enabled Otherwise, it will result in a NULL pointer dereference as below: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008 Call trace: mutex_lock+0xc/0x54 platform_device_msi_free_irqs_all+0x14/0x20 ufs_qcom_remove+0x34/0x48 [ufs_qcom] platform_remove+0x28/0x44 device_remove+0x4c/0x80 device_release_driver_internal+0xd8/0x178 driver_detach+0x50/0x9c bus_remove_driver+0x6c/0xbc driver_unregister+0x30/0x60 platform_driver_unregister+0x14/0x20 ufs_qcom_pltform_exit+0x18/0xb94 [ufs_qcom] __arm64_sys_delete_module+0x180/0x260 invoke_syscall+0x44/0x100 el0_svc_common.constprop.0+0xc0/0xe0 do_el0_svc+0x1c/0x28 el0_svc+0x34/0xdc el0t_64_sync_handler+0xc0/0xc4 el0t_64_sync+0x190/0x194 The Linux kernel CVE team has assigned CVE-2024-56620 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit 519b6274a7775f5fe00a086f189efb8f063467d1 and fixed in 6.12.5 with commit f99cb5f6344ef93777fd3add7979ebf291a852df Issue introduced in 6.3 with commit 519b6274a7775f5fe00a086f189efb8f063467d1 and fixed in 6.13-rc2 with commit 64506b3d23a337e98a74b18dcb10c8619365f2bd 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-56620 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: drivers/ufs/host/ufs-qcom.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/f99cb5f6344ef93777fd3add7979ebf291a852df https://git.kernel.org/stable/c/64506b3d23a337e98a74b18dcb10c8619365f2bd