CVE-2022-50417: drm/panfrost: Fix GEM handle creation ref-counting
Vulnerability summary
CVE-2022-50417 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.16% chance of exploitation in the next 30 days, higher than 5.5% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 4Timeline
- 18-09-2025PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: drm/panfrost: Fix GEM handle creation ref-counting panfrost_gem_create_with_handle() previously returned a BO but with the only reference being from the handle, which user space could in theory guess and release, causing a use-after-free. Additionally if the call to panfrost_gem_mapping_get() in panfrost_ioctl_create_bo() failed then a(nother) reference on the BO was dropped. The _create_with_handle() is a problematic pattern, so ditch it and instead create the handle in panfrost_ioctl_create_bo(). If the call to panfrost_gem_mapping_get() fails then this means that user space has indeed gone behind our back and freed the handle. In which case just return an error code.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.16%
Chance of exploitation in the next 30 days
Percentile
6%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.16% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu116 products
- linuxAll versions (No fix recorded) | < 5.15.0-69.76
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.15.0-1033.37
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ f3ba91228e8e917e5bd6c4b72bfe846933d17370, < 0b70f6ea4d4f2b4d4b291d86ab76b4d07394932c | ≥ f3ba91228e8e917e5bd6c4b72bfe846933d17370, < 4f1105ee72d8c7c35d90e3491b31b2d9d6b7e33a | ≥ f3ba91228e8e917e5bd6c4b72bfe846933d17370, < 3f9feffa8a5ab08b4e298a27b1aa7204a7d42ca2 | ≥ f3ba91228e8e917e5bd6c4b72bfe846933d17370, < ba3d2c2380e7129b525a787489c0b7e819a3b898 | ≥ f3ba91228e8e917e5bd6c4b72bfe846933d17370, < 4217c6ac817451d5116687f3cc6286220dc43d49 | 5.2
- linux_kernel≥ 5.2, < 5.10.163 | ≥ 5.11, < 5.15.87 | ≥ 5.16, < 6.0.19 | ≥ 6.1, < 6.1.5 | 6.2:rc1 | 6.2:rc2
Debian1 product
- linux< 6.1.7-1
3 vendors · 119 products