Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

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/

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.93, 6.6.33, 6.9.4
CVEs
CVE-2024-38390
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 09:02 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 21 Jun 2024, 10:18 UTC

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/

osv:CVE-2024-38390

Kernel

Fixed versions: 6.1.93, 6.6.33, 6.9.4

Complete source record
{
  "id": "dde922fb2e2945f0334f9f7f36c1a8ba7fc42d3ccd79a64aa3aef65053b07844",
  "url": "https://osv.dev/vulnerability/CVE-2024-38390",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "drm/msm/a6xx: Avoid a nullptr dereference when speedbin setting fails",
    "summary": "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/",
    "evidence": "osv:CVE-2024-38390",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.93",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.33",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.9.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-38390",
      "aliases": [
        "CVE-2024-38390"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "76efc2453d0e8e5d6692ef69981b183ad674edea"
                },
                {
                  "fixed": "247849eeb3fd88f8990ed73e33af70d5c10f9aec"
                },
                {
                  "fixed": "a1955a6df91355fef72a3a254700acd3cc1fec0d"
                },
                {
                  "fixed": "617e3d1680504a3f9d88e1582892c68be155498f"
                },
                {
                  "fixed": "46d4efcccc688cbacdd70a238bedca510acaa8e4"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.0.10"
                },
                {
                  "fixed": "6.1"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5fea4202b5faccfc6449381a299e8ce4b994d666"
                }
              ]
            }
          ],
          "versions": [
            "v6.0.19",
            "v6.0.18",
            "v6.0.17",
            "v6.0.16",
            "v6.0.15",
            "v6.0.14",
            "v6.0.13",
            "v6.0.12",
            "v6.0.11",
            "v6.0.10"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38390.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.1.0"
                },
                {
                  "fixed": "6.1.93"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.33"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.9.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38390.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:34.035420949Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/247849eeb3fd88f8990ed73e33af70d5c10f9aec",
        "https://git.kernel.org/stable/c/46d4efcccc688cbacdd70a238bedca510acaa8e4",
        "https://git.kernel.org/stable/c/617e3d1680504a3f9d88e1582892c68be155498f",
        "https://git.kernel.org/stable/c/a1955a6df91355fef72a3a254700acd3cc1fec0d",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38390.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-38390",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38390.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-38390",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 501252,
  "published_at": "2024-06-21T10:18:13.639+00:00"
}