{"id":"CVE-2022-50867","published":"2025-12-30T12:15:38Z","modified":"2026-08-05T08:59:53Z","title":"drm/msm/a6xx: Fix kvzalloc vs state_kcalloc usage","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm/a6xx: Fix kvzalloc vs state_kcalloc usage\n\nadreno_show_object() is a trap!  It will re-allocate the pointer it is\npassed on first call, when the data is ascii85 encoded, using kvmalloc/\nkvfree().  Which means the data *passed* to it must be kvmalloc'd, ie.\nwe cannot use the state_kcalloc() helper.\n\nThis partially reverts commit ec8f1813bf8d (\"drm/msm/a6xx: Replace\nkcalloc() with kvzalloc()\"), but adds the missing kvfree() to fix the\nmemory leak that was present previously.  And adds a warning comment.\n\nPatchwork: https://patchwork.freedesktop.org/patch/507014/","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00145,"percentile":0.03728,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/4b1bbc0571a5d7ee10f754186dc3d619b9ced5c1","tags":[]},{"url":"https://git.kernel.org/stable/c/83d18e9d9c0150d98dc24e3642ea93f5e245322c","tags":[]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":0.75},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b859f9b009bbfbc236d9b076c64c59ccb41b8737, < 4b1bbc0571a5d7ee10f754186dc3d619b9ced5c1",">= b859f9b009bbfbc236d9b076c64c59ccb41b8737, < 83d18e9d9c0150d98dc24e3642ea93f5e245322c"]},{"vendor":"Linux","product":"Linux","versions":["5.17"]}],"euvd":{"id":"EUVD-2022-55831","exploited":false,"provenance":"source"}}