CVE-2022-50867
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
30/12/2025
Last modified:
30/12/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
drm/msm/a6xx: Fix kvzalloc vs state_kcalloc usage<br />
<br />
adreno_show_object() is a trap! It will re-allocate the pointer it is<br />
passed on first call, when the data is ascii85 encoded, using kvmalloc/<br />
kvfree(). Which means the data *passed* to it must be kvmalloc&#39;d, ie.<br />
we cannot use the state_kcalloc() helper.<br />
<br />
This partially reverts commit ec8f1813bf8d ("drm/msm/a6xx: Replace<br />
kcalloc() with kvzalloc()"), but adds the missing kvfree() to fix the<br />
memory leak that was present previously. And adds a warning comment.<br />
<br />
Patchwork: https://patchwork.freedesktop.org/patch/507014/



