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 953EB145358 for ; Tue, 21 May 2024 15:35: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=1716305724; cv=none; b=qO5bRCI17Ev+82AxqWgCbiNm3Hh7EXSHqPuLYnrYqkpW4yJizE81/9WkS5BHVaa4jXSrKb7ZH4xQorV3X9IlOsZvYEwaxXICI++uQYZBQhb3ZRVqSKQ847U3M2XD0TSi8rKuBkCqyJba4xZNeH+fRF1HtRKHXVp1ImjTeMDpe5o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305724; c=relaxed/simple; bh=LW3XZ7JvbHPspFrkEUyQrSfIdycx0L4AQG3HT2IjESk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HvyY2CkmQqsA7vYg1IaOWADZKElsHNceigPBbSVyZEiJymRVuDC5BTA5ra7BPJ5ZCvucC43cGnKQ/FBEAXNYkQiS/+udlvmUzDxxPE+M9NHh3yxbYq9t6ukrY2CJNF5TTcDlBFvnkcBJ6vV/764YzeyyIDnBZBah4mmmJivddrk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dlV5wmuF; 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="dlV5wmuF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E237C2BD11; Tue, 21 May 2024 15:35:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305724; bh=LW3XZ7JvbHPspFrkEUyQrSfIdycx0L4AQG3HT2IjESk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dlV5wmuFj1FZEjCRrf0qvPFKK/UsobaDjBFHSBduJ7zf2fG7TQm+U5XdXDVWp4AGe 6aAEqOLkQxMoIFUgBuIjDxRq8nCDBMCb4km/4VK+YOOvFw4/UywGEc4erjDKf4Csb+ 8/OJofGIH1VGbFdynrdN5W+WiOMOEfZfX8AM8TBg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52785: scsi: ufs: core: Fix racing issue between ufshcd_mcq_abort() and ISR Date: Tue, 21 May 2024 17:31:21 +0200 Message-ID: <2024052154-CVE-2023-52785-8104@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=2244; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LW3XZ7JvbHPspFrkEUyQrSfIdycx0L4AQG3HT2IjESk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++/Qa2I+0nfqtkenAtyz6o+RW72fTqvfn2V/ivbJ0s 5Kntfq/jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIowTDPPvVfY+b8hJ9lyly mX7k/HDTrPhTD8OC5dvY5jFvPzpJ63ncLn+9uKjtm+orAQ== 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: core: Fix racing issue between ufshcd_mcq_abort() and ISR If command timeout happens and cq complete IRQ is raised at the same time, ufshcd_mcq_abort clears lprb->cmd and a NULL pointer deref happens in the ISR. Error log: ufshcd_abort: Device abort task at tag 18 Unable to handle kernel NULL pointer dereference at virtual address 0000000000000108 pc : [0xffffffe27ef867ac] scsi_dma_unmap+0xc/0x44 lr : [0xffffffe27f1b898c] ufshcd_release_scsi_cmd+0x24/0x114 The Linux kernel CVE team has assigned CVE-2023-52785 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit f1304d442077 and fixed in 6.5.13 with commit 8f15a7e3c054 Issue introduced in 6.5 with commit f1304d442077 and fixed in 6.6.3 with commit f84d461f33a6 Issue introduced in 6.5 with commit f1304d442077 and fixed in 6.7 with commit 27900d7119c4 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-2023-52785 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/core/ufs-mcq.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/8f15a7e3c054d960bbd1521110700450bbf798a1 https://git.kernel.org/stable/c/f84d461f33a6b27304d468d9cfb56c0cefdb4ee7 https://git.kernel.org/stable/c/27900d7119c464b43cd9eac69c85884d17bae240