| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-53053: scsi: ufs: core: Fix another deadlock during RTC update |
| |
| 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 6bf999e0eb41850d5c857102535d5c53b2ede224 and fixed in 6.11.7 with commit a128cfec44709ab1bd1f01d158569bcb2386f54f |
| Issue introduced in 6.8 with commit 6bf999e0eb41850d5c857102535d5c53b2ede224 and fixed in 6.12 with commit cb7e509c4e0197f63717fee54fb41c4990ba8d3a |
| |
| 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/9aa1f0da237d6b16e36e0a0cc9f746d1d78396ed |
| https://git.kernel.org/stable/c/a128cfec44709ab1bd1f01d158569bcb2386f54f |
| https://git.kernel.org/stable/c/cb7e509c4e0197f63717fee54fb41c4990ba8d3a |