{"schema_version":"1.9.0","id":"CVE-2024-38629","published":"2024-06-21T10:18:20.239Z","modified":"2026-08-12T03:51:47.738903732Z","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"],"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.","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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.4.0"},{"fixed":"6.6.33"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.9.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38629.json"}}],"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"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38629.json"}}