# CVE-2026-139675: drm/amdgpu: reserve eviction-fence slot at WPTR caller

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:36:56.611Z
- **Modified:** 2026-11-30T14:19:55.083Z

> **AI summary (AI-generated, claude-haiku-5-5):** 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.

## Who should check

- Anyone running Linux \>= 7264bc10c7c657a54603c7fc058bf8e15f18ce12, \< 6caf097214b892ef6e033c4a2795297a9633c338; \>= 7264bc10c7c657a54603c7fc058bf8e15f18ce12, \< 5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a
- Anyone running Linux 7.3

## 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

- Linux: \>= 7264bc10c7c657a54603c7fc058bf8e15f18ce12, \< 6caf097214b892ef6e033c4a2795297a9633c338; \>= 7264bc10c7c657a54603c7fc058bf8e15f18ce12, \< 5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a (cvelist)
- Linux: 7.3 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- other: <https://git.kernel.org/stable/c/6caf097214b892ef6e033c4a2795297a9633c338>
- other: <https://git.kernel.org/stable/c/5e6b21bce9d939b564e1f1c88a429cfa1fe66d3a>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139675>

HTML: <https://flawdb.com/CVE-2026-139675> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139675>
