{"id":"CVE-2024-49986","summary":"platform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors\n\nx86_android_tablet_remove() frees the pdevs[] array, so it should not\nbe used after calling x86_android_tablet_remove().\n\nWhen platform_device_register() fails, store the pdevs[x] PTR_ERR() value\ninto the local ret variable before calling x86_android_tablet_remove()\nto avoid using pdevs[] after it has been freed.","modified":"2026-04-16T04:40:18.331227853Z","published":"2024-10-21T18:02:30.507Z","related":["SUSE-SU-2024:3984-1","SUSE-SU-2024:3986-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1","USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49986.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2fae3129c0c08e72b1fe93e61fd8fd203252094a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/73a98cf79e4dbfa3d0c363e826c65aae089b313c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/aac871e493fc8809e60209d9899b1af07e9dbfc8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ba0b09a2f327319e252d8f3032019b958c0a5cd9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f08adc5177bd4343df09033f62ab562c09ba7f7d"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49986.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49986"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5eba0141206ea521bbcfcf5067c174e825e943dd"},{"fixed":"ba0b09a2f327319e252d8f3032019b958c0a5cd9"},{"fixed":"aac871e493fc8809e60209d9899b1af07e9dbfc8"},{"fixed":"f08adc5177bd4343df09033f62ab562c09ba7f7d"},{"fixed":"73a98cf79e4dbfa3d0c363e826c65aae089b313c"},{"fixed":"2fae3129c0c08e72b1fe93e61fd8fd203252094a"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49986.json"}}],"schema_version":"1.7.5"}