fpga: altera-cvp: Avoid out-of-bounds read in trailing byte write
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 34d1dc17ce978ae76e676d401b48fe9d004aa948 · < 827ec385458adeeda651de2b6f3537e386b1a8d9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
fpga: altera-cvp: Avoid out-of-bounds read in trailing byte write
The trailing byte path in altera_cvp_send_block() dereferences a u32 pointer even when only 1-3 bytes remain in the input buffer. If the buffer ends at a page or scatterlist boundary, this can read past the valid image data and fault.
Copy the remaining bytes into a zero-initialized u32 before writing the final word so only valid bytes are read from the input buffer.
From the CVE record · Linux
The Linux kernel’s altera-cvp driver reads a full 32-bit word when only 1–3 bytes remain in an input buffer. If the buffer ends at a page or scatterlist boundary, the read can go past valid image data and fault. The input does not establish how an attacker could trigger this, or whether authentication or user interaction is required.
Engineers running Linux kernels with the altera-cvp driver should check whether their kernel includes the fix; affected versions are not specified.