platform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's x86-android-tablets code can access a freed array when platform_device_register() fails during error handling. The input does not specify how an attacker could trigger this failure or exploit the use-after-free, or whether access or user interaction is required.
Engineers running Linux kernels with the x86-android-tablets code should check their versions; affected versions are not specified.