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

High 7.8 Published Updated

An integer overflow in the i915 selftests can cause a crash, requiring a kernel patch to prevent denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49635?

CVE-2022-49635 is a high-severity vulnerability in Linux kernel, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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)

Weakness: CWE-787

Which versions are affected by CVE-2022-49635?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49635?

Apply the vendor's patch.

Is CVE-2022-49635 being exploited?

There is no known exploitation of CVE-2022-49635 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49635, GHSA-6rj2-mg6v-3gwc, ROOT-OS-DEBIAN-11-CVE-2022-49635, ROOT-OS-UBUNTU-2204-CVE-2022-49635, UBUNTU-CVE-2022-49635.

Is CVE-2022-49635 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free