# CVE-2025-21940: drm/amdkfd: Fix NULL Pointer Dereference in KFD queue

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-04-01T15:41:05.977Z
- Modified: 2026-06-17T08:44:39.870Z
- 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 NULL Pointer Dereference in KFD queue

Through KFD IOCTL Fuzzing we encountered a NULL pointer derefrence
when calling kfd_queue_acquire_buffers.

(cherry picked from commit 049e5bf3c8406f87c3d8e1958e0a16804fa1d530)

(As written by CVE List.)

## Affected

- Linux Linux: from 629568d25fea8ece4f65073f039aeef4e240ab67 before c3cbeafb4e0001d9146df50b470885e02664f3c7; from 629568d25fea8ece4f65073f039aeef4e240ab67 before 33eb8041c5d6c19d46e7bfd23a031844336afd80; from 629568d25fea8ece4f65073f039aeef4e240ab67 before fd617ea3b79d2116d53f76cdb5a3601c0ba6e42f; 6.12 (not affected: before 6.12; from 6.12.19 up to 6.12.*; from 6.13.7 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.12 before 6.12.19; from 6.13 before 6.13.7; 6.14

## Every score

- 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/c3cbeafb4e0001d9146df50b470885e02664f3c7> (patch)
- <https://git.kernel.org/stable/c/33eb8041c5d6c19d46e7bfd23a031844336afd80> (patch)
- <https://git.kernel.org/stable/c/fd617ea3b79d2116d53f76cdb5a3601c0ba6e42f> (patch)

## Sources

- CVE List: [CVE-2025-21940](https://www.cve.org/CVERecord?id=CVE-2025-21940), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-21940](https://nvd.nist.gov/vuln/detail/CVE-2025-21940), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21940 · Whole record: https://cve.day/CVE-2025-21940.json · Rebuilt by cve.day 2026-11-25T22:58:55.897Z
