{"id":"CVE-2022-50417","published":"2025-09-18T16:04:00Z","modified":"2026-08-05T08:58:42Z","title":"drm/panfrost: Fix GEM handle creation ref-counting","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/panfrost: Fix GEM handle creation ref-counting\n\npanfrost_gem_create_with_handle() previously returned a BO but with the\nonly reference being from the handle, which user space could in theory\nguess and release, causing a use-after-free. Additionally if the call to\npanfrost_gem_mapping_get() in panfrost_ioctl_create_bo() failed then\na(nother) reference on the BO was dropped.\n\nThe _create_with_handle() is a problematic pattern, so ditch it and\ninstead create the handle in panfrost_ioctl_create_bo(). If the call to\npanfrost_gem_mapping_get() fails then this means that user space has\nindeed gone behind our back and freed the handle. In which case just\nreturn an error code.","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.0017,"percentile":0.06489,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/0b70f6ea4d4f2b4d4b291d86ab76b4d07394932c","tags":[]},{"url":"https://git.kernel.org/stable/c/4f1105ee72d8c7c35d90e3491b31b2d9d6b7e33a","tags":[]},{"url":"https://git.kernel.org/stable/c/3f9feffa8a5ab08b4e298a27b1aa7204a7d42ca2","tags":[]},{"url":"https://git.kernel.org/stable/c/ba3d2c2380e7129b525a787489c0b7e819a3b898","tags":[]},{"url":"https://git.kernel.org/stable/c/4217c6ac817451d5116687f3cc6286220dc43d49","tags":[]}],"priority":{"score":6.8,"factors":[{"name":"EPSS percentile","points":1.3},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f3ba91228e8e917e5bd6c4b72bfe846933d17370, < 0b70f6ea4d4f2b4d4b291d86ab76b4d07394932c",">= f3ba91228e8e917e5bd6c4b72bfe846933d17370, < 4f1105ee72d8c7c35d90e3491b31b2d9d6b7e33a",">= f3ba91228e8e917e5bd6c4b72bfe846933d17370, < 3f9feffa8a5ab08b4e298a27b1aa7204a7d42ca2",">= f3ba91228e8e917e5bd6c4b72bfe846933d17370, < ba3d2c2380e7129b525a787489c0b7e819a3b898",">= f3ba91228e8e917e5bd6c4b72bfe846933d17370, < 4217c6ac817451d5116687f3cc6286220dc43d49"]},{"vendor":"Linux","product":"Linux","versions":["5.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-01-14T19:10:45.262200Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-29882","exploited":false,"provenance":"source"}}