CVE-2024-46693: soc: qcom: pmic_glink: Fix race during initialization

Published Sep 13, 2024
·
Updated

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

soc: qcom: pmicglink: Fix race during initialization

As pointed out by Stephen Boyd it is possible that during initialization of the pmicglink child drivers, the protection-domain notifiers fires, and the associated work is scheduled, before the client registration returns and as a result the local "client" pointer has been initialized.

The outcome of this is a NULL pointer dereference as the "client" pointer is blindly dereferenced.

Timeline provided by Stephen: CPU0 CPU1 ---- ---- ucsi->client = NULL; devmpmicglinkregisterclient() client->pdrnotify(client->priv, pg->clientstate) pmicglinkucsipdrnotify() schedulework(&ucsi->registerwork) <schedule away> pmicglinkucsiregister() ucsiregister() pmicglinkucsireadversion() pmicglinkucsiread() pmicglinkucsiread() pmicglinksend(ucsi->client) <client is NULL BAD> ucsi->client = client // Too late!

This code is identical across the altmode, battery manager and usci child drivers.

Resolve this by splitting the allocation of the "client" object and the registration thereof into two operations.

This only happens if the protection domain registry is populated at the time of registration, which by the introduction of commit '1ebcde047c54 ("soc: qcom: add pd-mapper implementation")' became much more likely.

Affected Software

10 affected componentsFixes available
Linux Linux kernel>=6.3<6.6.49
Linux Linux kernel>=6.7<6.10.8
Linux Linux kernel=6.11-rc1
Linux Linux kernel=6.11-rc2
Linux Linux kernel=6.11-rc3
Linux Linux kernel=6.11-rc4
Linux Linux kernel=6.11-rc5
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-1
Microsoft azl3 kernel 6.6.51.1-1
Microsoft azl3 kernel 6.6.47.1-1

Event History

Sep 13, 2024
CVE Published
via MITRE·05:29 AM
Data Sourced
via MITRE·05:29 AM
Description
Oct 15, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
SeverityAffected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Jan 13, 2025
Data Sourced
via Ubuntu·06:31 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-46693?

CVE-2024-46693 has been classified as a medium severity vulnerability.

2

How do I fix CVE-2024-46693?

To fix CVE-2024-46693, you should upgrade to the latest patched version of the Linux kernel, specifically any of the versions 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.9-1, or 6.12.10-1.

3

Which software is affected by CVE-2024-46693?

CVE-2024-46693 affects various versions of the Linux kernel ranging from 5.10.x to 6.12.x and includes specific release candidates.

4

What type of vulnerability is CVE-2024-46693?

CVE-2024-46693 is a race condition vulnerability that occurs during the initialization process in the pmic_glink driver.

5

Is CVE-2024-46693 exploitable?

Yes, CVE-2024-46693 can potentially be exploited to affect system stability and security, emphasizing the importance of timely patching.

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