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

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-02-26T02:23:45.744Z
- Modified: 2026-06-17T05:18:42.040Z
- Weaknesses: CWE-787
- Assigned by: Linux

## Description

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)

(As written by CVE List.)

## Affected

- Linux Linux: from e1c5f754067b594de58d387aa5873dec83b6c9fd before e8997d2d6b8d764e12489f1af2a1ce1d7384ca2a; from e1c5f754067b594de58d387aa5873dec83b6c9fd before 333991c4e66b3d4b5613315f18016da80344f659; 4.12 (not affected: before 4.12; from 5.18.13 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 4.12 before 5.18.13; 5.19

## References

- <https://git.kernel.org/stable/c/e8997d2d6b8d764e12489f1af2a1ce1d7384ca2a> (patch)
- <https://git.kernel.org/stable/c/333991c4e66b3d4b5613315f18016da80344f659> (patch)

## Sources

- CVE List: [CVE-2022-49635](https://www.cve.org/CVERecord?id=CVE-2022-49635), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49635](https://nvd.nist.gov/vuln/detail/CVE-2022-49635), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49635 · Whole record: https://cve.day/CVE-2022-49635.json · Rebuilt by cve.day 2026-11-25T22:58:20.771Z
