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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **Published:** 2024-07-12T12:32:12.099Z
- **Modified:** 2026-10-30T13:17:29.910Z

## Who should check

- Anyone running Linux \>= 55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7, \< f3f8517f9839f8731e2eeccdc52fc1e84ee4a98a; \>= 55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7, \< 36ff963c133a25ed1166a25c3ba8b357ea010fda; \>= 55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7, \< f0c982853d665597d17e4995ff479fbbf79a9cf6; \>= 55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7, \< 3de0f2627ef849735f155c1818247f58404dddfe
- Anyone running Linux 5.17

## Description

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 regulator\_unregister
 Hardware name: Intel Corp. VALLEYVIEW C0 PLATFORM/BYT-T FFD8, BIOS BLADE\_21.X64.0005.R00.1504101516 FFD8\_X64\_R\_2015\_04\_10\_1516 04/10/2015
 RIP: 0010:regulator\_unregister
 Call Trace:
  \<TASK\>
  regulator\_unregister
  devres\_release\_group
  i2c\_device\_remove
  device\_release\_driver\_internal
  bus\_remove\_device
  device\_del
  device\_unregister
  x86\_android\_tablet\_remove

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 platform\_device and x86\_android\_tablet\_remove() removes platform\_device-s
before i2c\_clients 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
x86\_android\_tablet\_remove() to unregister all device types in reverse
order.

## Affected and fixed versions

- Linux: \>= 55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7, \< f3f8517f9839f8731e2eeccdc52fc1e84ee4a98a; \>= 55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7, \< 36ff963c133a25ed1166a25c3ba8b357ea010fda; \>= 55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7, \< f0c982853d665597d17e4995ff479fbbf79a9cf6; \>= 55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7, \< 3de0f2627ef849735f155c1818247f58404dddfe (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 3de0f2627ef849735f155c1818247f58404dddfe or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-40975. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-40975.md
Affected: Linux >= 55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7, < f3f8517f9839f8731e2eeccdc52fc1e84ee4a98a; >= 55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7, < 36ff963c133a25ed1166a25c3ba8b357ea010fda; >= 55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7, < f0c982853d665597d17e4995ff479fbbf79a9cf6; >= 55fa3c9665bfcf32b21af8e…
Fixed in: Linux 36ff963c133a25ed1166a25c3ba8b357ea010fda, Linux 3de0f2627ef849735f155c1818247f58404dddfe

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-40975 being exploited?

There is no confirmed exploitation: CVE-2024-40975 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-40975?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-40975?

Linux \>= 55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7, \< f3f8517f9839f8731e2eeccdc52fc1e84ee4a98a; \>= 55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7, \< 36ff963c133a25ed1166a25c3ba8b357ea010fda; \>= 55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7, \< f0c982853d665597d17e4995ff479fbbf79a9cf6; \>= 55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7, \< 3de0f2627ef849735f155c1818247f58404dddfe; Linux 5.17.

### Is there a fix for CVE-2024-40975?

Yes. Fixed in Linux 36ff963c133a25ed1166a25c3ba8b357ea010fda, Linux 3de0f2627ef849735f155c1818247f58404dddfe. Upgrade Linux to 3de0f2627ef849735f155c1818247f58404dddfe or later.

### How do I check if I'm affected by CVE-2024-40975?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/36ff963c133a25ed1166a25c3ba8b357ea010fda>
- patch: <https://git.kernel.org/stable/c/f0c982853d665597d17e4995ff479fbbf79a9cf6>
- patch: <https://git.kernel.org/stable/c/3de0f2627ef849735f155c1818247f58404dddfe>
- other: <https://git.kernel.org/stable/c/f3f8517f9839f8731e2eeccdc52fc1e84ee4a98a>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-40975>

HTML: <https://flawdb.com/CVE-2024-40975> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-40975>
