CVE-2024-49986
JSON

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 packageVersionsReported by
Linux Linuxfrom 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_linux11.0NVD
linux linux_kernelfrom 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.12NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

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

SourceRecordLicence
CVE ListCVE-2024-49986 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-49986 changed 2026-08-04Public domain