{"id":"CVE-2024-38629","summary":"dmaengine: idxd: Avoid unnecessary destruction of file_ida","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: idxd: Avoid unnecessary destruction of file_ida\n\nfile_ida is allocated during cdev open and is freed accordingly\nduring cdev release. This sequence is guaranteed by driver file\noperations. Therefore, there is no need to destroy an already empty\nfile_ida when the WQ cdev is removed.\n\nWorse, ida_free() in cdev release may happen after destruction of\nfile_ida per WQ cdev. This can lead to accessing an id in file_ida\nafter it has been destroyed, resulting in a kernel panic.\n\nRemove ida_destroy(&file_ida) to address these issues.","modified":"2026-04-16T04:31:44.819025585Z","published":"2024-06-21T10:18:20.239Z","related":["SUSE-SU-2024:2571-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38629.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/15edb906211bf53e7b5574f7326ab734d6bff4f9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/76e43fa6a456787bad31b8d0daeabda27351a480"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9eb15f24a0b9b017b39cde8b8c07243676b63687"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38629.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38629"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e6fd6d7e5f0fe4a17a08e892afb5db800e7794ec"},{"fixed":"9eb15f24a0b9b017b39cde8b8c07243676b63687"},{"fixed":"15edb906211bf53e7b5574f7326ab734d6bff4f9"},{"fixed":"76e43fa6a456787bad31b8d0daeabda27351a480"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38629.json"}}],"schema_version":"1.7.5"}