{"id":"CVE-2025-37907","summary":"accel/ivpu: Fix locking order in ivpu_job_submit","details":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/ivpu: Fix locking order in ivpu_job_submit\n\nFix deadlock in job submission and abort handling.\nWhen a thread aborts currently executing jobs due to a fault,\nit first locks the global lock protecting submitted_jobs (#1).\n\nAfter the last job is destroyed, it proceeds to release the related context\nand locks file_priv (#2). Meanwhile, in the job submission thread,\nthe file_priv lock (#2) is taken first, and then the submitted_jobs\nlock (#1) is obtained when a job is added to the submitted jobs list.\n\n       CPU0                            CPU1\n       ----                    \t       ----\n  (for example due to a fault)         (jobs submissions keep coming)\n\n  lock(&vdev-\u003esubmitted_jobs_lock) #1\n  ivpu_jobs_abort_all()\n  job_destroy()\n                                      lock(&file_priv-\u003elock)           #2\n                                      lock(&vdev-\u003esubmitted_jobs_lock) #1\n  file_priv_release()\n  lock(&vdev-\u003econtext_list_lock)\n  lock(&file_priv-\u003elock)           #2\n\nThis order of locking causes a deadlock. To resolve this issue,\nchange the order of locking in ivpu_job_submit().","modified":"2026-05-18T05:56:17.829257398Z","published":"2025-05-20T15:21:40.482Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37907.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/079d2622f8c9e0c380149645fff21d35c59ce6ff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ab680dc6c78aa035e944ecc8c48a1caab9f39924"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b9b70924a272c2d72023306bc56f521c056212ee"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37907.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37907"},{"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":"35b137630f08d913fc2e33df33ccc2570dff3f7d"},{"fixed":"079d2622f8c9e0c380149645fff21d35c59ce6ff"},{"fixed":"b9b70924a272c2d72023306bc56f521c056212ee"},{"fixed":"ab680dc6c78aa035e944ecc8c48a1caab9f39924"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37907.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.3.0"},{"fixed":"6.12.28"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.14.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37907.json"}}],"schema_version":"1.7.5"}