# CVE-2022-50354: drm/amdkfd: Fix kfd_process_device_init_vm error handling

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-09-17T14:56:07.596Z
- Modified: 2026-08-05T08:58:20.719Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from 68df0f195a689bbb0f92bfeadee6edd90c79c31f before b6e78bd3bf2eb964c95eb2596d3cd367307a20b5; from 68df0f195a689bbb0f92bfeadee6edd90c79c31f before 9d74d1f52e16d8e07f7fbe52e96d6391418a2fe9; from 68df0f195a689bbb0f92bfeadee6edd90c79c31f before 29d48b87db64b6697ddad007548e51d032081c59; 5.16 (not affected: before 5.16; from 6.0.19 up to 6.0.*; from 6.1.5 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 5.16 before 6.0.19; from 6.1 before 6.1.5

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/b6e78bd3bf2eb964c95eb2596d3cd367307a20b5> (patch)
- <https://git.kernel.org/stable/c/9d74d1f52e16d8e07f7fbe52e96d6391418a2fe9> (patch)
- <https://git.kernel.org/stable/c/29d48b87db64b6697ddad007548e51d032081c59> (patch)

## Sources

- CVE List: [CVE-2022-50354](https://www.cve.org/CVERecord?id=CVE-2022-50354), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-50354](https://nvd.nist.gov/vuln/detail/CVE-2022-50354), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-50354 · Whole record: https://cve.day/CVE-2022-50354.json · Rebuilt by cve.day 2026-11-25T22:58:21.177Z
