CVE-2026-139675
drm/amdgpu: reserve eviction-fence slot at WPTR caller
AI summary AI generated
A kernel bug in the amdgpu driver's WPTR mapping path can trigger a BUG_ON crash by adding a fence without reserved slots, affecting the Linux kernel.
Mitigation
- Upgrade Linux to 5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a or later.
Who should check
- Anyone running Linux >= 7264bc10c7c657a54603c7fc058bf8e15f18ce12, < 6caf097214b892ef6e033c4a2795297a9633c338; >= 7264bc10c7c657a54603c7fc058bf8e15f18ce12, < 5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a
- Anyone running Linux 7.3
Vulnerability facts
- Affected
- Linux >= 7264bc10c7c657a54603c7fc058bf8e15f18ce12, < 6caf097214b892ef6e033c4a2795297a9633c338; >= 7264bc10c7c657a54603c7fc058bf8e15f18ce12, < 5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a; Linux 7.3
- Fixed in
- Linux 6caf097214b892ef6e033c4a2795297a9633c338, Linux 5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: reserve eviction-fence slot at WPTR caller Root cause analysis showed that the previous workaround was fixing the symptom in the wrong layer. Problem: kernel BUG at drivers/dma-buf/dma-resv.c:319! BUG_ON(fobj->num_fences >= fobj->max_fences) Workqueue: events amdgpu_userq_restore_worker - amdgpu_evf_mgr_attach_fence() had been temporarily taught to reserve/add fence bookkeeping internally as a workaround. - This hid the real contract violation and made reservation policy implicit inside a helper. Review clarification: - The helper-side dma_resv_add_fence-related workaround was only an intended proposal sent for review discussion, not the final direction. - Final fix keeps fence-slot reservation explicit in callers and leaves the helper free of policy decisions. Findings from investigation: - drm_exec_prepare_obj() both locks and reserves fence slots. - drm_exec_lock_obj() only locks and does not reserve slots. - Existing attach_fence callers in the GEM/userq restore flows already reserve TTM_NUM_MOVE_FENCES + 1 before adding the bookkeeping eviction fence. - The WPTR mapping path in mes_userq_create_wptr_mapping() used drm_exec_lock_obj() and then called amdgpu_evf_mgr_attach_fence(), so this specific path could add a fence without pre-reserved space. Fix: - Switch the WPTR mapping path to drm_exec_prepare_obj(..., TTM_NUM_MOVE_FENCES + 1), restoring the caller-side reservation contract. - Remove the helper-side reservation workaround from amdgpu_evf_mgr_attach_fence(). Why this is the right layer: - Reservation policy stays explicit at call sites that define how many fences may be added in that execution context. - The helper only performs validate + add_fence when called with a properly prepared reservation object, matching the existing drm_exec model.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-139675. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-139675.md Affected: Linux >= 7264bc10c7c657a54603c7fc058bf8e15f18ce12, < 6caf097214b892ef6e033c4a2795297a9633c338; >= 7264bc10c7c657a54603c7fc058bf8e15f18ce12, < 5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a; Linux 7.3 Fixed in: Linux 6caf097214b892ef6e033c4a2795297a9633c338, Linux 5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
FAQ
Is CVE-2026-139675 being exploited?
There is no confirmed exploitation: CVE-2026-139675 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-139675?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-139675?
Linux >= 7264bc10c7c657a54603c7fc058bf8e15f18ce12, < 6caf097214b892ef6e033c4a2795297a9633c338; >= 7264bc10c7c657a54603c7fc058bf8e15f18ce12, < 5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a; Linux 7.3.
Is there a fix for CVE-2026-139675?
Yes. Fixed in Linux 6caf097214b892ef6e033c4a2795297a9633c338, Linux 5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a. Upgrade Linux to 5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a or later.
How do I check if I'm affected by CVE-2026-139675?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 6.5 | CVE-2026-140063 Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker | Linux kernel+1 | ||
| MEDIUM 5.1 | CVE-2026-140038 Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber | Linux kernel+1 | ||
| HIGH 7.3 | CVE-2026-139801 KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM | Linux kernel | ||
| UNSCORED | CVE-2026-139800 9p/xen: drain response work after unbinding IRQ | Linux kernel | ||
| HIGH 7.0 | CVE-2026-139799 mm/shmem: hold off eviction in shmem_writeout() | Linux kernel |