{"id":"CVE-2022-50417","aliases":["CVE-2022-50417"],"related":[],"kind":"vulnerability","state":"published","title":"drm/panfrost: Fix GEM handle creation ref-counting","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2025-09-18T16:04:00.512Z","modified":"2026-08-05T08:58:42.522Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"f3ba91228e8e917e5bd6c4b72bfe846933d17370","fixed":"0b70f6ea4d4f2b4d4b291d86ab76b4d07394932c","status":"affected"},{"type":"git","introduced":"f3ba91228e8e917e5bd6c4b72bfe846933d17370","fixed":"4f1105ee72d8c7c35d90e3491b31b2d9d6b7e33a","status":"affected"},{"type":"git","introduced":"f3ba91228e8e917e5bd6c4b72bfe846933d17370","fixed":"3f9feffa8a5ab08b4e298a27b1aa7204a7d42ca2","status":"affected"},{"type":"git","introduced":"f3ba91228e8e917e5bd6c4b72bfe846933d17370","fixed":"ba3d2c2380e7129b525a787489c0b7e819a3b898","status":"affected"},{"type":"git","introduced":"f3ba91228e8e917e5bd6c4b72bfe846933d17370","fixed":"4217c6ac817451d5116687f3cc6286220dc43d49","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.2","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.87","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.19","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.5","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.2","fixed":"5.10.163"},{"status":"affected","introduced":"5.11","fixed":"5.15.87"},{"status":"affected","introduced":"5.16","fixed":"6.0.19"},{"status":"affected","introduced":"6.1","fixed":"6.1.5"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0b70f6ea4d4f2b4d4b291d86ab76b4d07394932c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4f1105ee72d8c7c35d90e3491b31b2d9d6b7e33a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3f9feffa8a5ab08b4e298a27b1aa7204a7d42ca2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba3d2c2380e7129b525a787489c0b7e819a3b898","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4217c6ac817451d5116687f3cc6286220dc43d49","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-01-14T19:10:45.262Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50417","url":"https://www.cve.org/CVERecord?id=CVE-2022-50417","licence":"CVE Terms of Use","modified":"2026-08-05T08:58:42.522Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50417","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50417","licence":"Public domain","modified":"2026-06-17T05:23:30.363Z"}],"updatedAt":"2026-11-25T22:58:21.209Z","epss":{"score":0.0017,"percentile":0.06612,"date":"2026-12-01T12:00:22.000Z"}}