# CVE-2022-49635: drm/i915/selftests: fix subtraction overflow bug

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-02-26 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2022-49635, DEBIAN-CVE-2022-49635
- Record: https://cvemate.com/vulnerability/CVE-2022-49635 · JSON: https://cvemate.com/vulnerability/CVE-2022-49635/json

## Description

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

drm/i915/selftests: fix subtraction overflow bug

On some machines hole_end can be small enough to cause subtraction
overflow. On the other side (addr + 2 * min_alignment) can overflow
in case of mock tests. This patch should handle both cases.

(cherry picked from commit ab3edc679c552a466e4bf0b11af3666008bd65a2)
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.278%, percentile 21.577%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 119)

- debian linux (Debian): \< 5.18.14-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-173.183
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1103.110
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1103.110~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1103.110+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1109.118
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/e8997d2d6b8d764e12489f1af2a1ce1d7384ca2a>
- <https://git.kernel.org/stable/c/333991c4e66b3d4b5613315f18016da80344f659>
- <https://ubuntu.com/security/CVE-2022-49635>
- <https://www.cve.org/CVERecord?id=CVE-2022-49635>
- <https://git.kernel.org/linus/333991c4e66b3d4b5613315f18016da80344f659>
- <https://ubuntu.com/security/notices/USN-8141-1>
- <https://ubuntu.com/security/notices/USN-8163-1>
- <https://ubuntu.com/security/notices/USN-8163-2>
- <https://ubuntu.com/security/notices/USN-8243-1>
- <https://security-tracker.debian.org/tracker/CVE-2022-49635>

---

Data as of 2026-12-05T03:52:45.199Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
