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 CC4971D0954 for ; Tue, 19 Nov 2024 17:20: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=1732036807; cv=none; b=K/yKbPFSelYZvPLbV/x1i5WZIctpIjb88A72FglKJw0YPo51Zb2w7BrySq5iCcaQWniIQuxUgXg7zZG3cQDFJSOk0t97LaibBCtLK58BdTT7hOqihR+J+AkM7bgSze0RNDUOJnS5hSwzNQFWG9bhFxN0Ifi+PSiXp2abwlaN0Yc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732036807; c=relaxed/simple; bh=rN0LriZ5Ag16otE16DsX0gOHGKv3L4KBepGAS0zassY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FqnJU2sSg8sgueRudgpat0/sax5Gtu5YfUEFjCWTgt4bNAxyAiJhmbrD/kMW85QvZibgPD7RkiBUtO9v/qYcBPqBYvolA1azHFXUvBPbxvFs2Odma4TTogRcXPusrxXYDKsnppxso8S4minsvesg/BI9keKn6+ZoeFEqBbTHrsg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EG47DqnU; 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="EG47DqnU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4364CC4CECF; Tue, 19 Nov 2024 17:20:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1732036807; bh=rN0LriZ5Ag16otE16DsX0gOHGKv3L4KBepGAS0zassY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EG47DqnUStc4oQ4hHOklsACB8pcOlRygvZC+8URd2KPJfIIHCFfBH15EYdjyG/4/q v2jVqwZGEZVcEJsn28XAAWEI+r7PNvriw+qscid4RuHL4BLsjb/Lb3Jvx+2ig0c2Zu us6ZV7mbcR+h7UC2PkwoVxU2PEiK8Tl4bw13El1M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53053: scsi: ufs: core: Fix another deadlock during RTC update Date: Tue, 19 Nov 2024 18:19:35 +0100 Message-ID: <2024111927-CVE-2024-53053-57bf@gregkh> X-Mailer: git-send-email 2.47.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=1947; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rN0LriZ5Ag16otE16DsX0gOHGKv3L4KBepGAS0zassY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk2J+Y/+z/9ocbpX2W6xwPcM32jFksHzxX93Wt7k5337 i7WXr1JHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRlNMMCw5vzAoMf2O5297X Xeh/68QW87D9FxnmcBtaZcx+8Fa79byberLz1b3q87/uBAA= 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 another deadlock during RTC update If ufshcd_rtc_work calls ufshcd_rpm_put_sync() and the pm's usage_count is 0, we will enter the runtime suspend callback. However, the runtime suspend callback will wait to flush ufshcd_rtc_work, causing a deadlock. Replace ufshcd_rpm_put_sync() with ufshcd_rpm_put() to avoid the deadlock. The Linux kernel CVE team has assigned CVE-2024-53053 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 6bf999e0eb41 and fixed in 6.11.7 with commit a128cfec4470 Issue introduced in 6.8 with commit 6bf999e0eb41 and fixed in 6.12 with commit cb7e509c4e01 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-53053 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/a128cfec44709ab1bd1f01d158569bcb2386f54f https://git.kernel.org/stable/c/cb7e509c4e0197f63717fee54fb41c4990ba8d3a