Local kernel memory corruption via GEM handle race
Published Sep 18, 2025 · Updated Sep 18, 2025
Use-after-free in the Linux kernel Panfrost driver allows local users to corrupt kernel memory via a GEM-handle race. The panfrost_gem_create_with_handle() path returns a buffer object whose sole reference belongs to a predictable handle, then dereferences it during mapping after another thread can close that handle. A user with Panfrost DRM ioctl access must win the close race; the resulting stale buffer-object dereference can compromise the kernel.
Summary
What happened
Use-after-free in the Linux kernel Panfrost driver allows local users to corrupt kernel memory via a GEM-handle race. The panfrost_gem_create_with_handle() path returns a buffer object whose sole reference belongs to a predictable handle, then dereferences it during mapping after another thread can close that handle. A user with Panfrost DRM ioctl access must win the close race; the resulting stale buffer-object dereference can compromise the kernel.
The record
- CVE
- CVE-2022-50417
- Published
- Sep 18, 2025
- Updated
- Sep 18, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Sep 18, 2025CVE publishedPublication date reported by the CVE source.
- Sep 18, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.2
- Affected versionversion=f3ba91228e8e917e5bd6c4b72bfe846933d17370 <0b70f6ea4d4f2b4d4b291d86ab76b4d07394932c
- Affected versionversion=f3ba91228e8e917e5bd6c4b72bfe846933d17370 <3f9feffa8a5ab08b4e298a27b1aa7204a7d42ca2
- Affected versionversion=f3ba91228e8e917e5bd6c4b72bfe846933d17370 <4217c6ac817451d5116687f3cc6286220dc43d49
- Affected versionversion=f3ba91228e8e917e5bd6c4b72bfe846933d17370 <4f1105ee72d8c7c35d90e3491b31b2d9d6b7e33a
- Affected versionversion=f3ba91228e8e917e5bd6c4b72bfe846933d17370 <ba3d2c2380e7129b525a787489c0b7e819a3b898
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo