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 D535720012B for ; Thu, 8 May 2025 06:41:07 +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=1746686467; cv=none; b=a5BWmPYk/PX4T/0FvcZcdBgrWj41NOmemErAzeN4F6t6eoEEyhgnVsbZKLJB4o4qnE8c/YRImkIflnTzg9TdVhJSEV+6cplZHlA80j7PWZCwllC9wyVF1g5zO937qQz4jrAC9r+8BEVM8nJn8XDsUNOy4SBbODJL86iN0e8ABUA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746686467; c=relaxed/simple; bh=SJY/94PcjRC9YWhe2xzRX1hD9ezPsk8oA+RxN1/oAzc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=C5hwYOw23FX2H5aARL+ILJnHOZ4NxK2HMplgeBYIdaL/T66v+NoIJQCz7a6AYnG57FzfHweKSEoZrSCyrQWjFXvv1YvdaGz+Y1ciWznkamj4Qw4tpsS7z0/EoYBDd4uIWUtM9Ly0yxSF7jePqX5xvUDWAQ9h3lJ+0/2GO7/8Ybo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=c3jerjNK; 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="c3jerjNK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6351AC4CEED; Thu, 8 May 2025 06:41:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746686467; bh=SJY/94PcjRC9YWhe2xzRX1hD9ezPsk8oA+RxN1/oAzc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=c3jerjNKQvBCoBL+O8WTKDtfAKr0MtYpEjTHgHz7pG6nGml2Lh6VPBJLxmEEE4MDX fcky3cqs4oyerqFoZ23ZR81L7PUJKyviJsYhM4LnO5vvIJCX6bWr1vRt9uhsjy7FOF zT57CLpVmmiXKZBAIlkKWqfRTftV7UTCPLEPazCM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37826: scsi: ufs: core: Add NULL check in ufshcd_mcq_compl_pending_transfer() Date: Thu, 8 May 2025 08:39:35 +0200 Message-ID: <2025050822-CVE-2025-37826-83df@gregkh> X-Mailer: git-send-email 2.49.0 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=2192; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GSRLVV+Q0HxMg+Tiw9UIxOMt3EDpgJmuN3AK3LR/o14=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkygbO6H1U/CrGzK5vsKFP50m+LUFNI7GO/p//eXN26Z K9QwqN3HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRnQsY5ns1iVrzvH/80bWD U0TiydvwqTPnOTEsWK18rXdG7L6lxvPnmRpf0OiP3KIwFQA= 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: scsi: ufs: core: Add NULL check in ufshcd_mcq_compl_pending_transfer() Add a NULL check for the returned hwq pointer by ufshcd_mcq_req_to_hwq(). This is similar to the fix in commit 74736103fb41 ("scsi: ufs: core: Fix ufshcd_abort_one racing issue"). The Linux kernel CVE team has assigned CVE-2025-37826 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit ab248643d3d68b30f95ee9c238a5a20a06891204 and fixed in 6.12.26 with commit eeab6618037be84e438e9d6ed5d9a53502faf81f Issue introduced in 6.5 with commit ab248643d3d68b30f95ee9c238a5a20a06891204 and fixed in 6.14.5 with commit 700128d67d57bb1de4251e563ab85202def36c50 Issue introduced in 6.5 with commit ab248643d3d68b30f95ee9c238a5a20a06891204 and fixed in 6.15-rc4 with commit 08a966a917fe3d92150fa3cc15793ad5e57051eb 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-2025-37826 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/ufshcd.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/eeab6618037be84e438e9d6ed5d9a53502faf81f https://git.kernel.org/stable/c/700128d67d57bb1de4251e563ab85202def36c50 https://git.kernel.org/stable/c/08a966a917fe3d92150fa3cc15793ad5e57051eb