platform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors (Linux Linux)

CVE-2024-49986
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.25 % · percentile 16 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 5eba0141206ea521bbcfcf5067c174e825e943dd < ba0b09a2f327319e252d8f3032019b958c0a5cd9 ; affected 5eba0141206ea521bbcfcf5067c174e825e943dd < aac871e493fc8809e60209d9899b1af07e9dbfc8 ; affected 5eba0141206ea521bbcfcf5067c174e825e943dd < f08adc5177bd4343df09033f62ab562c09ba7f7d ; affected 5eba0141206ea521bbcfcf5067c174e825e943dd < 73a98cf79e4dbfa3d0c363e826c65aae089b313c ; affected 5eba0141206ea521bbcfcf5067c174e825e943dd < 2fae3129c0c08e72b1fe93e61fd8fd203252094a
Linux · Linuxaffected 5.17 ; unaffected 0 < 5.17 ; unaffected 6.1.118 ≤ 6.1.* ; unaffected 6.6.55 ≤ 6.6.* ; unaffected 6.10.14 ≤ 6.10.* ; unaffected 6.11.3 ≤ 6.11.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD