VDB

CVE-2024-57985

CVE-2024-57985 PUBLISHED CVSS 7 HIGH

firmware: qcom: scm: Cleanup global '__scm' on probe failures

Reported by linux · Published February 27, 2025

In the Linux kernel, the following vulnerability has been resolved: firmware: qcom: scm: Cleanup global '__scm' on probe failures If SCM driver fails the probe, it should not leave global '__scm' variable assigned, because external users of this driver will assume the probe finished successfully. For example TZMEM parts ('__scm->mempool') are initialized later in the probe, but users of it (__scm_smc_call()) rely on the '__scm' variable. This fixes theoretical NULL pointer exception, triggered via introducing probe deferral in SCM driver with call trace: qcom_tzmem_alloc+0x70/0x1ac (P) qcom_tzmem_alloc+0x64/0x1ac (L) qcom_scm_assign_mem+0x78/0x194 qcom_rmtfs_mem_probe+0x2d4/0x38c platform_probe+0x68/0xc8

Risk scores

CVSS 3.1
7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux40289e35ca525f29a03989352ab207b6a9675475, 40289e35ca525f29a03989352ab207b6a9675475, 40289e35ca525f29a03989352ab207b6a9675475
LinuxLinux6.11, 0, 6.12.13
linuxlinux_kernel6.11, 6.11, 6.11
LinuxLinux40289e35ca525f29a03989352ab207b6a9675475, 40289e35ca525f29a03989352ab207b6a9675475, 6.12.13

Timeline

  • Feb 27, 2025 CVE Published
  • Mar 12, 2025 Coalition ESS Score (11 in total, the first dated here)
  • Mar 14, 2025 EPSS Score (29 in total, the first dated here)
  • Dec 29, 2025 Security Advisory (361 in total, the first dated here)
  • Dec 29, 2025 CVE Updated
  • Nov 15, 2026 Distribution Patch (316 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-57985
vulnetix vdb fixes CVE-2024-57985

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-57985/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›