CVE-2024-57985: firmware: qcom: scm: Cleanup global '__scm' on probe failures

Published Feb 27, 2025
·
Updated

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 (scmsmccall()) rely on the 'scm' variable.

This fixes theoretical NULL pointer exception, triggered via introducing probe deferral in SCM driver with call trace:

qcomtzmemalloc+0x70/0x1ac (P) qcomtzmemalloc+0x64/0x1ac (L) qcomscmassignmem+0x78/0x194 qcomrmtfsmemprobe+0x2d4/0x38c platformprobe+0x68/0xc8

Affected Software

6 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=6.11<6.12.13
Linux Linux kernel>=6.13<6.13.2
debian/linux<6.12.13-1
6.12.13-1
debian/linux<6.12.13-1
6.12.13-1
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.13-1
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1

Event History

Feb 27, 2025
CVE Published
via MITRE·02:07 AM
Data Sourced
via MITRE·02:07 AM
DescriptionSeverity
Data Sourced
via NVD·02:15 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·02:15 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-57985?

CVE-2024-57985 has been assigned a severity level that reflects its impact on the functionality of the Linux kernel.

2

How do I fix CVE-2024-57985?

To fix CVE-2024-57985, you should update the Linux kernel to version 6.12.13 or later.

3

What versions of the Linux kernel are affected by CVE-2024-57985?

CVE-2024-57985 affects Linux kernel versions between 6.11 and 6.13.2.

4

What is the nature of the vulnerability in CVE-2024-57985?

CVE-2024-57985 involves a probe failure in the SCM driver that improperly retains a global variable.

5

Is CVE-2024-57985 a remote exploit?

CVE-2024-57985 is not classified as a remote exploit; it relates to local probe failures in the kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203