CVE-2022-50867

published 30 Dec 2025 · updated 5 Aug 2026

drm/msm/a6xx: Fix kvzalloc vs state_kcalloc usage

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 4b1bbc0571a5d7ee10f754186dc3d619b9ced5c1 and Kernel 83d18e9d9c0150d98dc24e3642ea93f5e245322c.

In the Linux kernel, the following vulnerability has been resolved: drm/msm/a6xx: Fix kvzalloc vs state_kcalloc usage adreno_show_object() is a trap! It will re-allocate the pointer it is passed on first call, when the data is ascii85 encoded, using kvmalloc/ kvfree(). Which means the data *passed* to it must be kvmalloc'd, ie. we cannot use the state_kcalloc() helper. This partially reverts commit ec8f1813bf8d ("drm/msm/a6xx: Replace kcalloc() with kvzalloc()"), but adds the missing kvfree() to fix the memory leak that was present previously. And adds a warning comment. Patchwork: https://patchwork.freedesktop.org/patch/507014/

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.17, >=b859f9b009bbfbc236d9b076c64c59ccb41b8737 <4b1bbc0571a5d7ee10f754186dc3d619b9ced5c1, >=b859f9b009bbfbc236d9b076c64c59ccb41b8737 <83d18e9d9c0150d98dc24e3642ea93f5e245322c4b1bbc0571a5d7ee10f754186dc3d619b9ced5c1, 83d18e9d9c0150d98dc24e3642ea93f5e245322c

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50867 severity on Zeptric[![CVE-2022-50867](https://zeptric.io/badge/cve/CVE-2022-50867.svg)](https://zeptric.io/cve/CVE-2022-50867)