# CVE-2026-31479: drm/xe: always keep track of remap prev/next

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 5, 2026-11-26)
- **CWE:** CWE-662
- **Published:** 2026-04-22T13:54:06.880Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 8f33b4f054fc29a4774d8d10116ef460faeb84a8, \< ccd41f110c608b3cc347b9be881c3e72cd634b2b; \>= 8f33b4f054fc29a4774d8d10116ef460faeb84a8, \< 5eda8001ebb5269755608d678dd1f3928ab077c9; \>= 8f33b4f054fc29a4774d8d10116ef460faeb84a8, \< e6ba1749549e87b83c0c4885d84b543687c3740e; \>= 8f33b4f054fc29a4774d8d10116ef460faeb84a8, \< bfe9e314d7574d1c5c851972e7aee342733819d2
- Anyone running Linux 6.8

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/xe: always keep track of remap prev/next

During 3D workload, user is reporting hitting:

\[  413.361679\] WARNING: drivers/gpu/drm/xe/xe\_vm.c:1217 at vm\_bind\_ioctl\_ops\_unwind+0x1e2/0x2e0 \[xe\], CPU\#7: vkd3d\_queue/9925
\[  413.361944\] CPU: 7 UID: 1000 PID: 9925 Comm: vkd3d\_queue Kdump: loaded Not tainted 7.0.0-070000rc3-generic \#202603090038 PREEMPT(lazy)
\[  413.361949\] RIP: 0010:vm\_bind\_ioctl\_ops\_unwind+0x1e2/0x2e0 \[xe\]
\[  413.362074\] RSP: 0018:ffffd4c25c3df930 EFLAGS: 00010282
\[  413.362077\] RAX: 0000000000000000 RBX: ffff8f3ee817ed10 RCX: 0000000000000000
\[  413.362078\] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
\[  413.362079\] RBP: ffffd4c25c3df980 R08: 0000000000000000 R09: 0000000000000000
\[  413.362081\] R10: 0000000000000000 R11: 0000000000000000 R12: ffff8f41fbf99380
\[  413.362082\] R13: ffff8f3ee817e968 R14: 00000000ffffffef R15: ffff8f43d00bd380
\[  413.362083\] FS:  00000001040ff6c0(0000) GS:ffff8f4696d89000(0000) knlGS:00000000330b0000
\[  413.362085\] CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
\[  413.362086\] CR2: 00007ddfc4747000 CR3: 00000002e6262005 CR4: 0000000000f72ef0
\[  413.362088\] PKRU: 55555554
\[  413.362089\] Call Trace:
\[  413.362092\]  \<TASK\>
\[  413.362096\]  xe\_vm\_bind\_ioctl+0xa9a/0xc60 \[xe\]

Which seems to hint that the vma we are re-inserting for the ops unwind
is either invalid or overlapping with something already inserted in the
vm. It shouldn't be invalid since this is a re-insertion, so must have
worked before. Leaving the likely culprit as something already placed
where we want to insert the vma.

Following from that, for the case where we do something like a rebind in
the middle of a vma, and one or both mapped ends are already compatible,
we skip doing the rebind of those vma and set next/prev to NULL. As well
as then adjust the original unmap va range, to avoid unmapping the ends.
However, if we trigger the unwind path, we end up with three va, with
the two ends never being removed and the original va range in the middle
still being the shrunken size.

If this occurs, one failure mode is when another unwind op needs to
interact with that range, which can happen with a vector of binds. For
example, if we need to re-insert something in place of the original va.
In this case the va is still the shrunken version, so when removing it
and then doing a re-insert it can overlap with the ends, which were
never removed, triggering a warning like above, plus leaving the vm in a
bad state.

With that, we need two things here:

 1) Stop nuking the prev/next tracking for the skip cases. Instead
    relying on checking for skip prev/next, where needed. That way on the
    unwind path, we now correctly remove both ends.

 2) Undo the unmap va shrinkage, on the unwind path. With the two ends
    now removed the unmap va should expand back to the original size again,
    before re-insertion.

v2:
  - Update the explanation in the commit message, based on an actual IGT of
    triggering this issue, rather than conjecture.
  - Also undo the unmap shrinkage, for the skip case. With the two ends
    now removed, the original unmap va range should expand back to the
    original range.
v3:
  - Track the old start/range separately. vma\_size/start() uses the va
    info directly.

(cherry picked from commit aec6969f75afbf4e01fd5fb5850ed3e9c27043ac)

## Affected and fixed versions

- Linux: \>= 8f33b4f054fc29a4774d8d10116ef460faeb84a8, \< ccd41f110c608b3cc347b9be881c3e72cd634b2b; \>= 8f33b4f054fc29a4774d8d10116ef460faeb84a8, \< 5eda8001ebb5269755608d678dd1f3928ab077c9; \>= 8f33b4f054fc29a4774d8d10116ef460faeb84a8, \< e6ba1749549e87b83c0c4885d84b543687c3740e; \>= 8f33b4f054fc29a4774d8d10116ef460faeb84a8, \< bfe9e314d7574d1c5c851972e7aee342733819d2 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31479. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31479.md
Affected: Linux >= 8f33b4f054fc29a4774d8d10116ef460faeb84a8, < ccd41f110c608b3cc347b9be881c3e72cd634b2b; >= 8f33b4f054fc29a4774d8d10116ef460faeb84a8, < 5eda8001ebb5269755608d678dd1f3928ab077c9; >= 8f33b4f054fc29a4774d8d10116ef460faeb84a8, < e6ba1749549e87b83c0c4885d84b543687c3740e; >= 8f33b4f054fc29a4774d8d1…
Fixed in: Linux 5eda8001ebb5269755608d678dd1f3928ab077c9

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-31479 being exploited?

There is no confirmed exploitation: CVE-2026-31479 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-31479?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-31479?

Linux \>= 8f33b4f054fc29a4774d8d10116ef460faeb84a8, \< ccd41f110c608b3cc347b9be881c3e72cd634b2b; \>= 8f33b4f054fc29a4774d8d10116ef460faeb84a8, \< 5eda8001ebb5269755608d678dd1f3928ab077c9; \>= 8f33b4f054fc29a4774d8d10116ef460faeb84a8, \< e6ba1749549e87b83c0c4885d84b543687c3740e; \>= 8f33b4f054fc29a4774d8d10116ef460faeb84a8, \< bfe9e314d7574d1c5c851972e7aee342733819d2; Linux 6.8.

### Is there a fix for CVE-2026-31479?

Yes. Fixed in Linux 5eda8001ebb5269755608d678dd1f3928ab077c9. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-31479?

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

- patch: <https://git.kernel.org/stable/c/ccd41f110c608b3cc347b9be881c3e72cd634b2b>
- patch: <https://git.kernel.org/stable/c/5eda8001ebb5269755608d678dd1f3928ab077c9>
- patch: <https://git.kernel.org/stable/c/e6ba1749549e87b83c0c4885d84b543687c3740e>
- patch: <https://git.kernel.org/stable/c/bfe9e314d7574d1c5c851972e7aee342733819d2>

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

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