CVE-2024-40975: platform/x86: x86-android-tablets: Unregister devices in reverse order

Published Jul 12, 2024
·
Updated

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

platform/x86: x86-android-tablets: Unregister devices in reverse order

Not all subsystems support a device getting removed while there are still consumers of the device with a reference to the device.

One example of this is the regulator subsystem. If a regulator gets unregistered while there are still drivers holding a reference a WARN() at drivers/regulator/core.c:5829 triggers, e.g.:

WARNING: CPU: 1 PID: 1587 at drivers/regulator/core.c:5829 regulatorunregister Hardware name: Intel Corp. VALLEYVIEW C0 PLATFORM/BYT-T FFD8, BIOS BLADE21.X64.0005.R00.1504101516 FFD8X64R201504101516 04/10/2015 RIP: 0010:regulatorunregister Call Trace: <TASK> regulatorunregister devresreleasegroup i2cdeviceremove devicereleasedriverinternal busremovedevice devicedel deviceunregister x86androidtabletremove

On the Lenovo Yoga Tablet 2 series the bq24190 charger chip also provides a 5V boost converter output for powering USB devices connected to the micro USB port, the bq24190-charger driver exports this as a Vbus regulator.

On the 830 (8") and 1050 ("10") models this regulator is controlled by a platformdevice and x86androidtabletremove() removes platformdevice-s before i2cclients so the consumer gets removed first.

But on the 1380 (13") model there is a lc824206xa micro-USB switch connected over I2C and the extcon driver for that controls the regulator. The bq24190 i2c-client must be registered first, because that creates the regulator with the lc824206xa listed as its consumer. If the regulator has not been registered yet the lc824206xa driver will end up getting a dummy regulator.

Since in this case both the regulator provider and consumer are I2C devices, the only way to ensure that the consumer is unregistered first is to unregister the I2C devices in reverse order of in which they were created.

For consistency and to avoid similar problems in the future change x86androidtabletremove() to unregister all device types in reverse order.

Affected Software

3 affected componentsFixes available
debian/linux<=5.10.223-1, <=5.10.234-1, <=6.1.129-1, <=6.1.135-1
6.12.25-1
Linux Linux kernel>=5.17<6.6.64
Linux Linux kernel>=6.7<6.9.7

Event History

Jul 12, 2024
CVE Published
via MITRE·12:32 PM
Data Sourced
via MITRE·12:32 PM
Description
Data Sourced
via NVD·01:15 PM
Description
Data Sourced
via NVD·01:15 PM
RemedySeverityAffected Software
May 5, 2025
Data Sourced
via Ubuntu·06:17 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-40975?

CVE-2024-40975 is classified as a moderate severity vulnerability affecting the Linux kernel.

2

How do I fix CVE-2024-40975?

To fix CVE-2024-40975, update the Linux kernel to version 6.12.11-1 or 6.12.12-1 if you are using Debian.

3

Which versions of the Linux kernel are affected by CVE-2024-40975?

CVE-2024-40975 affects Linux kernel versions up to and including 5.10.226-1 and 6.1.123-1.

4

What type of vulnerability is CVE-2024-40975?

CVE-2024-40975 is a vulnerability related to the improper management of device unregistration in the Linux kernel.

5

Is CVE-2024-40975 applicable to Android devices?

Yes, CVE-2024-40975 specifically affects the x86 Android tablets running the Linux 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