drm/buddy: Fix alloc_range() error handling code
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/buddy: Fix alloc_range() error handling code
Few users have observed display corruption when they boot the machine to KDE Plasma or playing games. We have root caused the problem that whenever alloc_range() couldn't find the required memory blocks the function was returning SUCCESS in some of the corner cases.
The right approach would be if the total allocated size is less than the required size, the function should return -ENOSPC.
From the CVE record · Linux
The Linux kernel’s drm/buddy alloc_range() can incorrectly report success when it cannot allocate the required memory blocks. Users have observed display corruption when booting into KDE Plasma or playing games. The input does not describe an attacker, authentication requirement, or network access condition.
Engineers running Linux kernels that include the affected drm/buddy code should check their systems; affected versions are not specified.