7.8high
platform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: platform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors x86_android_tablet_remove() frees the pdevs[] array, so it should not be used after calling x86_android_tablet_remove(). When platform_device_register() fails, store the pdevs[x] PTR_ERR() value into the local ret variable before calling x86_android_tablet_remove() to avoid using pdevs[] after it has been freed.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 5eba0141206ea521bbcfcf5067c174e825e943dd before ba0b09a2f327319e252d8f3032019b958c0a5cd9, from 5eba0141206ea521bbcfcf5067c174e825e943dd before aac871e493fc8809e60209d9899b1af07e9dbfc8, from 5eba0141206ea521bbcfcf5067c174e825e943dd before f08adc5177bd4343df09033f62ab562c09ba7f7d, from 5eba0141206ea521bbcfcf5067c174e825e943dd before 73a98cf79e4dbfa3d0c363e826c65aae089b313c, from 5eba0141206ea521bbcfcf5067c174e825e943dd before 2fae3129c0c08e72b1fe93e61fd8fd203252094a, 5.17 Not affected: before 5.17, from 6.1.118 up to 6.1.*, from 6.6.55 up to 6.6.*, from 6.10.14 up to 6.10.*, from 6.11.3 up to 6.11.*, from 6.12 up to * | CVE List |
| debian debian_linux | 11.0 | NVD |
| linux linux_kernel | from 5.17 before 6.1.118, from 6.2 before 6.6.55, from 6.7 before 6.10.14, from 6.11 before 6.11.3, 6.12 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: platform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors x86_android_tablet_remove() frees the pdevs[] array, so it should not be used after calling x86_android_tablet_remove(). When platform_device_register() fails, store the pdevs[x] PTR_ERR() value into the local ret variable before calling x86_android_tablet_remove() to avoid using pdevs[] after it has been freed.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: platform/x86: x86-android-tablets: Se corrige el use after free en errores platform_device_register() x86_android_tablet_remove() libera la matriz pdevs[], por lo que no se debe utilizar después de llamar a x86_android_tablet_remove(). cuando falla platform_device_register(), almacena el valor PTR_ERR() de pdevs[x] en la variable ret local antes de llamar a x86_android_tablet_remove() para evitar usar pdevs[] después de que se haya liberado.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-49986 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-49986 changed 2026-08-04 | Public domain |