drm/msm/a6xx: Avoid a nullptr dereference when speedbin setting fails (Linux Linux)

CVE-2024-38390
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: drm/msm/a6xx: Avoid a nullptr dereference when speedbin setting fails Calling a6xx_destroy() before adreno_gpu_init() leads to a null pointer dereference on: msm_gpu_cleanup() : platform_set_drvdata(gpu->pdev, NULL); as gpu->pdev is only assigned in: a6xx_gpu_init() |_ adreno_gpu_init |_ msm_gpu_init() Instead of relying on handwavy null checks down the cleanup chain, explicitly de-allocate the LLC data and free a6xx_gpu instead. Patchwork: https://patchwork.freedesktop.org/patch/588919/

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 76efc2453d0e8e5d6692ef69981b183ad674edea < 247849eeb3fd88f8990ed73e33af70d5c10f9aec ; affected 76efc2453d0e8e5d6692ef69981b183ad674edea < a1955a6df91355fef72a3a254700acd3cc1fec0d ; affected 76efc2453d0e8e5d6692ef69981b183ad674edea < 617e3d1680504a3f9d88e1582892c68be155498f ; affected 76efc2453d0e8e5d6692ef69981b183ad674edea < 46d4efcccc688cbacdd70a238bedca510acaa8e4 ; affected 5fea4202b5faccfc6449381a299e8ce4b994d666 ; affected 6.0.10 < 6.1
Linux · Linuxaffected 6.1 ; unaffected 0 < 6.1 ; unaffected 6.1.93 ≤ 6.1.* ; unaffected 6.6.33 ≤ 6.6.* ; unaffected 6.9.4 ≤ 6.9.* ; unaffected 6.10 ≤ *

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