7.8high
dmaengine: idxd: Avoid unnecessary destruction of file_ida
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.23% (higher than 14% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| linux linux_kernel | from 6.4 before 6.6.33, from 6.7 before 6.9.4 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: dmaengine: idxd: evita la destrucción innecesaria de file_ida file_ida se asigna durante la apertura de cdev y se libera en consecuencia durante el lanzamiento de cdev. Esta secuencia está garantizada por las operaciones del archivo del controlador. Por lo tanto, no es necesario destruir un file_ida que ya está vacío cuando se elimina WQ cdev. Peor aún, ida_free() en la versión cdev puede ocurrir después de la destrucción de file_ida según WQ cdev. Esto puede llevar a acceder a una identificación en file_ida después de haber sido destruida, lo que resulta en un pánico en el kernel. Elimine ida_destroy(&file_ida) para solucionar estos problemas.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-38629 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-38629 changed 2026-06-17 | Public domain |