Lucene search

K
cvelistLinuxCVELIST:CVE-2024-38390
HistoryJun 21, 2024 - 10:18 a.m.

CVE-2024-38390 drm/msm/a6xx: Avoid a nullptr dereference when speedbin setting fails

2024-06-2110:18:13
Linux
www.cve.org
1
linux kernel
vulnerability
drm
msm
a6xx
speedbin setting
null pointer
dereference
adreno_gpu_init
msm_gpu_init
handwavy null checks
llc data
patchwork.

0.0004 Low

EPSS

Percentile

15.7%

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/

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/gpu/drm/msm/adreno/a6xx_gpu.c"
    ],
    "versions": [
      {
        "version": "76efc2453d0e",
        "lessThan": "247849eeb3fd",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "76efc2453d0e",
        "lessThan": "a1955a6df913",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "76efc2453d0e",
        "lessThan": "617e3d168050",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "76efc2453d0e",
        "lessThan": "46d4efcccc68",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/gpu/drm/msm/adreno/a6xx_gpu.c"
    ],
    "versions": [
      {
        "version": "6.1",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.1",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.93",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.33",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.4",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10-rc1",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

0.0004 Low

EPSS

Percentile

15.7%

Related for CVELIST:CVE-2024-38390