# CVE-2024-38629: dmaengine: idxd: Avoid unnecessary destruction of file_ida

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-06-21T10:18:20.239Z
- Modified: 2026-06-17T07:40:45.453Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

dmaengine: idxd: Avoid unnecessary destruction of file_ida

file_ida is allocated during cdev open and is freed accordingly
during cdev release. This sequence is guaranteed by driver file
operations. Therefore, there is no need to destroy an already empty
file_ida when the WQ cdev is removed.

Worse, ida_free() in cdev release may happen after destruction of
file_ida per WQ cdev. This can lead to accessing an id in file_ida
after it has been destroyed, resulting in a kernel panic.

Remove ida_destroy(&file_ida) to address these issues.

(As written by CVE List.)

## Affected

- Linux Linux: from e6fd6d7e5f0fe4a17a08e892afb5db800e7794ec before 9eb15f24a0b9b017b39cde8b8c07243676b63687; from e6fd6d7e5f0fe4a17a08e892afb5db800e7794ec before 15edb906211bf53e7b5574f7326ab734d6bff4f9; from e6fd6d7e5f0fe4a17a08e892afb5db800e7794ec before 76e43fa6a456787bad31b8d0daeabda27351a480; 6.4 (not affected: before 6.4; from 6.6.33 up to 6.6.*; from 6.9.4 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.4 before 6.6.33; from 6.7 before 6.9.4

## References

- <https://git.kernel.org/stable/c/9eb15f24a0b9b017b39cde8b8c07243676b63687> (patch)
- <https://git.kernel.org/stable/c/15edb906211bf53e7b5574f7326ab734d6bff4f9> (patch)
- <https://git.kernel.org/stable/c/76e43fa6a456787bad31b8d0daeabda27351a480> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-38629 · Whole record: https://cve.day/CVE-2024-38629.json · Rebuilt by cve.day 2026-11-25T22:58:42.117Z
