CVE-2024-57872: scsi: ufs: pltfrm: Dellocate HBA during ufshcd_pltfrm_remove()
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
scsi: ufs: pltfrm: Dellocate HBA during ufshcd_pltfrm_remove()
This will ensure that the scsi host is cleaned up properly using scsi_host_dev_release(). Otherwise, it may lead to memory leaks.
The Linux kernel CVE team has assigned CVE-2024-57872 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.10 with commit 03b1781aa978aab345b5a85d8596f8615281ba89 and fixed in 6.12.5 with commit cd188519d2467ab4c2141587b0551ba030abff0e Issue introduced in 3.10 with commit 03b1781aa978aab345b5a85d8596f8615281ba89 and fixed in 6.13-rc2 with commit 897df60c16d54ad515a3d0887edab5c63da06d1f
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-57872
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/ufshcd-pltfrm.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/cd188519d2467ab4c2141587b0551ba030abff0e https://git.kernel.org/stable/c/897df60c16d54ad515a3d0887edab5c63da06d1f