{"id":"CVE-2024-57985","revision":"8773a06251bf4b0a9f87744e9d67fe2a","records":[{"revision":"8773a06251bf4b0a9f87744e9d67fe2a","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-57985","aliases":[],"title":"firmware: qcom: scm: Cleanup global '__scm' on probe failures","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware: qcom: scm: Cleanup global '__scm' on probe failures\n\nIf SCM driver fails the probe, it should not leave global '__scm'\nvariable assigned, because external users of this driver will assume the\nprobe finished successfully.  For example TZMEM parts ('__scm->mempool')\nare initialized later in the probe, but users of it (__scm_smc_call())\nrely on the '__scm' variable.\n\nThis fixes theoretical NULL pointer exception, triggered via introducing\nprobe deferral in SCM driver with call trace:\n\n  qcom_tzmem_alloc+0x70/0x1ac (P)\n  qcom_tzmem_alloc+0x64/0x1ac (L)\n  qcom_scm_assign_mem+0x78/0x194\n  qcom_rmtfs_mem_probe+0x2d4/0x38c\n  platform_probe+0x68/0xc8","state":0,"publishedAt":"2025-02-27T02:07:09.983+00:00","modifiedAt":"2026-10-15T21:51:50.141+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/firmware/qcom/qcom_scm.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"40289e35ca525f29a03989352ab207b6a9675475\",\n                            \"lessThan\": \"390d3baeba51a126f75c97b90ec28b9384ce4b84\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"40289e35ca525f29a03989352ab207b6a9675475\",\n                            \"lessThan\": \"faf1715798fe72b79e4432ce8c6d03ca69765425\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"40289e35ca525f29a03989352ab207b6a9675475\",\n                            \"lessThan\": \"1e76b546e6fca7eb568161f408133904ca6bcf4f\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/firmware/qcom/qcom_scm.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.11\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.11\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.13\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.13.2\",\n                            \"lessThanOrEqual\": \"6.13.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.14\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/390d3baeba51a126f75c97b90ec28b9384ce4b84","https://git.kernel.org/stable/c/faf1715798fe72b79e4432ce8c6d03ca69765425","https://git.kernel.org/stable/c/1e76b546e6fca7eb568161f408133904ca6bcf4f"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-57985","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-57985","identifiers":["CVE-2024-57985"]},"retained":false,"historicalAffected":[]}],"coverage":[]}