CVE-2022-50354 drm/amdkfd: Fix kfd_process_device_init_vm error handling
A null pointer dereference in the Linux kernel's AMD KFD driver can cause a system crash during process cleanup.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50354?
CVE-2022-50354 is a high-severity vulnerability in Linux kernel, published on 17 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: Fix kfd_process_device_init_vm error handling
Should only destroy the ib_mem and let process cleanup worker to free the outstanding BOs. Reset the pointer in pdd->qpd structure, to avoid NULL pointer access in process destroy worker.
BUG: kernel NULL pointer dereference, address: 0000000000000010 Call Trace: amdgpu_amdkfd_gpuvm_unmap_gtt_bo_from_kernel+0x46/0xb0 [amdgpu] kfd_process_device_destroy_cwsr_dgpu+0x40/0x70 [amdgpu] kfd_process_destroy_pdds+0x71/0x190 [amdgpu] kfd_process_wq_release+0x2a2/0x3b0 [amdgpu] process_one_work+0x2a1/0x600 worker_thread+0x39/0x3d0
Weakness: CWE-476
Which versions are affected by CVE-2022-50354?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-50354?
Apply the vendor's patch.
Is CVE-2022-50354 being exploited?
There is no known exploitation of CVE-2022-50354 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-50354, GHSA-5q8v-g9hq-mvpx, ROOT-OS-UBUNTU-2204-CVE-2022-50354, UBUNTU-CVE-2022-50354.