# CVE-2022-49963: drm/i915/ttm: fix CCS handling

> 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.26% (percentile 11, 2026-11-26)
- **Published:** 2025-06-18T11:00:24.021Z
- **Modified:** 2026-10-15T22:17:26.260Z

## Who should check

- Anyone running Linux \>= da0595ae91da837929a00470ab40546090e5b9ae, \< 97434cb55bd884bd268626ec41489f79b261b2d4; \>= da0595ae91da837929a00470ab40546090e5b9ae, \< 8d905254162965c8e6be697d82c7dbf5d08f574d
- Anyone running Linux 5.19

## Description

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

drm/i915/ttm: fix CCS handling

Crucible + recent Mesa seems to sometimes hit:

GEM\_BUG\_ON(num\_ccs\_blks \> NUM\_CCS\_BLKS\_PER\_XFER)

And it looks like we can also trigger this with gem\_lmem\_swapping, if we
modify the test to use slightly larger object sizes.

Looking closer it looks like we have the following issues in
migrate\_copy():

  - We are using plain integer in various places, which we can easily
    overflow with a large object.

  - We pass the entire object size (when the src is lmem) into
    emit\_pte() and then try to copy it, which doesn't work, since we
    only have a few fixed sized windows in which to map the pages and
    perform the copy. With an object \> 8M we therefore aren't properly
    copying the pages. And then with an object \> 64M we trigger the
    GEM\_BUG\_ON(num\_ccs\_blks \> NUM\_CCS\_BLKS\_PER\_XFER).

So it looks like our copy handling for any object \> 8M (which is our
CHUNK\_SZ) is currently broken on DG2.

Testcase: igt@gem\_lmem\_swapping
(cherry picked from commit 8676145eb2f53a9940ff70910caf0125bd8a4bc2)

## Affected and fixed versions

- Linux: \>= da0595ae91da837929a00470ab40546090e5b9ae, \< 97434cb55bd884bd268626ec41489f79b261b2d4; \>= da0595ae91da837929a00470ab40546090e5b9ae, \< 8d905254162965c8e6be697d82c7dbf5d08f574d (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 8d905254162965c8e6be697d82c7dbf5d08f574d or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49963.md
Affected: Linux >= da0595ae91da837929a00470ab40546090e5b9ae, < 97434cb55bd884bd268626ec41489f79b261b2d4; >= da0595ae91da837929a00470ab40546090e5b9ae, < 8d905254162965c8e6be697d82c7dbf5d08f574d; Linux 5.19
Fixed in: Linux 97434cb55bd884bd268626ec41489f79b261b2d4, Linux 8d905254162965c8e6be697d82c7dbf5d08f574d

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-2022-49963 being exploited?

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

### How serious is CVE-2022-49963?

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

### Which versions are affected by CVE-2022-49963?

Linux \>= da0595ae91da837929a00470ab40546090e5b9ae, \< 97434cb55bd884bd268626ec41489f79b261b2d4; \>= da0595ae91da837929a00470ab40546090e5b9ae, \< 8d905254162965c8e6be697d82c7dbf5d08f574d; Linux 5.19.

### Is there a fix for CVE-2022-49963?

Yes. Fixed in Linux 97434cb55bd884bd268626ec41489f79b261b2d4, Linux 8d905254162965c8e6be697d82c7dbf5d08f574d. Upgrade Linux to 8d905254162965c8e6be697d82c7dbf5d08f574d or later.

### How do I check if I'm affected by CVE-2022-49963?

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/97434cb55bd884bd268626ec41489f79b261b2d4>
- patch: <https://git.kernel.org/stable/c/8d905254162965c8e6be697d82c7dbf5d08f574d>

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

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