accel/ivpu: Fix signed integer truncation in IPC receive
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:
accel/ivpu: Fix signed integer truncation in IPC receive
Fix potential buffer overflow where firmware-supplied data_size is cast to signed int before being used in min_t(). Large unsigned values (>= 0x80000000) become negative, causing unsigned wraparound and oversized memcpy operations that can overflow the stack buffer.
Change min_t(int, ...) to min() as both values are unsigned and can be handled by min() without explicit cast.
From the CVE record · Linux
The Linux kernel's accel/ivpu IPC receive path casts a firmware-supplied size to a signed integer. If that size is at least 0x80000000, the cast can lead to an oversized copy that overflows a stack buffer; the input does not specify attacker access or user-interaction requirements.
Engineers running Linux kernels with the accel/ivpu component should check whether their kernel includes the fix; affected versions are not specified.