drm/i915/selftests: fix subtraction overflow bug
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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)
From the CVE record · Linux
The Linux kernel’s drm/i915 selftests have a subtraction overflow when hole_end is small enough on some machines; an addition can also overflow in mock tests. The input does not establish what an attacker could do or whether exploitation requires local access, authentication, or user interaction.
Teams running the Linux kernel should check their builds; affected versions are not specified.