{"id":"CVE-2025-37907","state":"PUBLISHED","title":"accel/ivpu: Fix locking order in ivpu_job_submit","description":"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->submitted_jobs_lock) #1\n  ivpu_jobs_abort_all()\n  job_destroy()\n                                      lock(&file_priv->lock)           #2\n                                      lock(&vdev->submitted_jobs_lock) #1\n  file_priv_release()\n  lock(&vdev->context_list_lock)\n  lock(&file_priv->lock)           #2\n\nThis order of locking causes a deadlock. To resolve this issue,\nchange the order of locking in ivpu_job_submit().","publishedAt":"2025-05-20T15:21:40.482Z","updatedAt":"2026-05-11T21:17:24.947Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"35b137630f08d913fc2e33df33ccc2570dff3f7d","status":"affected","lessThan":"079d2622f8c9e0c380149645fff21d35c59ce6ff","versionType":"git"},{"version":"35b137630f08d913fc2e33df33ccc2570dff3f7d","status":"affected","lessThan":"b9b70924a272c2d72023306bc56f521c056212ee","versionType":"git"},{"version":"35b137630f08d913fc2e33df33ccc2570dff3f7d","status":"affected","lessThan":"ab680dc6c78aa035e944ecc8c48a1caab9f39924","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/ivpu/ivpu_job.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.3","versionType":"semver"},{"version":"6.12.28","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.6","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/ivpu/ivpu_job.c"]}],"references":["https://git.kernel.org/stable/c/079d2622f8c9e0c380149645fff21d35c59ce6ff","https://git.kernel.org/stable/c/b9b70924a272c2d72023306bc56f521c056212ee","https://git.kernel.org/stable/c/ab680dc6c78aa035e944ecc8c48a1caab9f39924"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:03.054Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/37xxx/CVE-2025-37907.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-37907","state":"PUBLISHED","datePublished":"2025-05-20T15:21:40.482Z","dateUpdated":"2026-05-11T21:17:24.947Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:23.966Z"},"containers":{"cna":{"title":"accel/ivpu: Fix locking order in ivpu_job_submit","descriptions":[{"lang":"en","value":"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->submitted_jobs_lock) #1\n  ivpu_jobs_abort_all()\n  job_destroy()\n                                      lock(&file_priv->lock)           #2\n                                      lock(&vdev->submitted_jobs_lock) #1\n  file_priv_release()\n  lock(&vdev->context_list_lock)\n  lock(&file_priv->lock)           #2\n\nThis order of locking causes a deadlock. To resolve this issue,\nchange the order of locking in ivpu_job_submit()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"35b137630f08d913fc2e33df33ccc2570dff3f7d","status":"affected","lessThan":"079d2622f8c9e0c380149645fff21d35c59ce6ff","versionType":"git"},{"version":"35b137630f08d913fc2e33df33ccc2570dff3f7d","status":"affected","lessThan":"b9b70924a272c2d72023306bc56f521c056212ee","versionType":"git"},{"version":"35b137630f08d913fc2e33df33ccc2570dff3f7d","status":"affected","lessThan":"ab680dc6c78aa035e944ecc8c48a1caab9f39924","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/ivpu/ivpu_job.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.3","versionType":"semver"},{"version":"6.12.28","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.6","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/ivpu/ivpu_job.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/079d2622f8c9e0c380149645fff21d35c59ce6ff"},{"url":"https://git.kernel.org/stable/c/b9b70924a272c2d72023306bc56f521c056212ee"},{"url":"https://git.kernel.org/stable/c/ab680dc6c78aa035e944ecc8c48a1caab9f39924"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:17:24.947Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.12.28"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.14.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.15"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}