{"api_version":"1","generated_at":"2026-11-30T15:21:43+00:00","cve":"CVE-2026-139675","urls":{"html":"https://cve.report/CVE-2026-139675","api":"https://cve.report/api/cve/CVE-2026-139675.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139675","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139675"},"summary":{"title":"drm/amdgpu: reserve eviction-fence slot at WPTR caller","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: reserve eviction-fence slot at WPTR caller\n\nRoot cause analysis showed that the previous workaround was fixing the\nsymptom in the wrong layer.\n\nProblem:\n  kernel BUG at drivers/dma-buf/dma-resv.c:319!\n  BUG_ON(fobj->num_fences >= fobj->max_fences)\n  Workqueue: events amdgpu_userq_restore_worker\n\n- amdgpu_evf_mgr_attach_fence() had been temporarily taught to reserve/add\n  fence bookkeeping internally as a workaround.\n- This hid the real contract violation and made reservation policy implicit\n  inside a helper.\n\nReview clarification:\n- The helper-side dma_resv_add_fence-related workaround was only an intended\n  proposal sent for review discussion, not the final direction.\n- Final fix keeps fence-slot reservation explicit in callers and leaves the\n  helper free of policy decisions.\n\nFindings from investigation:\n- drm_exec_prepare_obj() both locks and reserves fence slots.\n- drm_exec_lock_obj() only locks and does not reserve slots.\n- Existing attach_fence callers in the GEM/userq restore flows already reserve\n  TTM_NUM_MOVE_FENCES + 1 before adding the bookkeeping eviction fence.\n- The WPTR mapping path in mes_userq_create_wptr_mapping() used\n  drm_exec_lock_obj() and then called amdgpu_evf_mgr_attach_fence(), so this\n  specific path could add a fence without pre-reserved space.\n\nFix:\n- Switch the WPTR mapping path to drm_exec_prepare_obj(...,\n  TTM_NUM_MOVE_FENCES + 1), restoring the caller-side reservation contract.\n- Remove the helper-side reservation workaround from\n  amdgpu_evf_mgr_attach_fence().\n\nWhy this is the right layer:\n- Reservation policy stays explicit at call sites that define how many fences\n  may be added in that execution context.\n- The helper only performs validate + add_fence when called with a properly\n  prepared reservation object, matching the existing drm_exec model.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:55","updated_at":"2026-11-30 14:19:55"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a","name":"https://git.kernel.org/stable/c/5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6caf097214b892ef6e033c4a2795297a9633c338","name":"https://git.kernel.org/stable/c/6caf097214b892ef6e033c4a2795297a9633c338","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139675","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139675","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7264bc10c7c657a54603c7fc058bf8e15f18ce12 6caf097214b892ef6e033c4a2795297a9633c338 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7264bc10c7c657a54603c7fc058bf8e15f18ce12 5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.3","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/gpu/drm/amd/amdgpu/mes_userqueue.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"6caf097214b892ef6e033c4a2795297a9633c338","status":"affected","version":"7264bc10c7c657a54603c7fc058bf8e15f18ce12","versionType":"git"},{"lessThan":"5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a","status":"affected","version":"7264bc10c7c657a54603c7fc058bf8e15f18ce12","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/gpu/drm/amd/amdgpu/mes_userqueue.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.3"},{"lessThan":"7.3","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"7.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.3","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: reserve eviction-fence slot at WPTR caller\n\nRoot cause analysis showed that the previous workaround was fixing the\nsymptom in the wrong layer.\n\nProblem:\n  kernel BUG at drivers/dma-buf/dma-resv.c:319!\n  BUG_ON(fobj->num_fences >= fobj->max_fences)\n  Workqueue: events amdgpu_userq_restore_worker\n\n- amdgpu_evf_mgr_attach_fence() had been temporarily taught to reserve/add\n  fence bookkeeping internally as a workaround.\n- This hid the real contract violation and made reservation policy implicit\n  inside a helper.\n\nReview clarification:\n- The helper-side dma_resv_add_fence-related workaround was only an intended\n  proposal sent for review discussion, not the final direction.\n- Final fix keeps fence-slot reservation explicit in callers and leaves the\n  helper free of policy decisions.\n\nFindings from investigation:\n- drm_exec_prepare_obj() both locks and reserves fence slots.\n- drm_exec_lock_obj() only locks and does not reserve slots.\n- Existing attach_fence callers in the GEM/userq restore flows already reserve\n  TTM_NUM_MOVE_FENCES + 1 before adding the bookkeeping eviction fence.\n- The WPTR mapping path in mes_userq_create_wptr_mapping() used\n  drm_exec_lock_obj() and then called amdgpu_evf_mgr_attach_fence(), so this\n  specific path could add a fence without pre-reserved space.\n\nFix:\n- Switch the WPTR mapping path to drm_exec_prepare_obj(...,\n  TTM_NUM_MOVE_FENCES + 1), restoring the caller-side reservation contract.\n- Remove the helper-side reservation workaround from\n  amdgpu_evf_mgr_attach_fence().\n\nWhy this is the right layer:\n- Reservation policy stays explicit at call sites that define how many fences\n  may be added in that execution context.\n- The helper only performs validate + add_fence when called with a properly\n  prepared reservation object, matching the existing drm_exec model."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:36:56.611Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/6caf097214b892ef6e033c4a2795297a9633c338"},{"url":"https://git.kernel.org/stable/c/5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a"}],"title":"drm/amdgpu: reserve eviction-fence slot at WPTR caller","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139675","datePublished":"2026-11-30T13:36:56.611Z","dateReserved":"2026-11-30T13:22:15.947Z","dateUpdated":"2026-11-30T13:36:56.611Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:55","lastModifiedDate":"2026-11-30 14:19:55","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139675","Ordinal":"1","Title":"drm/amdgpu: reserve eviction-fence slot at WPTR caller","CVE":"CVE-2026-139675","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139675","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: reserve eviction-fence slot at WPTR caller\n\nRoot cause analysis showed that the previous workaround was fixing the\nsymptom in the wrong layer.\n\nProblem:\n  kernel BUG at drivers/dma-buf/dma-resv.c:319!\n  BUG_ON(fobj->num_fences >= fobj->max_fences)\n  Workqueue: events amdgpu_userq_restore_worker\n\n- amdgpu_evf_mgr_attach_fence() had been temporarily taught to reserve/add\n  fence bookkeeping internally as a workaround.\n- This hid the real contract violation and made reservation policy implicit\n  inside a helper.\n\nReview clarification:\n- The helper-side dma_resv_add_fence-related workaround was only an intended\n  proposal sent for review discussion, not the final direction.\n- Final fix keeps fence-slot reservation explicit in callers and leaves the\n  helper free of policy decisions.\n\nFindings from investigation:\n- drm_exec_prepare_obj() both locks and reserves fence slots.\n- drm_exec_lock_obj() only locks and does not reserve slots.\n- Existing attach_fence callers in the GEM/userq restore flows already reserve\n  TTM_NUM_MOVE_FENCES + 1 before adding the bookkeeping eviction fence.\n- The WPTR mapping path in mes_userq_create_wptr_mapping() used\n  drm_exec_lock_obj() and then called amdgpu_evf_mgr_attach_fence(), so this\n  specific path could add a fence without pre-reserved space.\n\nFix:\n- Switch the WPTR mapping path to drm_exec_prepare_obj(...,\n  TTM_NUM_MOVE_FENCES + 1), restoring the caller-side reservation contract.\n- Remove the helper-side reservation workaround from\n  amdgpu_evf_mgr_attach_fence().\n\nWhy this is the right layer:\n- Reservation policy stays explicit at call sites that define how many fences\n  may be added in that execution context.\n- The helper only performs validate + add_fence when called with a properly\n  prepared reservation object, matching the existing drm_exec model.","Type":"Description","Title":"drm/amdgpu: reserve eviction-fence slot at WPTR caller"}]}}}