CVE-2022-50867 Details
Description
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/
A vulnerability has been identified in the Linux kernel's DRM MSM A6XX graphics driver, specifically related to memory management. The issue arises in the 'adreno_show_object()' function, which reallocates the pointer it receives on the first call when the data is ASCII85 encoded, using 'kvmalloc' and 'kvfree()'. This behavior requires that the data passed to the function be allocated with 'kvmalloc', prohibiting the use of the 'state_kcalloc()' helper. The vulnerability was introduced by a previous commit that replaced 'kcalloc()' with 'kvzalloc()', without properly addressing the memory deallocation, leading to a memory leak. The issue has been acknowledged and a patch has been applied to restore the correct memory management practices.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/4b1bbc0571a5d7ee10f754186dc3d619b9ced5c1 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/83d18e9d9c0150d98dc24e3642ea93f5e245322c | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 30, 2025 | CVE Modified | kernel.org |
| Dec 30, 2025 | New CVE Received | kernel.org |
Volerion