Skip to contentSkip to conversation

CVE-2024-57852: firmware: qcom: scm: smc: Handle missing SCM device

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Feb 27, 2025

lore
Share & tools
lore
#0 lore raw

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

firmware: qcom: scm: smc: Handle missing SCM device

Commit ca61d6836e6f ("firmware: qcom: scm: fix a NULL-pointer dereference") makes it explicit that qcom_scm_get_tzmem_pool() can return NULL, therefore its users should handle this.

The Linux kernel CVE team has assigned CVE-2024-57852 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.12.16 with commit cd955b75849b58b650ca3f87b83bd78cde1da8bc
	Fixed in 6.13.4 with commit 57a811c0886f3f3677bb4619502b35b5bb917f2e
	Fixed in 6.14-rc1 with commit 94f48ecf0a538019ca2025e0b0da391f8e7cc58c

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-57852

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/firmware/qcom/qcom_scm-smc.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/cd955b75849b58b650ca3f87b83bd78cde1da8bc
	https://git.kernel.org/stable/c/57a811c0886f3f3677bb4619502b35b5bb917f2e
	https://git.kernel.org/stable/c/94f48ecf0a538019ca2025e0b0da391f8e7cc58c